summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authormarino <marino>2012-05-20 12:00:15 +0000
committermarino <marino>2012-05-20 12:00:15 +0000
commit565418f24d0ff84448902f83f8cefbdb68134c22 (patch)
tree0ad4366a7891c23d58a0998a5378dd12953e21b7 /net
parent8050ce7867a2cdecd7d123c2e4b7aeff972754b7 (diff)
downloadpkgsrc-565418f24d0ff84448902f83f8cefbdb68134c22.tar.gz
PR#45780 net/bind99: Fix chroot operation
DNSSEC related, bind99 needs same fix as bind98
Diffstat (limited to 'net')
-rw-r--r--net/bind99/Makefile4
-rw-r--r--net/bind99/files/named9.sh10
2 files changed, 11 insertions, 3 deletions
diff --git a/net/bind99/Makefile b/net/bind99/Makefile
index 269ed0702df..31aef11edb1 100644
--- a/net/bind99/Makefile
+++ b/net/bind99/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2012/05/01 02:47:52 taca Exp $
+# $NetBSD: Makefile,v 1.3 2012/05/20 12:00:15 marino Exp $
DISTNAME= bind-${BIND_VERSION}
PKGNAME= ${DISTNAME:S/-P/pl/}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/ \
http://ftp.belnet.be/pub/mirror/ftp.isc.org/isc/bind9/${BIND_VERSION}/
diff --git a/net/bind99/files/named9.sh b/net/bind99/files/named9.sh
index 7684e6307bb..fa0de8ccd35 100644
--- a/net/bind99/files/named9.sh
+++ b/net/bind99/files/named9.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: named9.sh,v 1.1.1.1 2012/03/07 14:25:00 taca Exp $
+# $NetBSD: named9.sh,v 1.2 2012/05/20 12:00:15 marino Exp $
#
# PROVIDE: named
@@ -49,6 +49,14 @@ named_precmd()
@CP@ -p /etc/localtime "${named_chrootdir}/etc/localtime"
fi
+ if [ -f /usr/lib/engines/libgost.so ]; then
+ if [ ! -d ${named_chrootdir}/usr/lib/engines ]; then
+ @MKDIR@ ${named_chrootdir}/usr/lib/engines
+ fi
+ @CMP@ -s /usr/lib/engines/libgost.so "${named_chrootdir}/usr/lib/engines/libgost.so" || \
+ @CP@ -p /usr/lib/engines/libgost.so "${named_chrootdir}/usr/lib/engines/libgost.so"
+ fi
+
if [ ! -d ${named_chrootdir}@VARBASE@/run/named ]; then
@MKDIR@ ${named_chrootdir}@VARBASE@/run/named
@CHOWN@ @BIND_USER@ ${named_chrootdir}@VARBASE@/run/named