aboutsummaryrefslogtreecommitdiff
path: root/net/bind8/Makefile
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2002-07-12 09:25:47 +0000
committerDoug Barton <dougb@FreeBSD.org>2002-07-12 09:25:47 +0000
commit4edc6d14f125d8da7d8a64791f5edc8c81b7dd1b (patch)
treea2175355d52145ef67e3ff307602861db264ec04 /net/bind8/Makefile
parentb1762dcc42808c519df464adf4b359f7e18def74 (diff)
downloadports-4edc6d14f125d8da7d8a64791f5edc8c81b7dd1b.tar.gz
ports-4edc6d14f125d8da7d8a64791f5edc8c81b7dd1b.zip
Notes
Diffstat (limited to 'net/bind8/Makefile')
-rw-r--r--net/bind8/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/net/bind8/Makefile b/net/bind8/Makefile
index 3221c410c700..8ca3dfb78ff2 100644
--- a/net/bind8/Makefile
+++ b/net/bind8/Makefile
@@ -24,7 +24,11 @@ DIST_SUBDIR= bind-${PORTVERSION}
MAINTAINER= DougB@FreeBSD.org
.if defined(PORT_REPLACES_BASE_BIND8)
+PKGNAMESUFFIX= -base
PREFIX= /usr
+BIND_DESTETC= /etc/namedb
+.else
+BIND_DESTETC= ${PREFIX}/etc
.endif
WRKSRC= ${WRKDIR}/src
@@ -42,18 +46,22 @@ PATCH_ARGS= -s -d ${WRKDIR}
PATCH_DIST_ARGS= -s -d ${WRKDIR}
post-patch:
-.if defined(PORT_REPLACES_BASE_BIND8)
- @${SED} -e "s#\'DESTETC=.*#'DESTETC=/etc/namedb'#" \
+ @${SED} -e "s#\'DESTETC=.*#'DESTETC=${BIND_DESTETC}'#" \
+ -e "s#-O2 -g#${CFLAGS}#" \
${WRKSRC}/port/freebsd/Makefile.set > \
${WRKSRC}/port/freebsd/Makefile.set.sed
@${MV} ${WRKSRC}/port/freebsd/Makefile.set.sed \
${WRKSRC}/port/freebsd/Makefile.set
-.endif
+.for file in named.conf.5 named.8
+ @${SED} -e "s#/etc/named.conf#${BIND_DESTETC}/named.conf#g" \
+ ${WRKDIR}/doc/man/${file} > ${WRKDIR}/doc/man/${file}.sed
+ @${MV} ${WRKDIR}/doc/man/${file}.sed ${WRKDIR}/doc/man/${file}
+.endfor
post-install:
+ cd ${WRKDIR}/doc/man && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
+ ${MAKEFILE} clean all ${INSTALL_TARGET}
.if !defined(NOPORTDOCS)
- @(cd ${WRKDIR}/doc/man && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
- ${MAKEFILE} clean all ${INSTALL_TARGET})
@${MKDIR} ${PREFIX}/share/doc/bind8/html
${INSTALL_DATA} ${WRKDIR}/doc/html/*.html ${PREFIX}/share/doc/bind8/html
${CP} -Rp ${WRKDIR}/src/conf ${PREFIX}/share/doc/bind8/