aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2013-04-23 08:33:33 +0000
committerErwin Lansing <erwin@FreeBSD.org>2013-04-23 08:33:33 +0000
commiteb345175df85ad64406c81941d1b468a76216002 (patch)
treef4c53f63d7fabe90e3f88e3e7cac8fd4551b98f4 /dns
parent2a0e1389ad51a074077fba1dd5720eb937335b42 (diff)
downloadports-eb345175df85ad64406c81941d1b468a76216002.tar.gz
ports-eb345175df85ad64406c81941d1b468a76216002.zip
Notes
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. *
+* *
+*************************************************************************