diff options
author | matthew <matthew@FreeBSD.org> | 2017-08-27 23:08:57 +0800 |
---|---|---|
committer | matthew <matthew@FreeBSD.org> | 2017-08-27 23:08:57 +0800 |
commit | 9d4f5ed005818873c2b353a666c26b8540833858 (patch) | |
tree | ef164652647fe98b53709d89a2c8ce681d61614b | |
parent | 7d5fa026d0ac535adac35cdf1620a0b5fb8bb4ae (diff) | |
download | freebsd-ports-gnome-9d4f5ed005818873c2b353a666c26b8540833858.tar.gz freebsd-ports-gnome-9d4f5ed005818873c2b353a666c26b8540833858.tar.zst freebsd-ports-gnome-9d4f5ed005818873c2b353a666c26b8540833858.zip |
Add additional documentation and a pkg-message with further hints.
PR: 221841
Submitted by: vidar@karlsen.tech (maintainer)
-rw-r--r-- | dns/void-zones-tools/Makefile | 7 | ||||
-rw-r--r-- | dns/void-zones-tools/files/patch-void-zones-update.sh | 11 | ||||
-rw-r--r-- | dns/void-zones-tools/files/pkg-message.in | 16 | ||||
-rw-r--r-- | dns/void-zones-tools/pkg-plist | 1 |
4 files changed, 35 insertions, 0 deletions
diff --git a/dns/void-zones-tools/Makefile b/dns/void-zones-tools/Makefile index b76de6fa7b94..ea88fd1cb22c 100644 --- a/dns/void-zones-tools/Makefile +++ b/dns/void-zones-tools/Makefile @@ -3,6 +3,7 @@ PORTNAME= void-zones-tools DISTVERSIONPREFIX= v DISTVERSION= 1.0.2 +PORTREVISION= 1 CATEGORIES= dns MAINTAINER= vidar@karlsen.tech @@ -15,9 +16,15 @@ USES= compiler:c11 USE_GITHUB= yes GH_ACCOUNT= cyclaero +SUB_FILES= pkg-message + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/hosts2zones ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${PREFIX}/etc/void-zones ${INSTALL_SCRIPT} ${WRKSRC}/void-zones-update.sh ${STAGEDIR}${PREFIX}/bin +post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + .include <bsd.port.mk> diff --git a/dns/void-zones-tools/files/patch-void-zones-update.sh b/dns/void-zones-tools/files/patch-void-zones-update.sh new file mode 100644 index 000000000000..69d622edc3e9 --- /dev/null +++ b/dns/void-zones-tools/files/patch-void-zones-update.sh @@ -0,0 +1,11 @@ +--- void-zones-update.sh.orig 2017-08-26 23:00:56 UTC ++++ void-zones-update.sh +@@ -47,6 +47,8 @@ fi + ZONES_DIR="/usr/local/etc/void-zones" + if [ ! -d "$ZONES_DIR" ]; then + mkdir -p "$ZONES_DIR" ++fi ++if [ ! -f "$ZONES_DIR/my_void_hosts.txt" ]; then + echo "# white list" > "$ZONES_DIR/my_void_hosts.txt" + echo "1.1.1.1 my.white.dom" >> "$ZONES_DIR/my_void_hosts.txt" + echo "" >> "$ZONES_DIR/my_void_hosts.txt" diff --git a/dns/void-zones-tools/files/pkg-message.in b/dns/void-zones-tools/files/pkg-message.in new file mode 100644 index 000000000000..ef5d20004008 --- /dev/null +++ b/dns/void-zones-tools/files/pkg-message.in @@ -0,0 +1,16 @@ +To download the host lists and convert them to void zones, +run the following script: +%%PREFIX%%/bin/void-zones-update.sh + +To add your own white list/black list entries, to add over override +the bundled listings, edit %%PREFIX%%/etc/void-zones/my_void_hosts.txt. +Use the IP address 1.1.1.1 for whitelisting, and 0.0.0.0 for blacklisting. + +Add the following line to your unbound.conf, prior to any forwarder directives: +include: /var/unbound/local-void.zones +Then restart Unbound. + +For future updates, run void-zones-update.sh and restart Unbound. + +For more information, see %%PREFIX%%/share/doc/void-zones-tools/README.md +or https://github.com/cyclaero/void-zones-tools diff --git a/dns/void-zones-tools/pkg-plist b/dns/void-zones-tools/pkg-plist index 5fa459f242c3..93d728ff8b00 100644 --- a/dns/void-zones-tools/pkg-plist +++ b/dns/void-zones-tools/pkg-plist @@ -1,3 +1,4 @@ bin/hosts2zones bin/void-zones-update.sh @dir etc/void-zones +%%PORTDOCS%%%%DOCSDIR%%/README.md |