diff options
author | mat <mat@FreeBSD.org> | 2014-01-06 21:34:48 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2014-01-06 21:34:48 +0800 |
commit | 312083d3a420425012cde480596d0a4fd888f009 (patch) | |
tree | 0a0a6c7f509ff050c2750cde80889c0d86b974cb /dns/bind98/Makefile | |
parent | 40c9c9bc627fb9dd4cba5d48e91abba63fb53b58 (diff) | |
download | freebsd-ports-gnome-312083d3a420425012cde480596d0a4fd888f009.tar.gz freebsd-ports-gnome-312083d3a420425012cde480596d0a4fd888f009.tar.zst freebsd-ports-gnome-312083d3a420425012cde480596d0a4fd888f009.zip |
Convert to staging and new options.
Diffstat (limited to 'dns/bind98/Makefile')
-rw-r--r-- | dns/bind98/Makefile | 209 |
1 files changed, 62 insertions, 147 deletions
diff --git a/dns/bind98/Makefile b/dns/bind98/Makefile index d7081c88c24f..786bcb0d9e02 100644 --- a/dns/bind98/Makefile +++ b/dns/bind98/Makefile @@ -2,7 +2,7 @@ PORTNAME= bind98 PORTVERSION= 9.8.6 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= dns net ipv6 MASTER_SITES= ${MASTER_SITE_ISC} MASTER_SITE_SUBDIR= bind9/${ISCVERSION} @@ -52,101 +52,64 @@ DLZ_LDAP_DESC= DLZ LDAP driver DLZ_FILESYSTEM_DESC= DLZ filesystem driver DLZ_STUB_DESC= DLZ stub driver -NO_STAGE= yes -.include <bsd.port.options.mk> +SSL_CONFIGURE_ON= --with-openssl=${OPENSSLBASE} +SSL_USE= openssl=yes +SSL_CONFIGURE_OFF= --disable-openssl-version-check --without-openssl -.if (${ARCH} == "amd64") -ARCH= x86_64 -.endif +XML_CONFIGURE_ON= --with-libxml2=${LOCALBASE} +XML_CONFIGURE_OFF= --without-libxml2 +XML_LIB_DEPENDS= libxml2.so:${PORTSDIR}/textproc/libxml2 -.if ${PORT_OPTIONS:MSSL} -CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} -USE_OPENSSL= yes -.else -CONFIGURE_ARGS+= --disable-openssl-version-check -CONFIGURE_ARGS+= --without-openssl -.endif +IDN_USES= iconv +IDN_CONFIGURE_ON= --with-idn=${LOCALBASE} ${ICONV_CONFIGURE_BASE} +IDN_CONFIGURE_OFF= --without-idn +IDN_LIB_DEPENDS= libidnkit.so:${PORTSDIR}/dns/idnkit -.if ${PORT_OPTIONS:MXML} -CONFIGURE_ARGS+= --with-libxml2=${LOCALBASE} -LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 -.else -CONFIGURE_ARGS+= --without-libxml2 -.endif +LARGE_FILE_CONFIGURE_ENABLE= largefile -.if ${PORT_OPTIONS:MIDN} -USES+= iconv -CONFIGURE_ARGS+= --with-idn=${LOCALBASE} ${ICONV_CONFIGURE_BASE} -LIB_DEPENDS+= idnkit.1:${PORTSDIR}/dns/idnkit -.else -CONFIGURE_ARGS+= --without-idn -.endif +SIGCHASE_CONFIGURE_ON= STD_CDEFINES="-DDIG_SIGCHASE=1" -.if ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE) -PLIST_SUB+= LINKS="" -.else -PLIST_SUB+= LINKS="@comment " -.endif +IPV6_CONFIGURE_ENABLE= ipv6 -.if ${PORT_OPTIONS:MLARGE_FILE} -CONFIGURE_ARGS+= --enable-largefile -.endif +FILTER_AAAA_CONFIGURE_ENABLE= filter-aaaa -.if ${PORT_OPTIONS:MSIGCHASE} -CONFIGURE_ARGS+= STD_CDEFINES="-DDIG_SIGCHASE=1" -.endif +FIXED_RRSET_CONFIGURE_ENABLE= fixed-rrset -.if ${PORT_OPTIONS:MIPV6} -CONFIGURE_ARGS+= --enable-ipv6 -.endif +RPZ_NSIP_CONFIGURE_ENABLE= rpz-nsip -.if ${PORT_OPTIONS:MFILTER_AAAA} -CONFIGURE_ARGS+= --enable-filter-aaaa -.endif +RPZ_NSDNAME_CONFIGURE_ENABLE= rpz-nsdname -.if ${PORT_OPTIONS:MFIXED_RRSET} -CONFIGURE_ARGS+= --enable-fixed-rrset -.endif +RPZRRL_PATCH_PATCHFILES= rpz2+rl-9.8.6.patch:vix +RPZRRL_PATCH_PATCH_SITES= http://ss.vix.su/~vjs/:vix -.if ${PORT_OPTIONS:MRPZ_NSIP} -CONFIGURE_ARGS+= --enable-rpz-nsip -.endif +DLZ_POSTGRESQL_CONFIGURE_ON= --with-dlz-postgres=yes +DLZ_POSTGRESQL_USE= pgsql=yes -.if ${PORT_OPTIONS:MRPZ_NSDNAME} -CONFIGURE_ARGS+= --enable-rpz-nsdname -.endif +DLZ_MYSQL_CONFIGURE_ON= --with-dlz-mysql=yes +DLZ_MYSQL_USE= mysql=yes -.if ${PORT_OPTIONS:MRPZRRL_PATCH} -PATCHFILES= rpz2+rl-9.8.6.patch -PATCH_SITES= http://ss.vix.su/~vjs/ -.endif +DLZ_BDB_CONFIGURE_ON= --with-dlz-bdb=yes +DLZ_BDB_USE= bdb=yes -.if ${PORT_OPTIONS:MDLZ_POSTGRESQL} -CONFIGURE_ARGS+= --with-dlz-postgres=yes -USE_PGSQL= yes -.endif +DLZ_LDAP_CONFIGURE_ON= --with-dlz-ldap=yes +DLZ_LDAP_USE= openldap=yes -.if ${PORT_OPTIONS:MDLZ_MYSQL} -CONFIGURE_ARGS+= --with-dlz-mysql=yes -USE_MYSQL= yes -.endif +DLZ_FILESYSTEM_CONFIGURE_ON= --with-dlz-filesystem=yes -.if ${PORT_OPTIONS:MDLZ_BDB} -CONFIGURE_ARGS+= --with-dlz-bdb=yes -USE_BDB= yes -.endif +DLZ_STUB_CONFIGURE_ON= --with-dlz-stub=yes -.if ${PORT_OPTIONS:MDLZ_LDAP} -CONFIGURE_ARGS+= --with-dlz-ldap=yes -USE_OPENLDAP= yes -.endif +GSSAPI_CONFIGURE_WITH= gssapi + +.include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MDLZ_FILESYSTEM} -CONFIGURE_ARGS+= --with-dlz-filesystem=yes +.if (${ARCH} == "amd64") +ARCH= x86_64 .endif -.if ${PORT_OPTIONS:MDLZ_STUB} -CONFIGURE_ARGS+= --with-dlz-stub=yes +.if ${PORT_OPTIONS:MLINKS} && empty(${PORT_OPTIONS:MREPLACE_BASE}) +PLIST_SUB+= LINKS="" +.else +PLIST_SUB+= LINKS="@comment " .endif .if ${PORT_OPTIONS:MTHREADS} && empty(PORT_OPTIONS:MDLZ_MYSQL) @@ -156,14 +119,11 @@ CONFIGURE_ARGS+= --disable-threads .endif .if ${PORT_OPTIONS:MGSSAPI} -CONFIGURE_ARGS+= --with-gssapi .if defined(HEIMDAL_HOME) LDFLAGS+= -L${LIBDIR} -lgssapi -lkrb5 .else LDFLAGS+= -L${LIBDIR} -lgssapi_krb5 .endif -.else -CONFIGURE_ARGS+= --without-gssapi .endif .if ${PORT_OPTIONS:MREPLACE_BASE} @@ -172,15 +132,21 @@ IGNORE= REPLACE_BASE option is not supported on this release .endif PKGNAMESUFFIX= -base PREFIX= /usr +PLIST_SUB+= SHARE_MAN="share/" +NO_MTREE= yes BIND_DESTETC= /etc/namedb .else +PLIST_SUB+= SHARE_MAN="" .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000100 BIND_DESTETC= ${PREFIX}/etc/namedb +PKGINSTALL= /nonexistent .else BIND_DESTETC= ${PREFIX}/etc .endif .endif +PKGDEINSTALL= ${PKGINSTALL} + CONFIGURE_ARGS+= --prefix=${PREFIX} \ --sysconfdir=${BIND_DESTETC} PLIST_SUB+= BIND_DESTETC="${BIND_DESTETC}" @@ -191,48 +157,6 @@ PLIST_SUB+= NOBASE="" 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 \ - lwres_buffer_forward.3 lwres_buffer_getmem.3 lwres_buffer_getuint16.3 \ - lwres_buffer_getuint32.3 lwres_buffer_getuint8.3 lwres_buffer_init.3 \ - lwres_buffer_invalidate.3 lwres_buffer_putmem.3 \ - lwres_buffer_putuint16.3 lwres_buffer_putuint32.3 \ - lwres_buffer_putuint8.3 lwres_buffer_subtract.3 lwres_conf_clear.3 \ - lwres_conf_get.3 lwres_conf_init.3 lwres_conf_parse.3 \ - lwres_conf_print.3 lwres_config.3 lwres_context.3 \ - lwres_context_allocmem.3 lwres_context_create.3 \ - lwres_context_destroy.3 lwres_context_freemem.3 \ - lwres_context_initserial.3 lwres_context_nextserial.3 \ - lwres_context_sendrecv.3 lwres_endhostent.3 lwres_endhostent_r.3 \ - lwres_freeaddrinfo.3 lwres_freehostent.3 lwres_gabn.3 \ - lwres_gabnrequest_free.3 lwres_gabnrequest_parse.3 \ - lwres_gabnrequest_render.3 lwres_gabnresponse_free.3 \ - lwres_gabnresponse_parse.3 lwres_gabnresponse_render.3 \ - lwres_gai_strerror.3 lwres_getaddrinfo.3 lwres_getaddrsbyname.3 \ - lwres_gethostbyaddr.3 lwres_gethostbyaddr_r.3 lwres_gethostbyname.3 \ - lwres_gethostbyname2.3 lwres_gethostbyname_r.3 lwres_gethostent.3 \ - lwres_gethostent_r.3 lwres_getipnode.3 lwres_getipnodebyaddr.3 \ - lwres_getipnodebyname.3 lwres_getnamebyaddr.3 lwres_getnameinfo.3 \ - lwres_getrrsetbyname.3 lwres_gnba.3 lwres_gnbarequest_free.3 \ - lwres_gnbarequest_parse.3 lwres_gnbarequest_render.3 \ - lwres_gnbaresponse_free.3 lwres_gnbaresponse_parse.3 \ - lwres_gnbaresponse_render.3 lwres_herror.3 lwres_hstrerror.3 \ - lwres_inetntop.3 lwres_lwpacket_parseheader.3 \ - lwres_lwpacket_renderheader.3 lwres_net_ntop.3 lwres_noop.3 \ - lwres_nooprequest_free.3 lwres_nooprequest_parse.3 \ - lwres_nooprequest_render.3 lwres_noopresponse_free.3 \ - lwres_noopresponse_parse.3 lwres_noopresponse_render.3 \ - lwres_packet.3 lwres_resutil.3 lwres_sethostent.3 \ - lwres_sethostent_r.3 lwres_string_parse.3 -MAN5= named.conf.5 rndc.conf.5 -MAN8= ddns-confgen.8 dnssec-dsfromkey.8 dnssec-keyfromlabel.8 \ - dnssec-keygen.8 dnssec-revoke.8 dnssec-settime.8 dnssec-signzone.8 \ - genrandom.8 isc-hmac-fixup.8 lwresd.8 named-checkconf.8 \ - named-checkzone.8 named-journalprint.8 named.8 nsec3hash.8 \ - rndc-confgen.8 rndc.8 -MLINKS= named-checkzone.8 named-compilezone.8 - post-patch: .for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.1 \ rndc/rndc.8 @@ -255,41 +179,32 @@ PORTDOCS= * .endif post-install: .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR}/arm ${DOCSDIR}/misc - ${INSTALL_DATA} ${WRKSRC}/doc/arm/*.html ${DOCSDIR}/arm - ${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM.pdf ${DOCSDIR}/ - ${INSTALL_DATA} ${WRKSRC}/doc/misc/[a-z]* ${DOCSDIR}/misc - ${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \ - ${WRKSRC}/HISTORY ${WRKSRC}/README ${DOCSDIR}/ + ${MKDIR} ${STAGEDIR}${DOCSDIR}/arm ${STAGEDIR}${DOCSDIR}/misc + ${INSTALL_DATA} ${WRKSRC}/doc/arm/*.html ${STAGEDIR}${DOCSDIR}/arm + ${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM.pdf ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/misc/[a-z]* ${STAGEDIR}${DOCSDIR}/misc + ${INSTALL_DATA} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \ + ${WRKSRC}/HISTORY ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .endif + .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000100 .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} + ${INSTALL_SCRIPT} ${WRKDIR}/named ${STAGEDIR}${PREFIX}/etc/rc.d + ${MKDIR} ${STAGEDIR}${BIND_DESTETC} +.for i in dynamic master slave working + @${MKDIR} ${STAGEDIR}${BIND_DESTETC}/$i .endfor - ${INSTALL_DATA} ${WRKDIR}/named.conf ${BIND_DESTETC}/named.conf.sample -.if !exists(${BIND_DESTETC}/named.conf) - ${INSTALL_DATA} ${WRKDIR}/named.conf ${BIND_DESTETC}/named.conf + ${INSTALL_DATA} ${WRKDIR}/named.conf ${STAGEDIR}${BIND_DESTETC}/named.conf.sample + ${INSTALL_DATA} ${FILESDIR}/named.root ${STAGEDIR}${BIND_DESTETC} + ${INSTALL_DATA} ${FILESDIR}/empty.db ${STAGEDIR}${BIND_DESTETC}/master + ${INSTALL_DATA} ${FILESDIR}/localhost-forward.db ${STAGEDIR}${BIND_DESTETC}/master + ${INSTALL_DATA} ${FILESDIR}/localhost-reverse.db ${STAGEDIR}${BIND_DESTETC}/master .endif - ${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} + ${STAGEDIR}${BIND_DESTETC}/rndc.conf.sample .include <bsd.port.mk> |