aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2013-04-23 16:33:33 +0800
committererwin <erwin@FreeBSD.org>2013-04-23 16:33:33 +0800
commit984bc330e80e35ba4f1e84d92e7eace28b57fff9 (patch)
treef4c53f63d7fabe90e3f88e3e7cac8fd4551b98f4 /dns
parent4c5c35d1f9fd1155408e4255a9dd893b85045832 (diff)
downloadfreebsd-ports-gnome-984bc330e80e35ba4f1e84d92e7eace28b57fff9.tar.gz
freebsd-ports-gnome-984bc330e80e35ba4f1e84d92e7eace28b57fff9.tar.zst
freebsd-ports-gnome-984bc330e80e35ba4f1e84d92e7eace28b57fff9.zip
Make pkg-message and pkg-install a local file to the bind96
port and not include the one from the deprecated bind97 port, which is to be removed.
Diffstat (limited to 'dns')
-rw-r--r--dns/bind96/Makefile2
-rw-r--r--dns/bind96/pkg-install13
-rw-r--r--dns/bind96/pkg-message18
3 files changed, 31 insertions, 2 deletions
diff --git a/dns/bind96/Makefile b/dns/bind96/Makefile
index 7bb48dc8e908..f45ac20f6a59 100644
--- a/dns/bind96/Makefile
+++ b/dns/bind96/Makefile
@@ -196,8 +196,6 @@ post-patch:
.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= *
.endif
-PKGMESSAGE= ${.CURDIR}/../bind97/pkg-message
-PKGINSTALL= ${.CURDIR}/../bind97/pkg-install
post-install:
${INSTALL_DATA} ${WRKSRC}/bin/rndc/rndc.conf \
${BIND_DESTETC}/rndc.conf.sample
diff --git a/dns/bind96/pkg-install b/dns/bind96/pkg-install
new file mode 100644
index 000000000000..fef4dba0bd3c
--- /dev/null
+++ b/dns/bind96/pkg-install
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+[ "$2" = 'POST-INSTALL' ] || exit 0
+
+/bin/mkdir -p /var/named${PKG_PREFIX}/etc
+
+for DIR in ${PKG_PREFIX}/etc /var/named${PKG_PREFIX}/etc; do
+ for FILE in named.conf rndc.key; do
+ /bin/ln -sf /etc/namedb/${FILE} ${DIR}/${FILE}
+ done
+done
+
+exit 0
diff --git a/dns/bind96/pkg-message b/dns/bind96/pkg-message
new file mode 100644
index 000000000000..bb713abdd1d3
--- /dev/null
+++ b/dns/bind96/pkg-message
@@ -0,0 +1,18 @@
+*************************************************************************
+* _ _____ _____ _____ _ _ _____ ___ ___ _ _ *
+* / \|_ _|_ _| ____| \ | |_ _|_ _/ _ \| \ | | *
+* / _ \ | | | | | _| | \| | | | | | | | | \| | *
+* / ___ \| | | | | |___| |\ | | | | | |_| | |\ | *
+* /_/ \_\_| |_| |_____|_| \_| |_| |___\___/|_| \_| *
+* *
+* If you are running BIND 9 in a chroot environment, make *
+* sure that there is a /dev/random device in the chroot. *
+* *
+* BIND 9 also requires configuration of rndc, including a *
+* "secret" key. The easiest, and most secure way to configure *
+* rndc is to run 'rndc-confgen -a' to generate the proper conf *
+* file, with a new random key, and appropriate file permissions. *
+* *
+* The /etc/rc.d/named script in the base will do both for you. *
+* *
+*************************************************************************