pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/48658: BIND doesn't work in chroot after OpenSSL update



The following reply was made to PR pkg/48658; it has been noted by GNATS.

From: "OBATA Akio" <obata%lins.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/48658: BIND doesn't work in chroot after OpenSSL update
Date: Mon, 24 Mar 2014 18:32:17 +0900

 Following change may resolve the issue:
 
 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/net/bind99/Makefile,v
 retrieving revision 1.34
 diff -u -r1.34 Makefile
 --- Makefile    11 Mar 2014 14:34:38 -0000      1.34
 +++ Makefile    24 Mar 2014 09:30:01 -0000
 @@ -56,7 +56,8 @@
   DOCS=                  CHANGES FAQ README
 
   FILES_SUBST+=          BIND_GROUP=${BIND_GROUP:Q} \
 -                       BIND_USER=${BIND_USER:Q} PAX=${PAX:Q}
 +                       BIND_USER=${BIND_USER:Q} PAX=${PAX:Q} \
 +                       SSLBASE=${SSLBASE:Q}
   MESSAGE_SUBST+=                BIND_DIR=${BIND_DIR} BIND_USER=${BIND_USER}
   DOCDIR=                        ${DESTDIR}${PREFIX}/share/doc/bind9
 
 Index: files/named9.sh
 ===================================================================
 RCS file: /cvsroot/pkgsrc/net/bind99/files/named9.sh,v
 retrieving revision 1.2
 diff -u -r1.2 named9.sh
 --- files/named9.sh     20 May 2012 12:00:15 -0000      1.2
 +++ files/named9.sh     24 Mar 2014 09:30:01 -0000
 @@ -49,12 +49,12 @@
                      @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
 +       if [ -f @SSLBASE@/lib/engines/libgost.so ]; then
 +               if [ ! -d ${named_chrootdir}@SSLBASE@/lib/engines ]; then
 +                       @MKDIR@ ${named_chrootdir}@SSLBASE@/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"
 +               @CMP@ -s @SSLBASE@/lib/engines/libgost.so 
"${named_chrootdir}@SSLBASE@/lib/engines/libgost.so" || \
 +                   @CP@ -p @SSLBASE@/lib/engines/libgost.so 
"${named_chrootdir}@SSLBASE@/lib/engines/libgost.so"
          fi
 
                  if [ ! -d ${named_chrootdir}@VARBASE@/run/named ]; then
 


Home | Main Index | Thread Index | Old Index