1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

- Run unbound-anchor before unbound to obtain a trust anchor for DNSSEC.

Requested by:	des
This commit is contained in:
Sergey Matveychuk 2012-01-24 14:40:13 +00:00
parent 5fe1b68e8e
commit ba77634c78
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289740
2 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= unbound
PORTVERSION= 1.4.14
PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= http://unbound.net/downloads/

View File

@ -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"