aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2012-01-24 14:40:13 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2012-01-24 14:40:13 +0000
commitba77634c78c673958a8ce11827a03627e0ac9cc8 (patch)
tree65620dabbe9a21b379c2cfbf41d7eb8cb9740ad7 /dns
parent5fe1b68e8e8ee521db8fd344a93ab7ed813dd94e (diff)
downloadports-ba77634c78c673958a8ce11827a03627e0ac9cc8.tar.gz
ports-ba77634c78c673958a8ce11827a03627e0ac9cc8.zip
Notes
Diffstat (limited to 'dns')
-rw-r--r--dns/unbound/Makefile1
-rw-r--r--dns/unbound/files/unbound.in8
2 files changed, 9 insertions, 0 deletions
diff --git a/dns/unbound/Makefile b/dns/unbound/Makefile
index 54b719f783ac..fc9ee787eecc 100644
--- a/dns/unbound/Makefile
+++ b/dns/unbound/Makefile
@@ -7,6 +7,7 @@
PORTNAME= unbound
PORTVERSION= 1.4.14
+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 94d3807870b3..874f233a2a49 100644
--- a/dns/unbound/files/unbound.in
+++ b/dns/unbound/files/unbound.in
@@ -17,10 +17,18 @@ rcvar=unbound_enable
command="%%PREFIX%%/sbin/unbound"
extra_commands="reload"
+start_precmd="start_unbound_anchor"
load_rc_config $name
pidfile=${unbound_pidfile:-"%%PREFIX%%/etc/unbound/unbound.pid"}
unbound_enable=${unbound_enable:-"NO"}
+start_unbound_anchor()
+{
+ echo -n "Obtaining a trust anchor:"
+ %%PREFIX%%/sbin/unbound-anchor
+ echo .
+}
+
run_rc_command "$1"