--- b/dns/unbound/Makefile +++ b/dns/unbound/Makefile @@ -35,7 +35,7 @@ PORTDOCS= CREDITS Changelog FEATURES LICENSE README README.svn \ OPTIONS_SUB= yes OPTIONS_DEFINE= THREADS PYTHON GOST ECDSA MUNIN_PLUGIN DOCS LIBEVENT \ FILTER_AAAA DNSTAP DNSCRYPT SUBNET EVAPI TFOCL TFOSE \ - HIREDIS + HIREDIS START_LATE OPTIONS_DEFAULT=THREADS ECDSA LIBEVENT GOST LIBEVENT_DESC= Build against libevent @@ -50,6 +50,7 @@ EVAPI_DESC= (Experimental) pluggable event based libunbound API support TFOCL_DESC= Enable TCP Fast Open for client mode TFOSE_DESC= Enable TCP Fast Open for server mode HIREDIS_DESC= Enable hiredis support for the cachedb module +START_LATE_DESC=Start unbound later in the boot process STRIP_FILES= .libs/libunbound.so unbound-checkconf unbound \ unbound-control .libs/unbound-host .libs/unbound-anchor @@ -81,6 +82,10 @@ PYTHON_VARS= STRIP_FILES+=.libs/_unbound.so THREADS_CONFIGURE_WITH= pthreads HIREDIS_CONFIGURE_ON= --enable-cachedb --with-libhiredis HIREDIS_LIB_DEPENDS= libhiredis.so:databases/hiredis +START_LATE_SUB_LIST= UNBOUND_BEFORE="LOGIN" \ + UNBOUND_REQUIRE="SERVERS cleanvar" +START_LATE_SUB_LIST_OFF=UNBOUND_BEFORE="SERVERS" \ + UNBOUND_REQUIRE="NETWORKING ldconfig syslogd" post-patch: @${RM} ${WRKSRC}/util/configlexer.c --- b/dns/unbound/files/unbound.in +++ b/dns/unbound/files/unbound.in @@ -12,7 +12,8 @@ # root.hints (-r). Useful for when /etc/resolv.conf only contains 127.0.0.1 # # PROVIDE: unbound -# REQUIRE: SERVERS cleanvar +# REQUIRE: %%UNBOUND_REQUIRE%% +# BEFORE: %%UNBOUND_BEFORE%% # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable unbound: