diff options
author | Doug Barton <dougb@FreeBSD.org> | 2002-07-12 09:25:47 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2002-07-12 09:25:47 +0000 |
commit | 4edc6d14f125d8da7d8a64791f5edc8c81b7dd1b (patch) | |
tree | a2175355d52145ef67e3ff307602861db264ec04 /dns/bind8 | |
parent | b1762dcc42808c519df464adf4b359f7e18def74 (diff) | |
download | ports-4edc6d14f125d8da7d8a64791f5edc8c81b7dd1b.tar.gz ports-4edc6d14f125d8da7d8a64791f5edc8c81b7dd1b.zip |
Notes
Diffstat (limited to 'dns/bind8')
-rw-r--r-- | dns/bind8/Makefile | 18 | ||||
-rw-r--r-- | dns/bind8/files/patch-aa | 5 |
2 files changed, 15 insertions, 8 deletions
diff --git a/dns/bind8/Makefile b/dns/bind8/Makefile index 3221c410c700..8ca3dfb78ff2 100644 --- a/dns/bind8/Makefile +++ b/dns/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/ diff --git a/dns/bind8/files/patch-aa b/dns/bind8/files/patch-aa index 1ca8d1e4343f..e2684edb625d 100644 --- a/dns/bind8/files/patch-aa +++ b/dns/bind8/files/patch-aa @@ -1,15 +1,14 @@ --- src/port/freebsd/Makefile.set.orig Sun Jun 23 17:32:49 2002 -+++ src/port/freebsd/Makefile.set Fri Jun 28 16:55:49 2002 ++++ src/port/freebsd/Makefile.set Fri Jul 12 00:41:45 2002 @@ -1,12 +1,14 @@ 'CC=cc' --'CDEBUG=-O2 -g -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat' + 'CDEBUG=-O2 -g -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat' -'DESTBIN=/usr/bin' -'DESTSBIN=/usr/sbin' -'DESTEXEC=/usr/libexec' -'DESTMAN=/usr/share/man' -'DESTHELP=/usr/share/misc' -'DESTETC=/etc' -+'CDEBUG=${CFLAGS} -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat' +'DESTBIN=${PREFIX}/bin' +'DESTSBIN=${PREFIX}/sbin' +'DESTEXEC=${PREFIX}/libexec' |