View | Details | Raw Unified | Return to bug 221841 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (+7 lines)
Lines 3-8 Link Here
3
PORTNAME=	void-zones-tools
3
PORTNAME=	void-zones-tools
4
DISTVERSIONPREFIX=	v
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=	1.0.2
5
DISTVERSION=	1.0.2
6
PORTREVISION=	1
6
CATEGORIES=	dns
7
CATEGORIES=	dns
7
8
8
MAINTAINER=	vidar@karlsen.tech
9
MAINTAINER=	vidar@karlsen.tech
Lines 15-23 Link Here
15
USE_GITHUB=	yes
16
USE_GITHUB=	yes
16
GH_ACCOUNT=	cyclaero
17
GH_ACCOUNT=	cyclaero
17
18
19
SUB_FILES=	pkg-message
20
18
do-install:
21
do-install:
19
	${INSTALL_PROGRAM} ${WRKSRC}/hosts2zones ${STAGEDIR}${PREFIX}/bin
22
	${INSTALL_PROGRAM} ${WRKSRC}/hosts2zones ${STAGEDIR}${PREFIX}/bin
20
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/void-zones
23
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/void-zones
21
	${INSTALL_SCRIPT} ${WRKSRC}/void-zones-update.sh ${STAGEDIR}${PREFIX}/bin
24
	${INSTALL_SCRIPT} ${WRKSRC}/void-zones-update.sh ${STAGEDIR}${PREFIX}/bin
22
25
26
post-install:
27
	${MKDIR} ${STAGEDIR}${DOCSDIR}
28
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
29
23
.include <bsd.port.mk>
30
.include <bsd.port.mk>
(-)files/patch-void-zones-update.sh (+11 lines)
Line 0 Link Here
1
--- void-zones-update.sh.orig	2017-08-26 23:00:56 UTC
2
+++ void-zones-update.sh
3
@@ -47,6 +47,8 @@ fi
4
 ZONES_DIR="/usr/local/etc/void-zones"
5
 if [ ! -d "$ZONES_DIR" ]; then
6
    mkdir -p "$ZONES_DIR"
7
+fi
8
+if [ ! -f "$ZONES_DIR/my_void_hosts.txt" ]; then
9
    echo "# white list"          > "$ZONES_DIR/my_void_hosts.txt"
10
    echo "1.1.1.1 my.white.dom" >> "$ZONES_DIR/my_void_hosts.txt"
11
    echo ""                     >> "$ZONES_DIR/my_void_hosts.txt"
(-)files/pkg-message.in (+16 lines)
Line 0 Link Here
1
To download the host lists and convert them to void zones,
2
run the following script:
3
%%PREFIX%%/bin/void-zones-update.sh
4
5
To add your own white list/black list entries, to add over override
6
the bundled listings, edit %%PREFIX%%/etc/void-zones/my_void_hosts.txt.
7
Use the IP address 1.1.1.1 for whitelisting, and 0.0.0.0 for blacklisting.
8
9
Add the following line to your unbound.conf, prior to any forwarder directives:
10
include: /var/unbound/local-void.zones
11
Then restart Unbound.
12
13
For future updates, run void-zones-update.sh and restart Unbound.
14
15
For more information, see %%PREFIX%%/share/doc/void-zones-tools/README.md
16
or https://github.com/cyclaero/void-zones-tools
(-)pkg-plist (+1 lines)
Lines 1-3 Link Here
1
bin/hosts2zones
1
bin/hosts2zones
2
bin/void-zones-update.sh
2
bin/void-zones-update.sh
3
@dir etc/void-zones
3
@dir etc/void-zones
4
%%PORTDOCS%%%%DOCSDIR%%/README.md

Return to bug 221841