aboutsummaryrefslogtreecommitdiffstats
path: root/dns/unbound
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2012-09-09 09:08:36 +0800
committersem <sem@FreeBSD.org>2012-09-09 09:08:36 +0800
commit9a12e6585c2bf870a6d037d10991935cfbb6e0cc (patch)
treea63f15b462f066b1a533cb99c2eb746c47d9dfe7 /dns/unbound
parenta38de291033b9c575b2a67cf1ecd7c3fda1582e4 (diff)
downloadfreebsd-ports-gnome-9a12e6585c2bf870a6d037d10991935cfbb6e0cc.tar.gz
freebsd-ports-gnome-9a12e6585c2bf870a6d037d10991935cfbb6e0cc.tar.zst
freebsd-ports-gnome-9a12e6585c2bf870a6d037d10991935cfbb6e0cc.zip
- Run unbound-checkconf on startup
Submitted by: Anton Yuzhaninov <citrin at citrin.ru>
Diffstat (limited to 'dns/unbound')
-rw-r--r--dns/unbound/Makefile1
-rw-r--r--dns/unbound/files/unbound.in3
2 files changed, 4 insertions, 0 deletions
diff --git a/dns/unbound/Makefile b/dns/unbound/Makefile
index e6360e5cfc5b..1f098bb51120 100644
--- a/dns/unbound/Makefile
+++ b/dns/unbound/Makefile
@@ -7,6 +7,7 @@
PORTNAME= unbound
PORTVERSION= 1.4.18
+PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= http://unbound.net/downloads/
diff --git a/dns/unbound/files/unbound.in b/dns/unbound/files/unbound.in
index 499f0598bbe8..eb4ce995740a 100644
--- a/dns/unbound/files/unbound.in
+++ b/dns/unbound/files/unbound.in
@@ -1,5 +1,7 @@
#!/bin/sh
#
+# $FreeBSD$
+#
# unbound freebsd startup rc.d script, modified from the named script.
# uses the default unbound installation path and pidfile location.
# copy this to /etc/rc.d/unbound
@@ -18,6 +20,7 @@ rcvar=unbound_enable
command="%%PREFIX%%/sbin/unbound"
extra_commands="reload"
start_precmd="start_precmd"
+reload_precmd="%%PREFIX%%/sbin/unbound-checkconf >/dev/null"
load_rc_config $name