2000-10-29 04:45:17 +00:00
|
|
|
# New ports collection makefile for: bind
|
|
|
|
# Date created: 6 October 2000
|
|
|
|
# Whom: will
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-07-24 18:10:31 +00:00
|
|
|
# I stay very aware of developments with BIND in general, and with
|
|
|
|
# BIND 9 in particular. I frequently delay updating this port from
|
|
|
|
# a known-stable version due to concerns about stability of a newer
|
|
|
|
# version. If you are concerned about using the most recent ISC
|
|
|
|
# release you can generally build it cleanly from the source - Doug
|
|
|
|
|
2002-03-17 06:47:25 +00:00
|
|
|
PORTNAME= bind9
|
2005-03-13 10:52:52 +00:00
|
|
|
PORTVERSION= 9.3.1
|
2003-09-25 05:08:39 +00:00
|
|
|
CATEGORIES= dns net ipv6
|
2004-04-04 06:19:46 +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}
|
2005-03-13 10:52:52 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.asc
|
2004-09-24 04:03:31 +00:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2000-10-29 04:45:17 +00:00
|
|
|
|
2001-01-31 07:21:26 +00:00
|
|
|
MAINTAINER= DougB@FreeBSD.org
|
2004-09-24 04:03:31 +00:00
|
|
|
COMMENT= Completely new version of the BIND DNS suite with updated DNSSEC
|
2000-10-29 04:45:17 +00:00
|
|
|
|
2004-09-24 04:03:31 +00:00
|
|
|
# ISC releases things like 9.3.0rc1, which our versioning doesn't like
|
2005-03-13 10:52:52 +00:00
|
|
|
ISCVERSION= 9.3.1
|
2002-03-17 19:09:09 +00:00
|
|
|
|
2000-10-29 04:45:17 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2004-09-24 04:03:31 +00:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var --disable-linux-caps --with-openssl \
|
|
|
|
--with-randomdev=/dev/random
|
2000-10-29 04:45:17 +00:00
|
|
|
|
2002-03-17 06:47:25 +00:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
2005-06-29 08:10:25 +00:00
|
|
|
# ISC staff has informed me that for 9.3.x, threads are always a bad idea.
|
|
|
|
# Leave the affirmative option for those that want to experiment.
|
|
|
|
.if defined(WITH_BIND9_THREADS)
|
2004-09-24 04:03:31 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
|
|
|
.endif
|
|
|
|
|
2005-03-13 10:52:52 +00:00
|
|
|
.if defined(WITH_PORT_REPLACES_BASE_BIND9)
|
2003-01-26 08:42:01 +00:00
|
|
|
PKGNAMESUFFIX= -base
|
|
|
|
PREFIX= /usr
|
|
|
|
BIND_DESTETC= /etc/namedb
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} \
|
|
|
|
--sysconfdir=${BIND_DESTETC} \
|
|
|
|
--mandir=${MANPREFIX}/man
|
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
|
|
|
|
|
2003-01-26 08:42:01 +00:00
|
|
|
PLIST_SUB= BIND_DESTETC="${BIND_DESTETC}"
|
|
|
|
|
2004-09-24 04:03:31 +00:00
|
|
|
MAN1= dig.1 host.1 nslookup.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
|
|
|
|
MAN8= dnssec-keygen.8 dnssec-signzone.8 lwresd.8 named-checkconf.8 \
|
|
|
|
named-checkzone.8 named.8 nsupdate.8 rndc-confgen.8 rndc.8
|
2000-10-29 04:45:17 +00:00
|
|
|
|
2005-03-13 10:52:52 +00:00
|
|
|
pre-fetch:
|
|
|
|
.if defined(PORT_REPLACES_BASE_BIND9)
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "***************************************************"
|
|
|
|
@${ECHO} "Support for the old PORT_REPLACES_BASE_BIND9 option"
|
|
|
|
@${ECHO} "will be removed in future versions of the port."
|
2005-03-17 07:07:51 +00:00
|
|
|
@${ECHO} "Use WITH_PORT_REPLACES_BASE_BIND9 instead."
|
2005-03-13 10:52:52 +00:00
|
|
|
@${ECHO} "***************************************************"
|
|
|
|
@${ECHO} ""
|
|
|
|
@/bin/sleep 5
|
|
|
|
WITH_PORT_REPLACES_BASE_BIND9= true
|
|
|
|
.endif
|
2005-01-28 20:47:44 +00:00
|
|
|
|
2001-02-07 12:36:27 +00:00
|
|
|
post-patch:
|
2002-03-17 06:47:25 +00:00
|
|
|
.for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.8 \
|
|
|
|
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' \
|
|
|
|
${WRKSRC}/bin/${FILE}.Dist > ${WRKSRC}/bin/${FILE}
|
2001-02-07 12:36:27 +00:00
|
|
|
.endfor
|
|
|
|
|
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
|
2001-02-07 12:36:27 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-01-26 08:42:01 +00:00
|
|
|
${MKDIR} ${DOCSDIR}/arm ${DOCSDIR}/misc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM*html ${DOCSDIR}/arm
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/misc/[a-z]* ${DOCSDIR}/misc
|
2001-02-07 12:36:27 +00:00
|
|
|
${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \
|
2003-01-26 08:42:01 +00:00
|
|
|
${WRKSRC}/README ${DOCSDIR}/
|
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}
|
|
|
|
|
2005-03-13 10:52:52 +00:00
|
|
|
.include <bsd.port.mk>
|