aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-01-06 22:29:24 +0800
committermat <mat@FreeBSD.org>2014-01-06 22:29:24 +0800
commit2fc6a2856e772f229d5208b3575b0292bfa0f9bd (patch)
tree51f102e124c1532b1f85585799bf8c122e5cca74 /dns
parentd27e4be410ed5d97e1a695ac52ef65537fdc7f45 (diff)
downloadfreebsd-ports-gnome-2fc6a2856e772f229d5208b3575b0292bfa0f9bd.tar.gz
freebsd-ports-gnome-2fc6a2856e772f229d5208b3575b0292bfa0f9bd.tar.zst
freebsd-ports-gnome-2fc6a2856e772f229d5208b3575b0292bfa0f9bd.zip
Fix build with LINKS.
Diffstat (limited to 'dns')
-rw-r--r--dns/bind98/pkg-install5
-rw-r--r--dns/bind98/pkg-plist6
-rw-r--r--dns/bind99/pkg-install5
-rw-r--r--dns/bind99/pkg-plist6
4 files changed, 10 insertions, 12 deletions
diff --git a/dns/bind98/pkg-install b/dns/bind98/pkg-install
index 1e89e5b82a51..f493d13a3545 100644
--- a/dns/bind98/pkg-install
+++ b/dns/bind98/pkg-install
@@ -18,4 +18,9 @@ for DIR in ${PKG_PREFIX}/etc /var/named${PKG_PREFIX}/etc; do
done
done
+if [ "$2" = 'POST-DEINSTALL' ]
+then
+ cd /var/named && /bin/rmdir -p ${PKG_PREFIX}/etc > /dev/null 2>&1 || :
+fi
+
exit 0
diff --git a/dns/bind98/pkg-plist b/dns/bind98/pkg-plist
index be1b445d2910..7f6386cd5e29 100644
--- a/dns/bind98/pkg-plist
+++ b/dns/bind98/pkg-plist
@@ -3,8 +3,6 @@ bin/host
bin/isc-config.sh
bin/nslookup
bin/nsupdate
-%%LINKS%%etc/named.conf
-%%LINKS%%etc/rndc.key
include/bind9/check.h
include/bind9/getaddresses.h
include/bind9/version.h
@@ -334,10 +332,6 @@ sbin/named-journalprint
sbin/nsec3hash
sbin/rndc
sbin/rndc-confgen
-%%LINKS%%@unexec rm -f /var/named/%D/etc/named.conf
-%%LINKS%%@unexec rm -f /var/named/%D/etc/rndc.key
-%%LINKS%%@unexec rm -rf /var/named/%D
-%%LINKS%%@unexec rmdir /var/named/usr 2>/dev/null || true
@unexec rm -f %%BIND_DESTETC%%/rndc.conf.sample
%%NOBASE%%etc/rc.d/named
%%NOBASE%%@unexec if cmp -s %%BIND_DESTETC%%/named.conf.sample %%BIND_DESTETC%%/named.conf; then rm -f %%BIND_DESTETC%%/named.conf; fi
diff --git a/dns/bind99/pkg-install b/dns/bind99/pkg-install
index 1e89e5b82a51..f493d13a3545 100644
--- a/dns/bind99/pkg-install
+++ b/dns/bind99/pkg-install
@@ -18,4 +18,9 @@ for DIR in ${PKG_PREFIX}/etc /var/named${PKG_PREFIX}/etc; do
done
done
+if [ "$2" = 'POST-DEINSTALL' ]
+then
+ cd /var/named && /bin/rmdir -p ${PKG_PREFIX}/etc > /dev/null 2>&1 || :
+fi
+
exit 0
diff --git a/dns/bind99/pkg-plist b/dns/bind99/pkg-plist
index ebce04584a66..fdf5e85c32d5 100644
--- a/dns/bind99/pkg-plist
+++ b/dns/bind99/pkg-plist
@@ -3,8 +3,6 @@ bin/host
bin/isc-config.sh
bin/nslookup
bin/nsupdate
-%%LINKS%%etc/named.conf
-%%LINKS%%etc/rndc.key
include/bind9/check.h
include/bind9/getaddresses.h
include/bind9/version.h
@@ -337,10 +335,6 @@ sbin/named-journalprint
sbin/nsec3hash
sbin/rndc
sbin/rndc-confgen
-%%LINKS%%@unexec rm -f /var/named/%D/etc/named.conf
-%%LINKS%%@unexec rm -f /var/named/%D/etc/rndc.key
-%%LINKS%%@unexec rm -rf /var/named/%D
-%%LINKS%%@unexec rmdir /var/named/usr 2>/dev/null || true
@unexec rm -f %%BIND_DESTETC%%/rndc.conf.sample
%%NOBASE%%etc/rc.d/named
%%NOBASE%%@unexec if cmp -s %%BIND_DESTETC%%/named.conf.sample %%BIND_DESTETC%%/named.conf; then rm -f %%BIND_DESTETC%%/named.conf; fi