diff options
author | marino <marino> | 2012-05-20 09:10:44 +0000 |
---|---|---|
committer | marino <marino> | 2012-05-20 09:10:44 +0000 |
commit | 95a4b438632b04b48e822084ff4630805d0223c5 (patch) | |
tree | 5ccc4595cfad69ec47ef62beec2999317ea4967d /net/bind98 | |
parent | 317e034720684836d3c1e41b6edf7adcd3523f0e (diff) | |
download | pkgsrc-95a4b438632b04b48e822084ff4630805d0223c5.tar.gz |
PR#45780 net/bind98: Fix chroot operation
Implemented per PR.
Diffstat (limited to 'net/bind98')
-rw-r--r-- | net/bind98/Makefile | 4 | ||||
-rw-r--r-- | net/bind98/files/named9.sh | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/net/bind98/Makefile b/net/bind98/Makefile index 19b205643c8..e73a73bf18a 100644 --- a/net/bind98/Makefile +++ b/net/bind98/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.9 2012/05/01 02:48:20 taca Exp $ +# $NetBSD: Makefile,v 1.10 2012/05/20 09:10:44 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/bind98/files/named9.sh b/net/bind98/files/named9.sh index 23b98012d3d..5a5dfc5e08c 100644 --- a/net/bind98/files/named9.sh +++ b/net/bind98/files/named9.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: named9.sh,v 1.1.1.1 2011/03/04 03:52:15 taca Exp $ +# $NetBSD: named9.sh,v 1.2 2012/05/20 09:10:44 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 |