1999-06-28 21:25:34 +00:00
|
|
|
# New ports collection makefile for: bind
|
|
|
|
# Date created: 18 July 1997
|
|
|
|
# Whom: jseger@scds.com
|
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1999-06-28 21:25:34 +00:00
|
|
|
#
|
|
|
|
|
2001-10-10 05:18:09 +00:00
|
|
|
# I stay very aware of developments regarding BIND. I frequently delay updating
|
|
|
|
# this port from a known-stable version due to concerns about stability of a
|
|
|
|
# newer version. If you are interested in using the most recent ISC release
|
|
|
|
# you can generally build it cleanly from the source. - Doug
|
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= bind
|
2003-11-27 01:47:29 +00:00
|
|
|
PORTVERSION= 8.3.7
|
|
|
|
CATEGORIES?= dns net
|
2002-08-01 07:35:52 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_ISC}
|
|
|
|
MASTER_SITE_SUBDIR= bind/src/${PORTVERSION}
|
1999-08-08 18:03:46 +00:00
|
|
|
DISTFILES= bind-src.tar.gz bind-doc.tar.gz
|
2002-02-13 21:43:50 +00:00
|
|
|
DIST_SUBDIR= bind-${PORTVERSION}
|
1999-06-28 21:25:34 +00:00
|
|
|
|
2001-01-31 07:21:26 +00:00
|
|
|
MAINTAINER= DougB@FreeBSD.org
|
Upgrade to version 8.3.5, the latest from ISC. Several bugfixes are
included, as well as a few minor enhancements. Check CHANGES for details.
Improve greatly the PORT_REPLACES_BASE option, which now truly replaces
everything, including re-positioning nslookup and nsupdate in sbin, and
writing over the includes, instead of installing them in include/bind.
Unconditionally install dnskeygen in bin, since that's where the base
puts it, and it's only confusing to users if they can't find it after
an installation.
Install isc/ctl.h by hand in the appropriate include directory, since
we install it in the base, and the distribution Makefile does not.
2003-06-07 11:28:51 +00:00
|
|
|
COMMENT= The Berkeley Internet Name Domain, an implementation of DNS
|
1999-06-28 21:25:34 +00:00
|
|
|
|
2004-03-20 22:16:03 +00:00
|
|
|
.if defined(PORT_REPLACES_BASE_BIND8_INCLUDES)
|
|
|
|
PORT_REPLACES_BASE_BIND8= yes
|
|
|
|
INCLUDE_PATH= include
|
|
|
|
PLIST_SUB+= INCLUDE_PATH=${INCLUDE_PATH}
|
|
|
|
.else
|
|
|
|
INCLUDE_PATH= include/bind
|
|
|
|
PLIST_SUB+= INCLUDE_PATH=${INCLUDE_PATH}
|
|
|
|
.endif
|
|
|
|
|
2002-06-29 00:05:17 +00:00
|
|
|
.if defined(PORT_REPLACES_BASE_BIND8)
|
2002-07-12 09:25:47 +00:00
|
|
|
PKGNAMESUFFIX= -base
|
2002-06-22 21:45:27 +00:00
|
|
|
PREFIX= /usr
|
2002-07-12 09:25:47 +00:00
|
|
|
BIND_DESTETC= /etc/namedb
|
2004-03-21 07:40:45 +00:00
|
|
|
PLIST_SUB+= FAKE_SBIN=sbin
|
2002-07-12 09:25:47 +00:00
|
|
|
.else
|
|
|
|
BIND_DESTETC= ${PREFIX}/etc
|
2004-03-21 07:40:45 +00:00
|
|
|
PLIST_SUB+= FAKE_SBIN=bin
|
2002-06-22 21:45:27 +00:00
|
|
|
.endif
|
|
|
|
|
1999-11-12 06:40:39 +00:00
|
|
|
MAN1= dig.1 dnskeygen.1 dnsquery.1 host.1
|
|
|
|
MAN3= getaddrinfo.3 gethostbyname.3 getipnodebyname.3 getnetent.3 \
|
2001-01-29 22:28:44 +00:00
|
|
|
getnameinfo.3 inet_cidr.3 hesiod.3 resolver.3 tsig.3
|
1999-06-28 21:25:34 +00:00
|
|
|
MAN5= irs.conf.5 named.conf.5 resolver.5
|
|
|
|
MAN7= hostname.7 mailaddr.7
|
|
|
|
MAN8= named-bootconf.8 named-xfer.8 named.8 ndc.8 nslookup.8 \
|
|
|
|
nsupdate.8
|
|
|
|
|
2002-02-28 05:31:24 +00:00
|
|
|
PATCH_ARGS= -s -d ${WRKDIR}
|
|
|
|
PATCH_DIST_ARGS= -s -d ${WRKDIR}
|
1999-06-28 21:25:34 +00:00
|
|
|
|
2004-03-20 22:16:03 +00:00
|
|
|
WRKSRC= ${WRKDIR}/src
|
|
|
|
|
2002-06-22 21:45:27 +00:00
|
|
|
post-patch:
|
2002-07-12 09:25:47 +00:00
|
|
|
@${SED} -e "s#\'DESTETC=.*#'DESTETC=${BIND_DESTETC}'#" \
|
|
|
|
-e "s#-O2 -g#${CFLAGS}#" \
|
2002-06-22 21:45:27 +00:00
|
|
|
${WRKSRC}/port/freebsd/Makefile.set > \
|
|
|
|
${WRKSRC}/port/freebsd/Makefile.set.sed
|
|
|
|
@${MV} ${WRKSRC}/port/freebsd/Makefile.set.sed \
|
|
|
|
${WRKSRC}/port/freebsd/Makefile.set
|
Upgrade to version 8.3.5, the latest from ISC. Several bugfixes are
included, as well as a few minor enhancements. Check CHANGES for details.
Improve greatly the PORT_REPLACES_BASE option, which now truly replaces
everything, including re-positioning nslookup and nsupdate in sbin, and
writing over the includes, instead of installing them in include/bind.
Unconditionally install dnskeygen in bin, since that's where the base
puts it, and it's only confusing to users if they can't find it after
an installation.
Install isc/ctl.h by hand in the appropriate include directory, since
we install it in the base, and the distribution Makefile does not.
2003-06-07 11:28:51 +00:00
|
|
|
|
|
|
|
@${SED} -e "s#{DESTEXEC}#{DESTBIN}#g" \
|
|
|
|
${WRKSRC}/bin/dnskeygen/Makefile > \
|
|
|
|
${WRKSRC}/bin/dnskeygen/Makefile.sed
|
|
|
|
@${MV} ${WRKSRC}/bin/dnskeygen/Makefile.sed \
|
|
|
|
${WRKSRC}/bin/dnskeygen/Makefile
|
|
|
|
|
2004-03-20 22:16:03 +00:00
|
|
|
@${SED} -e "s#\'DESTINC=.*#'DESTINC=${PREFIX}/${INCLUDE_PATH}'#" \
|
Upgrade to version 8.3.5, the latest from ISC. Several bugfixes are
included, as well as a few minor enhancements. Check CHANGES for details.
Improve greatly the PORT_REPLACES_BASE option, which now truly replaces
everything, including re-positioning nslookup and nsupdate in sbin, and
writing over the includes, instead of installing them in include/bind.
Unconditionally install dnskeygen in bin, since that's where the base
puts it, and it's only confusing to users if they can't find it after
an installation.
Install isc/ctl.h by hand in the appropriate include directory, since
we install it in the base, and the distribution Makefile does not.
2003-06-07 11:28:51 +00:00
|
|
|
${WRKSRC}/port/freebsd/Makefile.set > \
|
|
|
|
${WRKSRC}/port/freebsd/Makefile.set.sed
|
|
|
|
@${MV} ${WRKSRC}/port/freebsd/Makefile.set.sed \
|
|
|
|
${WRKSRC}/port/freebsd/Makefile.set
|
2004-03-20 22:16:03 +00:00
|
|
|
|
|
|
|
.if defined(PORT_REPLACES_BASE_BIND8)
|
Upgrade to version 8.3.5, the latest from ISC. Several bugfixes are
included, as well as a few minor enhancements. Check CHANGES for details.
Improve greatly the PORT_REPLACES_BASE option, which now truly replaces
everything, including re-positioning nslookup and nsupdate in sbin, and
writing over the includes, instead of installing them in include/bind.
Unconditionally install dnskeygen in bin, since that's where the base
puts it, and it's only confusing to users if they can't find it after
an installation.
Install isc/ctl.h by hand in the appropriate include directory, since
we install it in the base, and the distribution Makefile does not.
2003-06-07 11:28:51 +00:00
|
|
|
.for dir in nslookup nsupdate
|
|
|
|
@${SED} -e "s#{DESTBIN}#{DESTSBIN}#g" \
|
|
|
|
${WRKSRC}/bin/${dir}/Makefile > ${WRKSRC}/bin/${dir}/Makefile.sed
|
|
|
|
@${MV} ${WRKSRC}/bin/${dir}/Makefile.sed ${WRKSRC}/bin/${dir}/Makefile
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2004-03-20 22:16:03 +00:00
|
|
|
.for f in named.conf.5 named.8
|
2002-07-12 09:25:47 +00:00
|
|
|
@${SED} -e "s#/etc/named.conf#${BIND_DESTETC}/named.conf#g" \
|
2004-03-20 22:16:03 +00:00
|
|
|
${WRKDIR}/doc/man/${f} > ${WRKDIR}/doc/man/${f}.sed
|
|
|
|
@${MV} ${WRKDIR}/doc/man/${f}.sed ${WRKDIR}/doc/man/${f}
|
2002-07-12 09:25:47 +00:00
|
|
|
.endfor
|
2002-06-22 21:45:27 +00:00
|
|
|
|
1999-06-28 21:25:34 +00:00
|
|
|
post-install:
|
2002-07-12 09:25:47 +00:00
|
|
|
cd ${WRKDIR}/doc/man && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
|
|
|
${MAKEFILE} clean all ${INSTALL_TARGET}
|
Upgrade to version 8.3.5, the latest from ISC. Several bugfixes are
included, as well as a few minor enhancements. Check CHANGES for details.
Improve greatly the PORT_REPLACES_BASE option, which now truly replaces
everything, including re-positioning nslookup and nsupdate in sbin, and
writing over the includes, instead of installing them in include/bind.
Unconditionally install dnskeygen in bin, since that's where the base
puts it, and it's only confusing to users if they can't find it after
an installation.
Install isc/ctl.h by hand in the appropriate include directory, since
we install it in the base, and the distribution Makefile does not.
2003-06-07 11:28:51 +00:00
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/isc/ctl.h \
|
|
|
|
${PREFIX}/${INCLUDE_PATH}/isc
|
|
|
|
|
2002-01-21 11:05:59 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-11-16 20:18:42 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}/html ${DOCSDIR}/misc
|
2002-11-14 07:32:46 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/doc/html/*.html ${DOCSDIR}/html
|
|
|
|
${CP} -Rp ${WRKDIR}/src/conf ${DOCSDIR}
|
2004-03-20 22:16:03 +00:00
|
|
|
.for f in CHANGES DNSSEC LICENSE LICENSE_RSA README SUPPORT TODO
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/src/${f} ${DOCSDIR}
|
2002-01-21 11:05:59 +00:00
|
|
|
.endfor
|
2004-03-20 22:16:03 +00:00
|
|
|
.for f in DynamicUpdate FAQ.* *.txt
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/doc/misc/${f} ${DOCSDIR}/misc
|
2002-11-16 20:18:42 +00:00
|
|
|
.endfor
|
2002-01-21 11:05:59 +00:00
|
|
|
.endif
|
1999-06-28 21:25:34 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|