1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/dns/bind910/pkg-install
Mathieu Arnold 93a3b5d186 Introduce BIND 9.10.0rc1
BIND 9.10 includes a number of changes from earlier releases, including:
- DNS Response-rate limiting (DNS RRL)
- A new "prefetch" option can improve recursive resolver performance
- ACLs can now be specified based on geographic location using the
  MaxMind GeoIP databases.
- A new compile-time option, NATIVE_PKCS11 allows the BIND 9
  cryptography functions to use the PKCS#11 API natively.

                               *NOTE*
          This is a release candidate, it may contain bugs.
                               *NOTE*

Changes:	https://lists.isc.org/pipermail/bind-announce/2014-April/000906.html
Sponsored by:	Absolight
2014-04-10 16:01:27 +00:00

27 lines
511 B
Bash

#!/bin/sh
if [ "$2" = 'POST-INSTALL' ]
then
/bin/mkdir -p /var/named${PKG_PREFIX}/etc
fi
for DIR in ${PKG_PREFIX}/etc /var/named${PKG_PREFIX}/etc; do
for FILE in named.conf rndc.key; do
if [ "$2" = 'POST-INSTALL' ]
then
/bin/ln -sf /etc/namedb/${FILE} ${DIR}/${FILE}
fi
if [ "$2" = 'POST-DEINSTALL' ]
then
[ -L ${DIR}/${FILE} ] && rm -f ${DIR}/${FILE}
fi
done
done
if [ "$2" = 'POST-DEINSTALL' ]
then
cd /var/named && /bin/rmdir -p ./${PKG_PREFIX}/etc > /dev/null 2>&1 || :
fi
exit 0