aboutsummaryrefslogtreecommitdiffstats
path: root/dns/bind910
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-08-31 18:06:27 +0800
committermat <mat@FreeBSD.org>2015-08-31 18:06:27 +0800
commit10d23f2fbf3a33339ee3a451231917413bf27702 (patch)
tree316971eced9a762b30fb74ce2919a00bf983e976 /dns/bind910
parent8c8b0b13311c91ad9e25c69d30eb481ef967c849 (diff)
downloadfreebsd-ports-gnome-10d23f2fbf3a33339ee3a451231917413bf27702.tar.gz
freebsd-ports-gnome-10d23f2fbf3a33339ee3a451231917413bf27702.tar.zst
freebsd-ports-gnome-10d23f2fbf3a33339ee3a451231917413bf27702.zip
When not using OpenSSL from ports, do not try to unmount the chrooted
engines directory. PR: 201423 (based on) Submitted by: girgen Sponsored by: Absolight
Diffstat (limited to 'dns/bind910')
-rw-r--r--dns/bind910/Makefile2
-rw-r--r--dns/bind910/files/named.in8
2 files changed, 5 insertions, 5 deletions
diff --git a/dns/bind910/Makefile b/dns/bind910/Makefile
index 312b2a0eb313..cf13e711c1b0 100644
--- a/dns/bind910/Makefile
+++ b/dns/bind910/Makefile
@@ -8,7 +8,7 @@ PORTVERSION= ${ISCVERSION:S/-P/P/}
PORTREVISION= 0
.else
# dns/bind910 here
-PORTREVISION= 1
+PORTREVISION= 2
.endif
CATEGORIES= dns net ipv6
MASTER_SITES= ISC/bind9/${ISCVERSION}
diff --git a/dns/bind910/files/named.in b/dns/bind910/files/named.in
index cd809f5173c9..5d5f92b45f84 100644
--- a/dns/bind910/files/named.in
+++ b/dns/bind910/files/named.in
@@ -232,10 +232,10 @@ named_stop()
named_poststop()
{
if [ -n "${named_chrootdir}" -a -c ${named_chrootdir}/dev/null ]; then
- # unmount OpenSSL engines, if they were not mounted but only
- # copied, do nothing.
- if [ `${SYSCTL_N} security.jail.jailed` -eq 0 -o `${SYSCTL_N} security.jail.mount_allowed` -eq 1 ]; then
- umount ${named_chrootdir}${_openssl_engines}
+ # if using OpenSSL from ports, unmount OpenSSL engines, if they
+ # were not mounted but only copied, do nothing.
+ if [ -d ${_openssl_engines} -a \( `${SYSCTL_N} security.jail.jailed` -eq 0 -o `${SYSCTL_N} security.jail.mount_allowed` -eq 1 \) ]; then
+ umount ${named_chrootdir}${_openssl_engines}
fi
# unmount /dev
if [ `${SYSCTL_N} security.jail.jailed` -eq 0 ]; then