pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/45780: net/bind98 needs libgost.so in a chroot [PATCH]
>Number: 45780
>Category: pkg
>Synopsis: net/bind98 needs libgost.so in a chroot [PATCH]
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 05 00:00:00 +0000 2012
>Originator: Peter Avalos
>Release: DragonFly
>Organization:
TheShell
>Environment:
DragonFly avalon.theshell.com 2.13-DEVELOPMENT DragonFly
v2.13.0.795.gc8b07-DEVELOPMENT #1: Tue Jan 3 13:35:10 PST 2012
dillon%avalon.theshell.com@localhost:/usr/obj/usr/src/sys/AVALON64 x86_64
>Description:
bind98 needs libgost.so in its chroot for it to start.
>How-To-Repeat:
>Fix:
Here's a patch to named9.sh that will copy libgost.so into the chroot env
(similar to other needed files in the chroot).
http://www.theshell.com/~pavalos/wip/named9.sh.patch
diff --git a/net/bind98/files/named9.sh b/net/bind98/files/named9.sh
index 23b9801..0da5dd1 100644
--- a/net/bind98/files/named9.sh
+++ b/net/bind98/files/named9.sh
@@ -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
Home |
Main Index |
Thread Index |
Old Index