aboutsummaryrefslogtreecommitdiff
path: root/dns/dnscrypt-proxy
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2014-06-04 21:10:18 +0000
committerMark Felder <feld@FreeBSD.org>2014-06-04 21:10:18 +0000
commit9401e445c321a345a25258e347de95d6b585762c (patch)
tree2c2316572c7ab20f6c9feb68667c1721d9817136 /dns/dnscrypt-proxy
parentcbb3de786f97d9a59ecf406161521817c3e33ed7 (diff)
downloadports-9401e445c321a345a25258e347de95d6b585762c.tar.gz
ports-9401e445c321a345a25258e347de95d6b585762c.zip
Notes
Diffstat (limited to 'dns/dnscrypt-proxy')
-rw-r--r--dns/dnscrypt-proxy/Makefile6
-rw-r--r--dns/dnscrypt-proxy/distinfo4
-rw-r--r--dns/dnscrypt-proxy/files/dnscrypt-proxy.in19
-rw-r--r--dns/dnscrypt-proxy/pkg-plist2
4 files changed, 21 insertions, 10 deletions
diff --git a/dns/dnscrypt-proxy/Makefile b/dns/dnscrypt-proxy/Makefile
index fcb260029889..41eed493f01d 100644
--- a/dns/dnscrypt-proxy/Makefile
+++ b/dns/dnscrypt-proxy/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= dnscrypt-proxy
-PORTVERSION= 1.3.3
+PORTVERSION= 1.4.0
CATEGORIES= dns
MASTER_SITES= http://download.dnscrypt.org/dnscrypt-proxy/ \
http://www.dns-lab.com/downloads/dnscrypt-proxy/
@@ -10,6 +10,8 @@ MASTER_SITES= http://download.dnscrypt.org/dnscrypt-proxy/ \
MAINTAINER= freebsd@dns-lab.com
COMMENT= Boost privacy and security of DNS
+LICENSE= MIT
+
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
libsodium.so:${PORTSDIR}/security/libsodium
@@ -20,6 +22,8 @@ SUB_FILES= pkg-message
USE_RC_SUBR= ${PORTNAME}
+USERS= _dnscrypt-proxy
+
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README \
README-PLUGINS.markdown README-WINDOWS.markdown \
README.markdown TECHNOTES THANKS
diff --git a/dns/dnscrypt-proxy/distinfo b/dns/dnscrypt-proxy/distinfo
index e6a052a8fee7..792955a2d6a3 100644
--- a/dns/dnscrypt-proxy/distinfo
+++ b/dns/dnscrypt-proxy/distinfo
@@ -1,2 +1,2 @@
-SHA256 (dnscrypt-proxy-1.3.3.tar.gz) = c36ba6c3277d3438986af1e8d12adf7d35544b56d1747fa93a50b4d72ebf3e4a
-SIZE (dnscrypt-proxy-1.3.3.tar.gz) = 1576428
+SHA256 (dnscrypt-proxy-1.4.0.tar.gz) = 60b57b36aa15706c4cd0c348fc59534c15913c282a2b7d4db0b3787167b33502
+SIZE (dnscrypt-proxy-1.4.0.tar.gz) = 1579426
diff --git a/dns/dnscrypt-proxy/files/dnscrypt-proxy.in b/dns/dnscrypt-proxy/files/dnscrypt-proxy.in
index 13555a9b755f..33ef4ae31016 100644
--- a/dns/dnscrypt-proxy/files/dnscrypt-proxy.in
+++ b/dns/dnscrypt-proxy/files/dnscrypt-proxy.in
@@ -4,8 +4,8 @@
#
# PROVIDE: dnscrypt-proxy
# REQUIRE: SERVERS cleanvar
-# KEYWORD: shutdown
# BEFORE: named
+# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable dnscrypt-proxy:
#
@@ -22,18 +22,23 @@
name=dnscrypt_proxy
rcvar=dnscrypt_proxy_enable
-stop_cmd="dnscrypt_proxy_stop"
+stop_cmd=dnscrypt_proxy_stop
+
+load_rc_config ${name}
-load_rc_config dnscrypt_proxy
+: ${dnscrypt_proxy_enable:=NO}
+: ${dnscrypt_proxy_uid=_dnscrypt-proxy} # User to run daemon as
+: ${dnscrypt_proxy_pidfile=/var/run/dnscrypt-proxy.pid} # Path to pid file
+: ${dnscrypt_proxy_logfile=/var/log/dnscrypt-proxy.log} # Path to log file
-: {dnscrypt_proxy_enable:="NO"}
+if [ -n "$dnscrypt_proxy_uid" ]; then
+ dnscrypt_proxy_flags="${dnscrypt_proxy_flags} -u ${dnscrypt_proxy_uid}"
+fi
command=%%PREFIX%%/sbin/dnscrypt-proxy
procname=%%PREFIX%%/sbin/dnscrypt-proxy
-pidfile=/var/run/dnscrypt-proxy.pid
-logdir=/var/log/dnscrypt-proxy.log
-command_args="-d -p ${pidfile} -l ${logdir}"
+command_args="-d -p ${dnscrypt_proxy_pidfile} -l ${dnscrypt_proxy_logfile}"
dnscrypt_proxy_stop() {
kill -KILL `cat ${pidfile}` 2> /dev/null && echo "Killed ${name}."
diff --git a/dns/dnscrypt-proxy/pkg-plist b/dns/dnscrypt-proxy/pkg-plist
index 40312dbd9430..8d5aba8d4003 100644
--- a/dns/dnscrypt-proxy/pkg-plist
+++ b/dns/dnscrypt-proxy/pkg-plist
@@ -3,3 +3,5 @@ man/man8/dnscrypt-proxy.8.gz
man/man8/hostip.8.gz
sbin/dnscrypt-proxy
bin/hostip
+%%DATADIR%%/dnscrypt-resolvers.csv
+@dirrmtry %%DATADIR%%