From owner-svn-ports-head@freebsd.org Sun Aug 27 15:08:58 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7A70DF1BBE; Sun, 27 Aug 2017 15:08:58 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B15DF748B1; Sun, 27 Aug 2017 15:08:58 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7RF8v25006008; Sun, 27 Aug 2017 15:08:57 GMT (envelope-from matthew@FreeBSD.org) Received: (from matthew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7RF8vmi006004; Sun, 27 Aug 2017 15:08:57 GMT (envelope-from matthew@FreeBSD.org) Message-Id: <201708271508.v7RF8vmi006004@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: matthew set sender to matthew@FreeBSD.org using -f From: Matthew Seaman Date: Sun, 27 Aug 2017 15:08:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448825 - in head/dns/void-zones-tools: . files X-SVN-Group: ports-head X-SVN-Commit-Author: matthew X-SVN-Commit-Paths: in head/dns/void-zones-tools: . files X-SVN-Commit-Revision: 448825 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2017 15:08:59 -0000 Author: matthew Date: Sun Aug 27 15:08:57 2017 New Revision: 448825 URL: https://svnweb.freebsd.org/changeset/ports/448825 Log: Add additional documentation and a pkg-message with further hints. PR: 221841 Submitted by: vidar@karlsen.tech (maintainer) Added: head/dns/void-zones-tools/files/ head/dns/void-zones-tools/files/patch-void-zones-update.sh (contents, props changed) head/dns/void-zones-tools/files/pkg-message.in (contents, props changed) Modified: head/dns/void-zones-tools/Makefile head/dns/void-zones-tools/pkg-plist (contents, props changed) Modified: head/dns/void-zones-tools/Makefile ============================================================================== --- head/dns/void-zones-tools/Makefile Sun Aug 27 15:03:38 2017 (r448824) +++ head/dns/void-zones-tools/Makefile Sun Aug 27 15:08:57 2017 (r448825) @@ -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 Added: head/dns/void-zones-tools/files/patch-void-zones-update.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/void-zones-tools/files/patch-void-zones-update.sh Sun Aug 27 15:08:57 2017 (r448825) @@ -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" Added: head/dns/void-zones-tools/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/void-zones-tools/files/pkg-message.in Sun Aug 27 15:08:57 2017 (r448825) @@ -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 Modified: head/dns/void-zones-tools/pkg-plist ============================================================================== --- head/dns/void-zones-tools/pkg-plist Sun Aug 27 15:03:38 2017 (r448824) +++ head/dns/void-zones-tools/pkg-plist Sun Aug 27 15:08:57 2017 (r448825) @@ -1,3 +1,4 @@ bin/hosts2zones bin/void-zones-update.sh @dir etc/void-zones +%%PORTDOCS%%%%DOCSDIR%%/README.md