svn commit: r388211 - in head/dns: bind910 bind910/files bind99 bind99/files
Mathieu Arnold
mat at FreeBSD.org
Mon Jun 1 10:14:00 UTC 2015
Author: mat
Date: Mon Jun 1 10:13:58 2015
New Revision: 388211
URL: https://svnweb.freebsd.org/changeset/ports/388211
Log:
Make BIND start a bit later (and really *after* ldconfig.) [1]
Add an option to have it start way later.
PR: 200375 [1]
Sponsored by: Absolight
Modified:
head/dns/bind910/Makefile
head/dns/bind910/files/named.in
head/dns/bind910/pkg-help
head/dns/bind99/Makefile
head/dns/bind99/files/named.in
head/dns/bind99/pkg-help
Modified: head/dns/bind910/Makefile
==============================================================================
--- head/dns/bind910/Makefile Mon Jun 1 09:58:42 2015 (r388210)
+++ head/dns/bind910/Makefile Mon Jun 1 10:13:58 2015 (r388211)
@@ -8,7 +8,7 @@ PORTVERSION= ${ISCVERSION:S/-P/P/}
PORTREVISION= 0
.else
# dns/bind910 here
-PORTREVISION= 4
+PORTREVISION= 5
.endif
CATEGORIES= dns net ipv6
MASTER_SITES= ISC/bind9/${ISCVERSION}
@@ -50,7 +50,7 @@ SUB_FILES= pkg-message
.endif
OPTIONS_DEFAULT= IPV6 SSL THREADS SIGCHASE IDN GSSAPI_NONE
-OPTIONS_DEFINE= IDN LARGE_FILE PYTHON \
+OPTIONS_DEFINE= IDN LARGE_FILE PYTHON START_LATE \
FIXED_RRSET SIGCHASE IPV6 THREADS FILTER_AAAA
OPTIONS_RADIO= CRYPTO GOSTDEF
OPTIONS_RADIO_CRYPTO= SSL NATIVE_PKCS11
@@ -80,6 +80,7 @@ GOSTDEF_DESC= Enable GOST ciphers, need
GOST_DESC= GOST raw keys (new default)
GOST_ASN1_DESC= GOST using ASN.1
PYTHON_DESC= Build with Python utilities
+START_LATE_DESC= Start BIND late in the boot process
LINKS_DESC= Create conf file symlinks in ${PREFIX}
NEWSTATS_DESC= Enable alternate xml statistics channel format
@@ -156,6 +157,11 @@ DLZ_FILESYSTEM_CONFIGURE_ON= --with-dlz-
DLZ_STUB_CONFIGURE_ON= --with-dlz-stub=yes
+START_LATE_SUB_LIST= NAMED_REQUIRE="SERVERS cleanvar" \
+ NAMED_BEFORE="LOGIN"
+START_LATE_SUB_LIST_OFF=NAMED_REQUIRE="NETWORKING ldconfig syslogd" \
+ NAMED_BEFORE="SERVERS"
+
GSSAPI_BASE_USES= gssapi
GSSAPI_BASE_CONFIGURE_ON= \
--with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS}
Modified: head/dns/bind910/files/named.in
==============================================================================
--- head/dns/bind910/files/named.in Mon Jun 1 09:58:42 2015 (r388210)
+++ head/dns/bind910/files/named.in Mon Jun 1 10:13:58 2015 (r388211)
@@ -4,8 +4,8 @@
#
# PROVIDE: named
-# REQUIRE: FILESYSTEMS defaultroute ldconfig
-# BEFORE: NETWORKING
+# REQUIRE: %%NAMED_REQUIRE%%
+# BEFORE: %%NAMED_BEFORE%%
# KEYWORD: shutdown
#
Modified: head/dns/bind910/pkg-help
==============================================================================
--- head/dns/bind910/pkg-help Mon Jun 1 09:58:42 2015 (r388210)
+++ head/dns/bind910/pkg-help Mon Jun 1 10:13:58 2015 (r388211)
@@ -22,3 +22,9 @@ either copying content of /usr/local/lib
/var/named/usr/local/lib/engines, or by creating that directory
and adding this line to /etc/fstab:
/usr/local/lib/engines /var/named/usr/local/lib/engines nullfs ro 0 0
+
+
+ START_LATE
+Most of the time, BIND needs to start early in the boot
+process. Enable this if BIND starts too early for you and
+you need it to start later.
Modified: head/dns/bind99/Makefile
==============================================================================
--- head/dns/bind99/Makefile Mon Jun 1 09:58:42 2015 (r388210)
+++ head/dns/bind99/Makefile Mon Jun 1 10:13:58 2015 (r388211)
@@ -3,7 +3,7 @@
PORTNAME= bind
PORTVERSION= ${ISCVERSION:S/-P/P/}
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= dns net ipv6
MASTER_SITES= ISC/bind9/${ISCVERSION}
PKGNAMESUFFIX= 99
@@ -43,7 +43,7 @@ SUB_FILES= pkg-message
OPTIONS_DEFAULT= IPV6 SSL THREADS SIGCHASE IDN GSSAPI_NONE RRL
OPTIONS_DEFINE= SSL IDN REPLACE_BASE LARGE_FILE FIXED_RRSET SIGCHASE \
- IPV6 THREADS FILTER_AAAA GOST PYTHON \
+ IPV6 THREADS FILTER_AAAA GOST PYTHON START_LATE \
LINKS RPZ_NSIP RPZ_NSDNAME RRL DOCS RPZ_PATCH NEWSTATS
OPTIONS_GROUP= DLZ
OPTIONS_GROUP_DLZ= DLZ_POSTGRESQL DLZ_MYSQL DLZ_BDB \
@@ -61,6 +61,7 @@ SIGCHASE_DESC= dig/host/nslookup will d
FILTER_AAAA_DESC= Enable filtering of AAAA records
GOST_DESC= Enable GOST ciphers, needs SSL (see help on 8 and 9)
PYTHON_DESC= Build with Python utilities
+START_LATE_DESC= Start BIND late in the boot process
LINKS_DESC= Create conf file symlinks in ${PREFIX}
NEWSTATS_DESC= Enable alternate xml statistics channel format
@@ -131,6 +132,11 @@ DLZ_FILESYSTEM_CONFIGURE_ON= --with-dlz-
DLZ_STUB_CONFIGURE_ON= --with-dlz-stub=yes
+START_LATE_SUB_LIST= NAMED_REQUIRE="SERVERS cleanvar" \
+ NAMED_BEFORE="LOGIN"
+START_LATE_SUB_LIST_OFF=NAMED_REQUIRE="NETWORKING ldconfig syslogd" \
+ NAMED_BEFORE="SERVERS"
+
GSSAPI_BASE_USES= gssapi
GSSAPI_BASE_CONFIGURE_ON= \
--with-gssapi=${GSSAPIBASEDIR} ${GSSAPI_CONFIGURE_ARGS}
Modified: head/dns/bind99/files/named.in
==============================================================================
--- head/dns/bind99/files/named.in Mon Jun 1 09:58:42 2015 (r388210)
+++ head/dns/bind99/files/named.in Mon Jun 1 10:13:58 2015 (r388211)
@@ -4,8 +4,8 @@
#
# PROVIDE: named
-# REQUIRE: FILESYSTEMS defaultroute ldconfig
-# BEFORE: NETWORKING
+# REQUIRE: %%NAMED_REQUIRE%%
+# BEFORE: %%NAMED_BEFORE%%
# KEYWORD: shutdown
#
Modified: head/dns/bind99/pkg-help
==============================================================================
--- head/dns/bind99/pkg-help Mon Jun 1 09:58:42 2015 (r388210)
+++ head/dns/bind99/pkg-help Mon Jun 1 10:13:58 2015 (r388211)
@@ -6,3 +6,9 @@ either copying content of /usr/local/lib
/var/named/usr/local/lib/engines, or by creating that directory
and adding this line to /etc/fstab:
/usr/local/lib/engines /var/named/usr/local/lib/engines nullfs ro 0 0
+
+
+ START_LATE
+Most of the time, BIND needs to start early in the boot
+process. Enable this if BIND starts too early for you and
+you need it to start later.
More information about the svn-ports-all
mailing list