diff options
-rw-r--r-- | dns/bind96/Makefile | 2 | ||||
-rw-r--r-- | dns/bind96/pkg-install | 13 | ||||
-rw-r--r-- | dns/bind96/pkg-message | 18 |
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. * +* * +************************************************************************* |