pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/dnscrypt-proxy2
Module Name: pkgsrc
Committed By: nia
Date: Mon Oct 1 15:05:48 UTC 2018
Modified Files:
pkgsrc/net/dnscrypt-proxy2: Makefile PLIST
Added Files:
pkgsrc/net/dnscrypt-proxy2/files: dnscrypt_proxy.sh dnscrypt_proxy.toml
Log Message:
dnscrypt-proxy2: Add rc script / default configuration file.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/net/dnscrypt-proxy2/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/dnscrypt-proxy2/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/net/dnscrypt-proxy2/files/dnscrypt_proxy.sh \
pkgsrc/net/dnscrypt-proxy2/files/dnscrypt_proxy.toml
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/dnscrypt-proxy2/Makefile
diff -u pkgsrc/net/dnscrypt-proxy2/Makefile:1.2 pkgsrc/net/dnscrypt-proxy2/Makefile:1.3
--- pkgsrc/net/dnscrypt-proxy2/Makefile:1.2 Sun Aug 5 12:28:06 2018
+++ pkgsrc/net/dnscrypt-proxy2/Makefile Mon Oct 1 15:05:48 2018
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2018/08/05 12:28:06 nia Exp $
+# $NetBSD: Makefile,v 1.3 2018/10/01 15:05:48 nia Exp $
PKGNAME= dnscrypt-proxy2-2.0.16
DISTNAME= dnscrypt-proxy-${PKGVERSION_NOREV}
+PKGREVISION= 1
CATEGORIES= net security
MASTER_SITES= ${MASTER_SITE_GITHUB:=jedisct1/}
GITHUB_PROJECT= dnscrypt-proxy
@@ -18,8 +19,16 @@ USE_TOOLS+= pax
GO_SRCPATH= github.com/jedisct1/dnscrypt-proxy/
GO_DIST_BASE= ${DISTNAME}
+EGDIR= ${PREFIX}/share/examples/dnscrypt-proxy
+
+RCD_SCRIPTS= dnscrypt_proxy
+CONF_FILES= ${EGDIR}/dnscrypt_proxy.toml ${PKG_SYSCONFDIR}/dnscrypt_proxy.toml
+
+INSTALLATION_DIRS+= ${EGDIR}
+
do-install:
${RUN} cd ${WRKDIR}; [ ! -d bin ] || ${PAX} -rw bin ${DESTDIR}${PREFIX}
+ ${INSTALL_DATA} ${FILESDIR}/dnscrypt_proxy.toml ${DESTDIR}${EGDIR}/dnscrypt_proxy.toml
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/net/dnscrypt-proxy2/PLIST
diff -u pkgsrc/net/dnscrypt-proxy2/PLIST:1.1 pkgsrc/net/dnscrypt-proxy2/PLIST:1.2
--- pkgsrc/net/dnscrypt-proxy2/PLIST:1.1 Sun Jul 15 16:10:32 2018
+++ pkgsrc/net/dnscrypt-proxy2/PLIST Mon Oct 1 15:05:48 2018
@@ -1,2 +1,3 @@
-@comment $NetBSD: PLIST,v 1.1 2018/07/15 16:10:32 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.2 2018/10/01 15:05:48 nia Exp $
bin/dnscrypt-proxy
+share/examples/dnscrypt-proxy/dnscrypt_proxy.toml
Added files:
Index: pkgsrc/net/dnscrypt-proxy2/files/dnscrypt_proxy.sh
diff -u /dev/null pkgsrc/net/dnscrypt-proxy2/files/dnscrypt_proxy.sh:1.1
--- /dev/null Mon Oct 1 15:05:48 2018
+++ pkgsrc/net/dnscrypt-proxy2/files/dnscrypt_proxy.sh Mon Oct 1 15:05:48 2018
@@ -0,0 +1,29 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dnscrypt_proxy.sh,v 1.1 2018/10/01 15:05:48 nia Exp $
+#
+# PROVIDE: dnscrypt_proxy
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="dnscrypt_proxy"
+rcvar=${name}
+command="@PREFIX@/bin/dnscrypt-proxy"
+command_args="-syslog -config @PKG_SYSCONFDIR@/${name}.toml -pidfile @VARBASE@/run/${name}.pid &"
+required_files="@PKG_SYSCONFDIR@/${name}.toml"
+pidfile="@VARBASE@/run/${name}.pid"
+extra_commands="configtest"
+configtest_cmd="dnscrypt_proxy_configtest"
+
+dnscrypt_proxy_configtest()
+{
+ if [ ! -f ${required_files} ]; then
+ warn "${required_files} does not exist."
+ return 1;
+ fi
+ ${command} -check -config ${required_files}
+}
+
+load_rc_config $name
+run_rc_command "$1"
Index: pkgsrc/net/dnscrypt-proxy2/files/dnscrypt_proxy.toml
diff -u /dev/null pkgsrc/net/dnscrypt-proxy2/files/dnscrypt_proxy.toml:1.1
--- /dev/null Mon Oct 1 15:05:48 2018
+++ pkgsrc/net/dnscrypt-proxy2/files/dnscrypt_proxy.toml Mon Oct 1 15:05:48 2018
@@ -0,0 +1,23 @@
+listen_addresses = ['127.0.0.1:53', '[::1]:53']
+
+ipv4_servers = true
+ipv6_servers = true
+
+require_nolog = true
+require_nofilter = true
+
+dnscrypt_servers = true
+doh_servers = false
+
+fallback_resolver = '1.1.1.1:53'
+ignore_system_dns = true
+
+use_syslog = true
+
+[sources]
+ [sources.'public-resolvers']
+ url = 'https://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md'
+ cache_file = 'public-resolvers.md'
+ minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
+ refresh_delay = 72
+ prefix = ''
Home |
Main Index |
Thread Index |
Old Index