aboutsummaryrefslogtreecommitdiff
path: root/dns/bind911
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2018-02-07 14:29:08 +0000
committerMathieu Arnold <mat@FreeBSD.org>2018-02-07 14:29:08 +0000
commitbd282bafccc5e15be322f69ea7e75e9117f658fa (patch)
tree1f6cadeb84ae9757ea5550f0223e84d680993177 /dns/bind911
parent3ab9527fea270e00044d774e74995cb687248f6a (diff)
Teach named where its pid file should be by default, to be consistent
with the default configuration, rc script, man pages... PR: 225687 Reported by: John W. O'Brien Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=461145
Diffstat (limited to 'dns/bind911')
-rw-r--r--dns/bind911/Makefile2
-rw-r--r--dns/bind911/files/patch-bin_named_include_named_globals.h13
2 files changed, 14 insertions, 1 deletions
diff --git a/dns/bind911/Makefile b/dns/bind911/Makefile
index 0faad9b9b8a0..8d423ce45adf 100644
--- a/dns/bind911/Makefile
+++ b/dns/bind911/Makefile
@@ -3,7 +3,7 @@
PORTNAME= bind
PORTVERSION= ${ISCVERSION:S/-P/P/:S/b/.b/:S/a/.a/:S/rc/.rc/}
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= dns net ipv6
MASTER_SITES= ISC/bind9/${ISCVERSION}
PKGNAMESUFFIX= 911
diff --git a/dns/bind911/files/patch-bin_named_include_named_globals.h b/dns/bind911/files/patch-bin_named_include_named_globals.h
new file mode 100644
index 000000000000..6a11fb802a11
--- /dev/null
+++ b/dns/bind911/files/patch-bin_named_include_named_globals.h
@@ -0,0 +1,13 @@
+We reference the pid file as being run/named/pid everywere else.
+
+--- bin/named/include/named/globals.h.orig 2018-01-04 05:28:11 UTC
++++ bin/named/include/named/globals.h
+@@ -135,7 +135,7 @@ EXTERN isc_boolean_t ns_g_forcelock IN
+ #if NS_RUN_PID_DIR
+ EXTERN const char * ns_g_defaultpidfile INIT(NS_LOCALSTATEDIR
+ "/run/named/"
+- "named.pid");
++ "pid");
+ EXTERN const char * lwresd_g_defaultpidfile INIT(NS_LOCALSTATEDIR
+ "/run/lwresd/"
+ "lwresd.pid");