1999-06-28 17:25:34 -04:00
|
|
|
# New ports collection makefile for: bind
|
|
|
|
# Date created: 18 July 1997
|
|
|
|
# Whom: jseger@scds.com
|
|
|
|
#
|
1999-08-30 10:24:37 -04:00
|
|
|
# $FreeBSD$
|
1999-06-28 17:25:34 -04:00
|
|
|
#
|
|
|
|
|
2001-10-10 01:18:09 -04: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 14:14:07 -04:00
|
|
|
PORTNAME= bind
|
2002-06-28 20:05:17 -04:00
|
|
|
PORTVERSION= 8.3.3
|
2001-12-11 05:28:43 -05:00
|
|
|
CATEGORIES?= net
|
2002-08-01 03:35:52 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_ISC}
|
|
|
|
MASTER_SITE_SUBDIR= bind/src/${PORTVERSION}
|
2001-10-10 01:18:09 -04:00
|
|
|
|
1999-08-08 14:03:46 -04:00
|
|
|
DISTFILES= bind-src.tar.gz bind-doc.tar.gz
|
2002-02-13 16:43:50 -05:00
|
|
|
DIST_SUBDIR= bind-${PORTVERSION}
|
1999-06-28 17:25:34 -04:00
|
|
|
|
2001-01-31 02:21:26 -05:00
|
|
|
MAINTAINER= DougB@FreeBSD.org
|
1999-06-28 17:25:34 -04:00
|
|
|
|
2002-06-28 20:05:17 -04:00
|
|
|
.if defined(PORT_REPLACES_BASE_BIND8)
|
2002-07-12 05:25:47 -04:00
|
|
|
PKGNAMESUFFIX= -base
|
2002-06-22 17:45:27 -04:00
|
|
|
PREFIX= /usr
|
2002-07-12 05:25:47 -04:00
|
|
|
BIND_DESTETC= /etc/namedb
|
|
|
|
.else
|
|
|
|
BIND_DESTETC= ${PREFIX}/etc
|
2002-06-22 17:45:27 -04:00
|
|
|
.endif
|
|
|
|
|
1999-06-28 17:25:34 -04:00
|
|
|
WRKSRC= ${WRKDIR}/src
|
2002-06-22 17:45:27 -04:00
|
|
|
MAKE_ENV+= MANPREFIX=${MANPREFIX}
|
1999-06-28 17:25:34 -04:00
|
|
|
|
1999-11-12 01:40:39 -05:00
|
|
|
MAN1= dig.1 dnskeygen.1 dnsquery.1 host.1
|
|
|
|
MAN3= getaddrinfo.3 gethostbyname.3 getipnodebyname.3 getnetent.3 \
|
2001-01-29 17:28:44 -05:00
|
|
|
getnameinfo.3 inet_cidr.3 hesiod.3 resolver.3 tsig.3
|
1999-06-28 17:25:34 -04: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 00:31:24 -05:00
|
|
|
PATCH_ARGS= -s -d ${WRKDIR}
|
|
|
|
PATCH_DIST_ARGS= -s -d ${WRKDIR}
|
1999-06-28 17:25:34 -04:00
|
|
|
|
2002-06-22 17:45:27 -04:00
|
|
|
post-patch:
|
2002-07-12 05:25:47 -04:00
|
|
|
@${SED} -e "s#\'DESTETC=.*#'DESTETC=${BIND_DESTETC}'#" \
|
|
|
|
-e "s#-O2 -g#${CFLAGS}#" \
|
2002-06-22 17:45:27 -04:00
|
|
|
${WRKSRC}/port/freebsd/Makefile.set > \
|
|
|
|
${WRKSRC}/port/freebsd/Makefile.set.sed
|
|
|
|
@${MV} ${WRKSRC}/port/freebsd/Makefile.set.sed \
|
|
|
|
${WRKSRC}/port/freebsd/Makefile.set
|
2002-07-12 05:25:47 -04:00
|
|
|
.for file in named.conf.5 named.8
|
|
|
|
@${SED} -e "s#/etc/named.conf#${BIND_DESTETC}/named.conf#g" \
|
|
|
|
${WRKDIR}/doc/man/${file} > ${WRKDIR}/doc/man/${file}.sed
|
|
|
|
@${MV} ${WRKDIR}/doc/man/${file}.sed ${WRKDIR}/doc/man/${file}
|
|
|
|
.endfor
|
2002-06-22 17:45:27 -04:00
|
|
|
|
1999-06-28 17:25:34 -04:00
|
|
|
post-install:
|
2002-07-12 05:25:47 -04:00
|
|
|
cd ${WRKDIR}/doc/man && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
|
|
|
${MAKEFILE} clean all ${INSTALL_TARGET}
|
2002-01-21 06:05:59 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/bind8/html
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/doc/html/*.html ${PREFIX}/share/doc/bind8/html
|
|
|
|
${CP} -Rp ${WRKDIR}/src/conf ${PREFIX}/share/doc/bind8/
|
|
|
|
.for file in CHANGES DNSSEC LICENSE LICENSE_RSA README SUPPORT TODO
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/src/${file} ${PREFIX}/share/doc/bind8
|
|
|
|
.endfor
|
|
|
|
.endif
|
1999-06-28 17:25:34 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|