diff options
author | erwin <erwin@FreeBSD.org> | 2013-11-12 15:38:56 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2013-11-12 15:38:56 +0800 |
commit | bfd120d9fcae86d5d0e7e9572ab0777335ffdd42 (patch) | |
tree | 5cc6eecdb57076fab3b11fcce349350ed20c745a /dns/bind98/Makefile | |
parent | deff238040256a9e7e40e5d753ab68a81d6982df (diff) | |
download | freebsd-ports-gnome-bfd120d9fcae86d5d0e7e9572ab0777335ffdd42.tar.gz freebsd-ports-gnome-bfd120d9fcae86d5d0e7e9572ab0777335ffdd42.tar.zst freebsd-ports-gnome-bfd120d9fcae86d5d0e7e9572ab0777335ffdd42.zip |
Support FreeBSD 10.0.
On FreeBSD 10.0, all configuration is installed under
/usr/local/etc/namedb and installs its own rc script in
$PREFIX, which no longer support chroot installations.
LINKS and REPLACE_BASE options are not supported on 10.0
for obvious reasons.
Note for FreeBSD 9.x and earlier users, LINKS is no longer
the default option, though still supported.
An UPDATING entry will follow after bind96 and bind99 are fixed
as well.
Diffstat (limited to 'dns/bind98/Makefile')
-rw-r--r-- | dns/bind98/Makefile | 41 |
1 files changed, 35 insertions, 6 deletions
diff --git a/dns/bind98/Makefile b/dns/bind98/Makefile index 692833e80f76..27983c7b405e 100644 --- a/dns/bind98/Makefile +++ b/dns/bind98/Makefile @@ -24,7 +24,7 @@ CONFIGURE_ARGS= --localstatedir=/var --disable-linux-caps \ CONFLICTS= bind9*-9.[45679].* bind9*-sdb-9.[45679].* bind-tools-9.* -OPTIONS_DEFAULT= IPV6 SSL LINKS XML THREADS +OPTIONS_DEFAULT= IPV6 SSL XML THREADS OPTIONS_DEFINE= SSL LINKS XML IDN REPLACE_BASE LARGE_FILE \ FIXED_RRSET RPZ_NSIP RPZ_NSDNAME RPZRRL_PATCH \ SIGCHASE IPV6 THREADS GSSAPI FILTER_AAAA @@ -167,14 +167,24 @@ IGNORE= REPLACE_BASE option is not supported on this release PKGNAMESUFFIX= -base PREFIX= /usr BIND_DESTETC= /etc/namedb -CONFIGURE_ARGS+= --prefix=${PREFIX} \ - --sysconfdir=${BIND_DESTETC} +.else +.if ${OSVERSION} >= 1000500 +BIND_DESTETC= ${PREFIX}/etc/namedb .else BIND_DESTETC= ${PREFIX}/etc .endif +.endif +CONFIGURE_ARGS+= --prefix=${PREFIX} \ + --sysconfdir=${BIND_DESTETC} PLIST_SUB+= BIND_DESTETC="${BIND_DESTETC}" +.if ${OSVERSION} >= 1000500 +PLIST_SUB+= NOBASE="" +.else +PLIST_SUB+= NOBASE="@comment " +.endif + MAN1= arpaname.1 dig.1 host.1 isc-config.sh.1 nslookup.1 nsupdate.1 MAN3= lwres.3 lwres_addr_parse.3 lwres_buffer.3 lwres_buffer_add.3 \ lwres_buffer_back.3 lwres_buffer_clear.3 lwres_buffer_first.3 \ @@ -238,8 +248,6 @@ post-patch: PORTDOCS= * .endif post-install: - ${INSTALL_DATA} ${WRKSRC}/bin/rndc/rndc.conf \ - ${BIND_DESTETC}/rndc.conf.sample .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR}/arm ${DOCSDIR}/misc ${INSTALL_DATA} ${WRKSRC}/doc/arm/*.html ${DOCSDIR}/arm @@ -248,10 +256,31 @@ post-install: ${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \ ${WRKSRC}/HISTORY ${WRKSRC}/README ${DOCSDIR}/ .endif -.if ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE) +.if ${OSVERSION} >= 1000500 +.for FILE in named named.conf + ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' \ + -e 's#%%BIND_DESTETC%%#${BIND_DESTETC}#g' \ + ${FILESDIR}/${FILE} > ${WRKDIR}/${FILE} +.endfor + ${INSTALL_SCRIPT} ${WRKDIR}/named ${PREFIX}/etc/rc.d + ${MKDIR} ${BIND_DESTETC} +.for DIR in dynamic master slave working + ${MKDIR} ${BIND_DESTETC}/${DIR} +.endfor +.for DIR in dynamic slave working + ${CHOWN} bind:bind ${BIND_DESTETC}/${DIR} +.endfor + ${INSTALL_DATA} ${WRKDIR}/named.conf ${BIND_DESTETC} + ${INSTALL_DATA} ${FILESDIR}/named.root ${BIND_DESTETC} + ${INSTALL_DATA} ${FILESDIR}/empty.db ${BIND_DESTETC}/master + ${INSTALL_DATA} ${FILESDIR}/localhost-forward.db ${BIND_DESTETC}/master + ${INSTALL_DATA} ${FILESDIR}/localhost-reverse.db ${BIND_DESTETC}/master +.elif ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE) PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif + ${INSTALL_DATA} ${WRKSRC}/bin/rndc/rndc.conf \ + ${BIND_DESTETC}/rndc.conf.sample @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> |