diff options
author | obache <obache@pkgsrc.org> | 2014-12-12 07:39:32 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2014-12-12 07:39:32 +0000 |
commit | ffe1d47b69ef50be4c0c166e493058d9131b99bf (patch) | |
tree | ca8a53f4a07cd85459bcadf3f03ee900dcba87db /net/bind99 | |
parent | 4422f5f91c1858a4308d8aa54616270a1b055093 (diff) | |
download | pkgsrc-ffe1d47b69ef50be4c0c166e493058d9131b99bf.tar.gz |
Use SSLBASE for location of engines.
PR pkg/48658.
Diffstat (limited to 'net/bind99')
-rw-r--r-- | net/bind99/Makefile | 5 | ||||
-rw-r--r-- | net/bind99/files/named9.sh | 12 |
2 files changed, 9 insertions, 8 deletions
diff --git a/net/bind99/Makefile b/net/bind99/Makefile index cefcd77eec1..10efb4eb887 100644 --- a/net/bind99/Makefile +++ b/net/bind99/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2014/12/08 21:58:18 taca Exp $ +# $NetBSD: Makefile,v 1.41 2014/12/12 07:39:32 obache Exp $ DISTNAME= bind-${BIND_VERSION} PKGNAME= ${DISTNAME:S/-P/pl/} @@ -56,7 +56,8 @@ PKG_HOME.${BIND_USER}= ${BIND_DIR} 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 diff --git a/net/bind99/files/named9.sh b/net/bind99/files/named9.sh index fa0de8ccd35..3f618a1bbbf 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.2 2012/05/20 12:00:15 marino Exp $ +# $NetBSD: named9.sh,v 1.3 2014/12/12 07:39:32 obache Exp $ # # PROVIDE: named @@ -49,12 +49,12 @@ 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 + 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 |