summaryrefslogtreecommitdiff
path: root/dns/bind95/Makefile
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2001-02-07 12:36:27 +0000
committerDoug Barton <dougb@FreeBSD.org>2001-02-07 12:36:27 +0000
commite77ea8ac3fd832ed08d1a81ea86b55eddeb26aa8 (patch)
tree15d2ca68072aa5bbfd3a5b1404980e41eae79592 /dns/bind95/Makefile
parentUpdate to 1.1.1. (diff)
Major overhaul, including an updated man/plist, patching the man pages
to make the location of etc/ files prefix-safe. Install a sample rndc.conf file. Since rndc won't start without one the user should have an example to work from. Add the installation of various docs wrapped in a NOPORTDOCS test. Last but not least, add a patch that turns off the debugging code ISC left on by default. This should help solve the problems with misbehaving assert's, related to nmap and other causes.
Diffstat (limited to 'dns/bind95/Makefile')
-rw-r--r--dns/bind95/Makefile35
1 files changed, 31 insertions, 4 deletions
diff --git a/dns/bind95/Makefile b/dns/bind95/Makefile
index 30794176c933..f3bdaa4e124d 100644
--- a/dns/bind95/Makefile
+++ b/dns/bind95/Makefile
@@ -16,18 +16,45 @@ MAINTAINER= DougB@FreeBSD.org
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var
-MAN1= host.1 dig.1
+MAN1= dig.1 host.1 named-checkconf.1 named-checkzone.1
MAN5= rndc.conf.5
MAN8= lwresd.8 named.8 nsupdate.8 rndc.8 dnssec-keygen.8 dnssec-makekeyset.8 \
dnssec-signkey.8 dnssec-signzone.8
-pre-configure:
- ${PERL} -pi -e "s@{INSTALL_PROGRAM}@{INSTALL_DATA} -m 555@g" ${WRKSRC}/Makefile.in
+DIR= ${WRKSRC}/doc/man/bin
+post-patch:
+.for FILE in named-checkconf.1 named.8 nsupdate.8 rndc.8 rndc.conf.5
+ @ ${MV} ${DIR}/${FILE} ${DIR}/${FILE}.Dist
+ @ ${SED} -e 's#/etc/named.conf#${PREFIX}/etc/named.conf#g' \
+ -e 's#/etc/rndc.conf#${PREFIX}/etc/rndc.conf#g' \
+ ${DIR}/${FILE}.Dist > ${DIR}/${FILE}
+.endfor
+
+ @ ${MV} ${WRKSRC}/doc/man/dnssec/dnssec-signzone.8 \
+ ${WRKSRC}/doc/man/dnssec/dnssec-signzone.8.Dist
+ @ ${SED} -e 's#/etc/named.conf#${PREFIX}/etc/named.conf#g' \
+ ${WRKSRC}/doc/man/dnssec/dnssec-signzone.8.Dist \
+ > ${WRKSRC}/doc/man/dnssec/dnssec-signzone.8
+
+ @ ${MV} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.Dist
+ @ ${SED} -e 's#{INSTALL_PROGRAM}#{INSTALL_DATA} -m 555#g' \
+ ${WRKSRC}/Makefile.in.Dist > ${WRKSRC}/Makefile.in
post-install:
.for NUM in 1 5 8
${INSTALL_MAN} ${WRKSRC}/doc/man/bin/*.${NUM} ${MANPREFIX}/man/man${NUM}
.endfor
- ${INSTALL_MAN} ${WRKSRC}/doc/man/dnssec/* ${MANPREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/doc/man/dnssec/*.8 ${MANPREFIX}/man/man8
+ ${INSTALL_DATA} ${WRKSRC}/bin/rndc/rndc.conf \
+ ${PREFIX}/etc/rndc.conf.sample
+
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/bind9/arm
+ ${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM*html \
+ ${PREFIX}/share/doc/bind9/arm/
+ ${CP} -R ${WRKSRC}/doc/misc ${PREFIX}/share/doc/bind9/
+ ${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \
+ ${WRKSRC}/README ${PREFIX}/share/doc/bind9/
+.endif
.include <bsd.port.mk>