aboutsummaryrefslogtreecommitdiff
path: root/dns/bind99
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-11-17 17:51:51 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-11-17 17:51:51 +0000
commit828c669f5ffde2c83d6cc241e2f6deba03a236f7 (patch)
tree1a8742d387fbfb96ae0d2392b3094a947371567e /dns/bind99
parent4d1b73822cfcac290ebe832981153b82c6c8f04f (diff)
downloadports-828c669f5ffde2c83d6cc241e2f6deba03a236f7.tar.gz
ports-828c669f5ffde2c83d6cc241e2f6deba03a236f7.zip
Notes
Diffstat (limited to 'dns/bind99')
-rw-r--r--dns/bind99/Makefile14
-rw-r--r--dns/bind99/pkg-plist2
2 files changed, 6 insertions, 10 deletions
diff --git a/dns/bind99/Makefile b/dns/bind99/Makefile
index 86cc35c6d489..34ca166bc0c6 100644
--- a/dns/bind99/Makefile
+++ b/dns/bind99/Makefile
@@ -2,6 +2,7 @@
PORTNAME= bind
PORTVERSION= ${ISCVERSION:S/-P/P/}
+PORTREVISION= 1
CATEGORIES= dns net ipv6
MASTER_SITES= ISC/bind9/${ISCVERSION}
PKGNAMESUFFIX= 99
@@ -177,6 +178,7 @@ PKGDEINSTALL= ${PKGINSTALL}
CONFIGURE_ARGS+= --prefix=${PREFIX} \
--sysconfdir=${BIND_DESTETC}
SUB_LIST+= BIND_DESTETC="${BIND_DESTETC}"
+PLIST_SUB+= BIND_DESTETC="${BIND_DESTETC}"
PORTDOCS= *
@@ -197,19 +199,11 @@ WITH_OPENSSL_PORT= yes
post-patch:
.for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.1 \
rndc/rndc.8
- @${MV} ${WRKSRC}/bin/${FILE} ${WRKSRC}/bin/${FILE}.Dist
- @${SED} -e 's#/etc/named.conf#${BIND_DESTETC}/named.conf#g' \
+ @${REINPLACE_CMD} -e 's#/etc/named.conf#${BIND_DESTETC}/named.conf#g' \
-e 's#/etc/rndc.conf#${BIND_DESTETC}/rndc.conf#g' \
-e "s#/var\/run\/named\/named.pid#/var/run/named/pid#" \
- ${WRKSRC}/bin/${FILE}.Dist > ${WRKSRC}/bin/${FILE}
+ ${WRKSRC}/bin/${FILE}
.endfor
- @${MV} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.Dist
- @${SED} -e 's#.*bind\.keys.*##' ${WRKSRC}/Makefile.in.Dist > \
- ${WRKSRC}/Makefile.in
- @${MV} ${WRKSRC}/bin/named/Makefile.in ${WRKSRC}/bin/named/Makefile.in.Dist
- @${SED} -e 's/$${PERL}/#/' -e 's/bind.keys.h/#/g' -e 's/bind9.xsl.h/#/g' \
- ${WRKSRC}/bin/named/Makefile.in.Dist > \
- ${WRKSRC}/bin/named/Makefile.in
post-configure:
@${REINPLACE_CMD} -e '/^SO_LDFLAGS/s/-Wl,-rpath,/-rpath /' ${WRKSRC}/bin/tests/system/dlzexternal/Makefile
diff --git a/dns/bind99/pkg-plist b/dns/bind99/pkg-plist
index 2b49573be7cd..4d66d02caa5c 100644
--- a/dns/bind99/pkg-plist
+++ b/dns/bind99/pkg-plist
@@ -374,6 +374,8 @@ sbin/named-journalprint
sbin/nsec3hash
sbin/rndc
sbin/rndc-confgen
+%%BASE%%%%BIND_DESTETC%%/bind.keys
+%%NOBASE%%%%ETCDIR%%/bind.keys
%%NOBASE%%@sample %%ETCDIR%%/named.conf.sample
%%NOBASE%%%%ETCDIR%%/named.root
%%NOBASE%%%%ETCDIR%%/master/empty.db