From c59735bd908f58a92d20174a51c52bcbafde1f05 Mon Sep 17 00:00:00 2001 From: marino <marino> Date: Sun, 20 May 2012 09:10:44 +0000 Subject: PR#45780 net/bind98: Fix chroot operation Implemented per PR. --- net/bind98/Makefile | 4 ++-- net/bind98/files/named9.sh | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'net/bind98') 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 -- cgit v1.2.3