2000-10-29 04:45:17 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2009-01-04 07:15:46 +00:00
|
|
|
PORTNAME= bind96
|
2013-06-05 11:46:54 +00:00
|
|
|
PORTVERSION= 9.6.3.2.ESV.R9
|
2003-09-25 05:08:39 +00:00
|
|
|
CATEGORIES= dns net ipv6
|
2012-07-24 19:23:23 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_ISC}
|
2002-08-01 09:23:06 +00:00
|
|
|
MASTER_SITE_SUBDIR= bind9/${ISCVERSION}
|
2004-03-14 23:06:52 +00:00
|
|
|
DISTNAME= bind-${ISCVERSION}
|
2000-10-29 04:45:17 +00:00
|
|
|
|
2012-10-10 09:11:41 +00:00
|
|
|
MAINTAINER= erwin@FreeBSD.org
|
2012-09-19 03:46:35 +00:00
|
|
|
COMMENT= BIND DNS suite with updated DNSSEC and threads
|
2000-10-29 04:45:17 +00:00
|
|
|
|
2013-01-04 10:47:28 +00:00
|
|
|
LICENSE= ISCL
|
|
|
|
|
2007-01-28 22:45:54 +00:00
|
|
|
# ISC releases things like 9.4.0b3, which our versioning doesn't like
|
2013-06-05 11:46:54 +00:00
|
|
|
ISCVERSION= 9.6-ESV-R9-P1
|
2002-03-17 19:09:09 +00:00
|
|
|
|
2009-04-12 21:33:23 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2009-03-24 19:51:28 +00:00
|
|
|
|
2000-10-29 04:45:17 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-11-27 01:03:06 +00:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var --disable-linux-caps \
|
2004-09-24 04:03:31 +00:00
|
|
|
--with-randomdev=/dev/random
|
2000-10-29 04:45:17 +00:00
|
|
|
|
2012-11-27 10:05:32 +00:00
|
|
|
CONFLICTS= bind9*-9.[45789].* bind9*-sdb-9.[45789].* bind-tools-9.*
|
2013-05-31 09:31:58 +00:00
|
|
|
DEPRECATED= EOL in January 2014, consider moving to Bind 9.8 or 9.9
|
|
|
|
EXPIRATION_DATE= 2014-01-31
|
2006-08-28 06:03:13 +00:00
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
OPTIONS_DEFAULT= IPV6 SSL LINKS XML THREADS
|
|
|
|
OPTIONS_DEFINE= SSL LINKS XML IDN REPLACE_BASE LARGE_FILE \
|
2012-12-14 10:43:35 +00:00
|
|
|
SIGCHASE IPV6 THREADS FIXED_RRSET
|
|
|
|
OPTIONS_GROUP= DLZ
|
|
|
|
OPTIONS_GROUP_DLZ= DLZ_POSTGRESQL DLZ_MYSQL DLZ_BDB \
|
2012-10-25 10:53:57 +00:00
|
|
|
DLZ_LDAP DLZ_FILESYSTEM DLZ_STUB
|
|
|
|
|
2012-12-03 10:52:11 +00:00
|
|
|
SSL_DESC= Build with OpenSSL (Required for DNSSEC)
|
2012-10-25 10:53:57 +00:00
|
|
|
LINKS_DESC= Create conf file symlinks in ${PREFIX}
|
|
|
|
XML_DESC= Support for xml statistics output
|
|
|
|
REPLACE_BASE_DESC= Replace base BIND with this version
|
|
|
|
LARGE_FILE_DESC= 64-bit file support
|
|
|
|
SIGCHASE_DESC= dig/host/nslookup will do DNSSEC validation
|
2012-11-27 10:05:32 +00:00
|
|
|
FIXED_RRSET= Enable fixed rrset ordering
|
2012-10-25 10:53:57 +00:00
|
|
|
DLZ_DESC= Dynamically Loadable Zones
|
|
|
|
DLZ_POSTGRESQL_DESC= DLZ Postgres driver
|
2012-10-26 08:37:10 +00:00
|
|
|
DLZ_MYSQL_DESC= DLZ MySQL driver (no threading)
|
2012-10-25 10:53:57 +00:00
|
|
|
DLZ_BDB_DESC= DLZ BDB driver
|
|
|
|
DLZ_LDAP_DESC= DLZ LDAP driver
|
|
|
|
DLZ_FILESYSTEM_DESC= DLZ filesystem driver
|
|
|
|
DLZ_STUB_DESC= DLZ stub driver
|
2006-08-28 06:03:13 +00:00
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2006-08-28 06:03:13 +00:00
|
|
|
|
2008-12-29 21:29:33 +00:00
|
|
|
.if (${ARCH} == "amd64")
|
|
|
|
ARCH= x86_64
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
2009-01-08 08:18:45 +00:00
|
|
|
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
|
2012-11-27 10:05:32 +00:00
|
|
|
USE_OPENSSL= yes
|
2005-11-27 01:03:06 +00:00
|
|
|
.else
|
2009-01-08 08:18:45 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-openssl-version-check
|
|
|
|
CONFIGURE_ARGS+= --without-openssl
|
2005-11-27 01:03:06 +00:00
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MXML}
|
Update for 9.5.0
Some of the important features of BIND 9 are:
DNS Security: DNSSEC (signed zones), TSIG (signed DNS requests)
IP version 6: Answers DNS queries on IPv6 sockets, IPv6 resource records (AAAA)
Experimental IPv6 Resolver Library
DNS Protocol Enhancements: IXFR, DDNS, Notify, EDNS0
Improved standards conformance
Views: One server process can provide multiple "views" of the DNS namespace,
e.g. an "inside" view to certain clients, and an "outside" view to others.
Multiprocessor Support, including working threads in this version
BIND 9.5 has a number of new features over previous versions, including:
GSS-TSIG support (RFC 3645), DHCID support
Experimental http server and statistics support for named via xml
More detailed statistics counters, compatible with the ones supported in BIND 8
Faster ACL processing
Efficient LRU cache cleaning mechanism.
NSID support (RFC 5001).
2008-07-03 07:26:14 +00:00
|
|
|
CONFIGURE_ARGS+= --with-libxml2=${LOCALBASE}
|
|
|
|
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-libxml2
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MIDN}
|
Update for 9.5.0
Some of the important features of BIND 9 are:
DNS Security: DNSSEC (signed zones), TSIG (signed DNS requests)
IP version 6: Answers DNS queries on IPv6 sockets, IPv6 resource records (AAAA)
Experimental IPv6 Resolver Library
DNS Protocol Enhancements: IXFR, DDNS, Notify, EDNS0
Improved standards conformance
Views: One server process can provide multiple "views" of the DNS namespace,
e.g. an "inside" view to certain clients, and an "outside" view to others.
Multiprocessor Support, including working threads in this version
BIND 9.5 has a number of new features over previous versions, including:
GSS-TSIG support (RFC 3645), DHCID support
Experimental http server and statistics support for named via xml
More detailed statistics counters, compatible with the ones supported in BIND 8
Faster ACL processing
Efficient LRU cache cleaning mechanism.
NSID support (RFC 5001).
2008-07-03 07:26:14 +00:00
|
|
|
CONFIGURE_ARGS+= --with-idn=${LOCALBASE} --with-libiconv=${LOCALBASE}
|
2009-07-30 18:47:46 +00:00
|
|
|
LIB_DEPENDS+= idnkit.1:${PORTSDIR}/dns/idnkit
|
Update for 9.5.0
Some of the important features of BIND 9 are:
DNS Security: DNSSEC (signed zones), TSIG (signed DNS requests)
IP version 6: Answers DNS queries on IPv6 sockets, IPv6 resource records (AAAA)
Experimental IPv6 Resolver Library
DNS Protocol Enhancements: IXFR, DDNS, Notify, EDNS0
Improved standards conformance
Views: One server process can provide multiple "views" of the DNS namespace,
e.g. an "inside" view to certain clients, and an "outside" view to others.
Multiprocessor Support, including working threads in this version
BIND 9.5 has a number of new features over previous versions, including:
GSS-TSIG support (RFC 3645), DHCID support
Experimental http server and statistics support for named via xml
More detailed statistics counters, compatible with the ones supported in BIND 8
Faster ACL processing
Efficient LRU cache cleaning mechanism.
NSID support (RFC 5001).
2008-07-03 07:26:14 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-idn
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE)
|
2009-08-29 23:15:57 +00:00
|
|
|
PLIST_SUB+= LINKS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= LINKS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MLARGE_FILE}
|
2007-01-28 22:45:54 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-largefile
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MSIGCHASE}
|
2008-07-16 20:39:24 +00:00
|
|
|
CONFIGURE_ARGS+= STD_CDEFINES="-DDIG_SIGCHASE=1"
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MIPV6}
|
2007-01-28 22:45:54 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2012-11-27 10:05:32 +00:00
|
|
|
.if ${PORT_OPTIONS:MFIXED_RRSET}
|
|
|
|
CONFIGURE_ARGS+= --enable-fixed-rrset
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MDLZ_POSTGRESQL}
|
2009-08-29 23:15:57 +00:00
|
|
|
CONFIGURE_ARGS+= --with-dlz-postgres=yes
|
|
|
|
USE_PGSQL= yes
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MDLZ_MYSQL}
|
2009-08-29 23:15:57 +00:00
|
|
|
CONFIGURE_ARGS+= --with-dlz-mysql=yes
|
|
|
|
USE_MYSQL= yes
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MDLZ_BDB}
|
2009-08-29 23:15:57 +00:00
|
|
|
CONFIGURE_ARGS+= --with-dlz-bdb=yes
|
|
|
|
USE_BDB= yes
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MDLZ_LDAP}
|
2009-08-29 23:15:57 +00:00
|
|
|
CONFIGURE_ARGS+= --with-dlz-ldap=yes
|
|
|
|
USE_OPENLDAP= yes
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MDLZ_FILESYSTEM}
|
2009-08-29 23:15:57 +00:00
|
|
|
CONFIGURE_ARGS+= --with-dlz-filesystem=yes
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MDLZ_STUB}
|
2009-08-29 23:15:57 +00:00
|
|
|
CONFIGURE_ARGS+= --with-dlz-stub=yes
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MTHREADS} && empty(PORT_OPTIONS:MDLZ_MYSQL)
|
2004-09-24 04:03:31 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
|
|
|
.endif
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MREPLACE_BASE}
|
2003-01-26 08:42:01 +00:00
|
|
|
PKGNAMESUFFIX= -base
|
|
|
|
PREFIX= /usr
|
|
|
|
BIND_DESTETC= /etc/namedb
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} \
|
2007-07-23 09:36:51 +00:00
|
|
|
--sysconfdir=${BIND_DESTETC}
|
2002-03-17 06:47:25 +00:00
|
|
|
.else
|
2003-01-26 08:42:01 +00:00
|
|
|
BIND_DESTETC= ${PREFIX}/etc
|
2002-03-17 06:47:25 +00:00
|
|
|
.endif
|
|
|
|
|
2009-08-29 23:15:57 +00:00
|
|
|
PLIST_SUB+= BIND_DESTETC="${BIND_DESTETC}"
|
2003-01-26 08:42:01 +00:00
|
|
|
|
2009-06-19 04:40:13 +00:00
|
|
|
MAN1= dig.1 host.1 isc-config.sh.1 nslookup.1 nsupdate.1
|
2002-03-17 06:47:25 +00:00
|
|
|
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
|
2004-09-24 04:03:31 +00:00
|
|
|
MAN5= named.conf.5 rndc.conf.5
|
2009-01-04 07:15:46 +00:00
|
|
|
MAN8= dnssec-dsfromkey.8 dnssec-keyfromlabel.8 dnssec-keygen.8 \
|
|
|
|
dnssec-signzone.8 lwresd.8 named-checkconf.8 named-checkzone.8 \
|
|
|
|
named.8 rndc-confgen.8 rndc.8
|
2007-01-28 22:45:54 +00:00
|
|
|
MLINKS= named-checkzone.8 named-compilezone.8
|
2000-10-29 04:45:17 +00:00
|
|
|
|
2001-02-07 12:36:27 +00:00
|
|
|
post-patch:
|
2008-12-29 21:29:33 +00:00
|
|
|
.for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.1 \
|
2002-03-17 06:47:25 +00:00
|
|
|
rndc/rndc.8
|
2004-09-24 04:03:31 +00:00
|
|
|
@${MV} ${WRKSRC}/bin/${FILE} ${WRKSRC}/bin/${FILE}.Dist
|
|
|
|
@${SED} -e 's#/etc/named.conf#${BIND_DESTETC}/named.conf#g' \
|
2003-01-26 08:42:01 +00:00
|
|
|
-e 's#/etc/rndc.conf#${BIND_DESTETC}/rndc.conf#g' \
|
2011-07-17 04:08:59 +00:00
|
|
|
-e "s#/var\/run\/named\/named.pid#/var/run/named/pid#" \
|
2003-01-26 08:42:01 +00:00
|
|
|
${WRKSRC}/bin/${FILE}.Dist > ${WRKSRC}/bin/${FILE}
|
2001-02-07 12:36:27 +00:00
|
|
|
.endfor
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2012-04-04 22:02:15 +00:00
|
|
|
PORTDOCS= *
|
2012-09-19 03:46:35 +00:00
|
|
|
.endif
|
2000-10-29 04:45:17 +00:00
|
|
|
post-install:
|
2001-02-07 12:36:27 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/bin/rndc/rndc.conf \
|
2003-01-26 08:42:01 +00:00
|
|
|
${BIND_DESTETC}/rndc.conf.sample
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2003-01-26 08:42:01 +00:00
|
|
|
${MKDIR} ${DOCSDIR}/arm ${DOCSDIR}/misc
|
2007-01-28 22:45:54 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/arm/*.html ${DOCSDIR}/arm
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM.pdf ${DOCSDIR}/
|
2003-01-26 08:42:01 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/misc/[a-z]* ${DOCSDIR}/misc
|
2001-02-07 12:36:27 +00:00
|
|
|
${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \
|
2012-04-04 22:02:15 +00:00
|
|
|
${WRKSRC}/NSEC3-NOTES ${WRKSRC}/README* ${DOCSDIR}/
|
2009-08-29 23:15:57 +00:00
|
|
|
.endif
|
2012-10-25 10:53:57 +00:00
|
|
|
.if ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE)
|
2010-12-03 23:21:31 +00:00
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2001-02-07 12:36:27 +00:00
|
|
|
.endif
|
2000-10-29 04:45:17 +00:00
|
|
|
|
2003-06-07 22:56:34 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2012-10-25 10:53:57 +00:00
|
|
|
.include <bsd.port.mk>
|