diff options
Diffstat (limited to 'dns/dns-blackhole/files')
-rwxr-xr-x | dns/dns-blackhole/files/901.dns-blackhole.in | 22 | ||||
-rw-r--r-- | dns/dns-blackhole/files/patch-dns-blackhole.conf.dist | 20 |
2 files changed, 42 insertions, 0 deletions
diff --git a/dns/dns-blackhole/files/901.dns-blackhole.in b/dns/dns-blackhole/files/901.dns-blackhole.in new file mode 100755 index 000000000000..4090a5b6d6ea --- /dev/null +++ b/dns/dns-blackhole/files/901.dns-blackhole.in @@ -0,0 +1,22 @@ +#!/bin/sh - +# +# $FreeBSD$ +# + +if [ -r /etc/defaults/periodic.conf ]; then + . /etc/defaults/periodic.conf + source_periodic_confs +fi + +case "$dns_blackhole_enable" in + [Yy][Ee][Ss]) + + echo + %%PREFIX%%/bin/dns-blackhole.sh -c /usr/local/etc/dns-blackhole/dns-blackhole.conf update + ;; + *) + rc=0 + ;; +esac + +exit $rc diff --git a/dns/dns-blackhole/files/patch-dns-blackhole.conf.dist b/dns/dns-blackhole/files/patch-dns-blackhole.conf.dist new file mode 100644 index 000000000000..d9569a98163e --- /dev/null +++ b/dns/dns-blackhole/files/patch-dns-blackhole.conf.dist @@ -0,0 +1,20 @@ +--- dns-blackhole.conf.dist.orig 2025-08-18 11:53:06 UTC ++++ dns-blackhole.conf.dist +@@ -3,7 +3,7 @@ + # + + # Directory in which config and custom host files reside +-dns_blackhole_dir="/usr/local/etc/dns-blackhole" ++dns_blackhole_dir="/var/db/%%PORTNAME%%" + + # Path to your BIND namedb directory where included files go + named_includes_dir="/usr/local/etc/namedb" +@@ -12,7 +12,7 @@ named_zone_files_dir="/usr/local/etc/namedb" + named_zone_files_dir="/usr/local/etc/namedb" + + # Temporary directory in which to fetch and build zone files +-tmp_dir="/var/tmp/dns-blackhole" ++tmp_dir="/var/tmp/%%PORTNAME%%" + + # The fully qualified hostname of your nameserver + dns_server_hostname="localhost" |