Update to 1.4.0

Add _dnscrypt-proxy user

PR:		190406
Approved by:	maintainer
This commit is contained in:
Mark Felder 2014-06-04 21:10:18 +00:00
parent cbb3de786f
commit 9401e445c3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356546
5 changed files with 22 additions and 10 deletions

1
UIDs
View file

@ -284,4 +284,5 @@ radicale:*:974:974::0:0:Radicale daemon:/nonexistent:/usr/sbin/nologin
unifi:*:975:975::0:0:Unifi Wireless Controller:/nonexistent:/usr/sbin/nologin unifi:*:975:975::0:0:Unifi Wireless Controller:/nonexistent:/usr/sbin/nologin
minetest:*:976:976::0:0:& server:/nonexistent:/usr/sbin/nologin minetest:*:976:976::0:0:& server:/nonexistent:/usr/sbin/nologin
tests:*:977:65534::0:0:Unprivileged user for tests:/nonexistent:/usr/sbin/nologin tests:*:977:65534::0:0:Unprivileged user for tests:/nonexistent:/usr/sbin/nologin
_dnscrypt-proxy:*:978:65534::0:0:dnscrypt-proxy user:/nonexistent:/usr/sbin/nologin
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin

View file

@ -2,7 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= dnscrypt-proxy PORTNAME= dnscrypt-proxy
PORTVERSION= 1.3.3 PORTVERSION= 1.4.0
CATEGORIES= dns CATEGORIES= dns
MASTER_SITES= http://download.dnscrypt.org/dnscrypt-proxy/ \ MASTER_SITES= http://download.dnscrypt.org/dnscrypt-proxy/ \
http://www.dns-lab.com/downloads/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 MAINTAINER= freebsd@dns-lab.com
COMMENT= Boost privacy and security of DNS COMMENT= Boost privacy and security of DNS
LICENSE= MIT
LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \ LIB_DEPENDS= libexecinfo.so:${PORTSDIR}/devel/libexecinfo \
libsodium.so:${PORTSDIR}/security/libsodium libsodium.so:${PORTSDIR}/security/libsodium
@ -20,6 +22,8 @@ SUB_FILES= pkg-message
USE_RC_SUBR= ${PORTNAME} USE_RC_SUBR= ${PORTNAME}
USERS= _dnscrypt-proxy
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README \ PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README \
README-PLUGINS.markdown README-WINDOWS.markdown \ README-PLUGINS.markdown README-WINDOWS.markdown \
README.markdown TECHNOTES THANKS README.markdown TECHNOTES THANKS

View file

@ -1,2 +1,2 @@
SHA256 (dnscrypt-proxy-1.3.3.tar.gz) = c36ba6c3277d3438986af1e8d12adf7d35544b56d1747fa93a50b4d72ebf3e4a SHA256 (dnscrypt-proxy-1.4.0.tar.gz) = 60b57b36aa15706c4cd0c348fc59534c15913c282a2b7d4db0b3787167b33502
SIZE (dnscrypt-proxy-1.3.3.tar.gz) = 1576428 SIZE (dnscrypt-proxy-1.4.0.tar.gz) = 1579426

View file

@ -4,8 +4,8 @@
# #
# PROVIDE: dnscrypt-proxy # PROVIDE: dnscrypt-proxy
# REQUIRE: SERVERS cleanvar # REQUIRE: SERVERS cleanvar
# KEYWORD: shutdown
# BEFORE: named # BEFORE: named
# KEYWORD: shutdown
# #
# Add the following lines to /etc/rc.conf to enable dnscrypt-proxy: # Add the following lines to /etc/rc.conf to enable dnscrypt-proxy:
# #
@ -22,18 +22,23 @@
name=dnscrypt_proxy name=dnscrypt_proxy
rcvar=dnscrypt_proxy_enable rcvar=dnscrypt_proxy_enable
stop_cmd="dnscrypt_proxy_stop" stop_cmd=dnscrypt_proxy_stop
load_rc_config dnscrypt_proxy load_rc_config ${name}
: {dnscrypt_proxy_enable:="NO"} : ${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
if [ -n "$dnscrypt_proxy_uid" ]; then
dnscrypt_proxy_flags="${dnscrypt_proxy_flags} -u ${dnscrypt_proxy_uid}"
fi
command=%%PREFIX%%/sbin/dnscrypt-proxy command=%%PREFIX%%/sbin/dnscrypt-proxy
procname=%%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() { dnscrypt_proxy_stop() {
kill -KILL `cat ${pidfile}` 2> /dev/null && echo "Killed ${name}." kill -KILL `cat ${pidfile}` 2> /dev/null && echo "Killed ${name}."

View file

@ -3,3 +3,5 @@ man/man8/dnscrypt-proxy.8.gz
man/man8/hostip.8.gz man/man8/hostip.8.gz
sbin/dnscrypt-proxy sbin/dnscrypt-proxy
bin/hostip bin/hostip
%%DATADIR%%/dnscrypt-resolvers.csv
@dirrmtry %%DATADIR%%