aboutsummaryrefslogtreecommitdiffstats
path: root/net/alfis/pkg
diff options
context:
space:
mode:
authorla-ninpre <aaoth@aaoth.xyz>2023-04-27 01:04:40 +0300
committerla-ninpre <aaoth@aaoth.xyz>2023-04-27 01:04:40 +0300
commit01c21587aff0e76a970f1fc322bbed32cf30c287 (patch)
tree57aa177d7ab0459726e71be4200344d33b88e2e1 /net/alfis/pkg
parenta8921593398f8b600e09b82a69a2c4a077785510 (diff)
downloadports-01c21587aff0e76a970f1fc322bbed32cf30c287.tar.gz
ports-01c21587aff0e76a970f1fc322bbed32cf30c287.zip
net/alfis: add 0.8.4
Diffstat (limited to 'net/alfis/pkg')
-rw-r--r--net/alfis/pkg/DESCR10
-rw-r--r--net/alfis/pkg/PLIST18
-rw-r--r--net/alfis/pkg/alfis.rc13
3 files changed, 41 insertions, 0 deletions
diff --git a/net/alfis/pkg/DESCR b/net/alfis/pkg/DESCR
new file mode 100644
index 0000000..8ed3a4f
--- /dev/null
+++ b/net/alfis/pkg/DESCR
@@ -0,0 +1,10 @@
+This project represents a minimal blockchain without cryptocurrency,
+capable of sustaining any number of domain names in a bunch of original
+alternative zones. It provides a very small and peer-to-peer synchronized
+database of domain names. The consistency of this database is based on
+blockchain technology, that prevents retroactive changing of data,
+and has strict cryptographical consensus.
+Also it comes with a DNS server with cache, like you have in your
+Internet-router. It resolves the domains from database and forwards
+all regular DNS-requests to some other resolver - your router, Google DNS,
+Cloudflare DNS, or AdGuard DNS (if you want to block ads and trackers).
diff --git a/net/alfis/pkg/PLIST b/net/alfis/pkg/PLIST
new file mode 100644
index 0000000..83797ba
--- /dev/null
+++ b/net/alfis/pkg/PLIST
@@ -0,0 +1,18 @@
+@newgroup _alfis:1103
+@newuser _alfis:1103:_alfis::Alfis User:/var/alfis:/bin/sh
+@rcscript ${RCDIR}/alfis
+@bin bin/alfis
+@mode 0750
+@owner _alfis
+@group _alfis
+@sample ${SYSCONFDIR}/alfis/
+@mode
+@owner
+@group
+share/alfis/
+@mode 0750
+@owner _alfis
+@group _alfis
+share/alfis/alfis.toml
+@sample ${LOCALSTATEDIR}/alfis/
+@sample ${SYSCONFDIR}/alfis/alfis.toml
diff --git a/net/alfis/pkg/alfis.rc b/net/alfis/pkg/alfis.rc
new file mode 100644
index 0000000..f15ad10
--- /dev/null
+++ b/net/alfis/pkg/alfis.rc
@@ -0,0 +1,13 @@
+#!/bin/ksh
+
+daemon="${TRUEPREFIX}/bin/alfis"
+daemon_flags="-c ${SYSCONFDIR}/alfis/alfis.toml"
+daemon_user="_alfis"
+daemon_logger="daemon.info"
+
+. /etc/rc.d/rc.subr
+
+rc_bg=YES
+rc_reload=NO
+
+rc_cmd $1