diff options
author | erwin <erwin@FreeBSD.org> | 2013-12-05 20:54:56 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2013-12-05 20:54:56 +0800 |
commit | 0baf59d2c22ed4f6a142f664e18cfa75e45cf9e3 (patch) | |
tree | 7f889464f13eef71f8e384d825ae5c97ccf4b4f0 /dns/bind98 | |
parent | 30fdc0ac85f448e4a86b42640484944fa73442e8 (diff) | |
download | freebsd-ports-gnome-0baf59d2c22ed4f6a142f664e18cfa75e45cf9e3.tar.gz freebsd-ports-gnome-0baf59d2c22ed4f6a142f664e18cfa75e45cf9e3.tar.zst freebsd-ports-gnome-0baf59d2c22ed4f6a142f664e18cfa75e45cf9e3.zip |
Install named.conf as named.conf.sample and don't overwrite on upgrade
Bullet hole in foot: joeld
Pointy hat: erwin
Diffstat (limited to 'dns/bind98')
-rw-r--r-- | dns/bind98/Makefile | 9 | ||||
-rw-r--r-- | dns/bind98/pkg-plist | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/dns/bind98/Makefile b/dns/bind98/Makefile index 2de9ad86531d..bca23051d427 100644 --- a/dns/bind98/Makefile +++ b/dns/bind98/Makefile @@ -2,7 +2,7 @@ PORTNAME= bind98 PORTVERSION= 9.8.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= dns net ipv6 MASTER_SITES= ${MASTER_SITE_ISC} MASTER_SITE_SUBDIR= bind9/${ISCVERSION} @@ -25,7 +25,7 @@ CONFIGURE_ARGS= --localstatedir=/var --disable-linux-caps \ CONFLICTS= bind9*-9.[45679].* bind9*-sdb-9.[45679].* bind-tools-9.* -OPTIONS_DEFAULT= IPV6 SSL XML THREADS +OPTIONS_DEFAULT= IPV6 SSL XML THREADS GSSAPI OPTIONS_DEFINE= SSL LINKS XML IDN REPLACE_BASE LARGE_FILE \ FIXED_RRSET RPZ_NSIP RPZ_NSDNAME RPZRRL_PATCH \ SIGCHASE IPV6 THREADS GSSAPI FILTER_AAAA @@ -272,7 +272,10 @@ post-install: .for DIR in dynamic slave working ${CHOWN} bind:bind ${BIND_DESTETC}/${DIR} .endfor - ${INSTALL_DATA} ${WRKDIR}/named.conf ${BIND_DESTETC} + ${INSTALL_DATA} ${WRKDIR}/named.conf ${BIND_DESTETC}/named.conf.sample +.if !exists(${BIND_DESTETC}/named.conf) + ${INSTALL_DATA} ${WRKDIR}/named.conf ${BIND_DESTETC}/named.conf +.endif ${INSTALL_DATA} ${FILESDIR}/named.root ${BIND_DESTETC} ${INSTALL_DATA} ${FILESDIR}/empty.db ${BIND_DESTETC}/master ${INSTALL_DATA} ${FILESDIR}/localhost-forward.db ${BIND_DESTETC}/master diff --git a/dns/bind98/pkg-plist b/dns/bind98/pkg-plist index c409b36fd5f9..71fc3a5a1492 100644 --- a/dns/bind98/pkg-plist +++ b/dns/bind98/pkg-plist @@ -229,7 +229,8 @@ sbin/rndc-confgen %%LINKS%%@unexec rmdir /var/named/usr 2>/dev/null || true @unexec rm -f %%BIND_DESTETC%%/rndc.conf.sample %%NOBASE%%etc/rc.d/named -%%NOBASE%%%%BIND_DESTETC%%/named.conf +%%NOBASE%%@unexec if cmp -s %%BIND_DESTETC%%/named.conf.sample %%BIND_DESTETC%%/named.conf; then rm -f %%BIND_DESTETC%%/named.conf; fi +%%NOBASE%%%%BIND_DESTETC%%/named.conf.sample %%NOBASE%%%%BIND_DESTETC%%/named.root %%NOBASE%%%%BIND_DESTETC%%/master/empty.db %%NOBASE%%%%BIND_DESTETC%%/master/localhost-forward.db |