1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/dns/bind84/Makefile
Doug Barton 853f59fc81 1. Add the patch for 8.4.7-P1, and bump PORTVERSION in a way that works
for us.

2. Tighten the list of master sites way down since almost all mirrors
have dropped BIND 8.
2007-09-02 22:08:12 +00:00

145 lines
4.5 KiB
Makefile

# New ports collection makefile for: bind84
# Date created: 7 June 2003
# Whom: DougB@FreeBSD.org
#
# $FreeBSD$
#
# 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
PORTNAME= bind84
PORTVERSION= 8.4.7.1
CATEGORIES?= dns net ipv6
MASTER_SITES= ftp://ftp.isc.org/isc/%SUBDIR%/ \
http://dougbarton.us/Downloads/%SUBDIR%/ \
ftp://ftp.isc.org/isc/bind8/src/8.4.7-P1/:patch \
http://dougbarton.us/Downloads/bind8/src/8.4.7-P1/:patch
MASTER_SITE_SUBDIR= bind8/src/8.4.7
DISTFILES= bind-src.tar.gz bind-doc.tar.gz \
bind-src.tar.gz.asc bind-doc.tar.gz.asc \
8.4.7-p1.patch:patch 8.4.7-p1.patch.asc:patch
DIST_SUBDIR= bind-8.4.7
EXTRACT_ONLY= bind-src.tar.gz bind-doc.tar.gz
MAINTAINER= DougB@FreeBSD.org
COMMENT= The Berkeley Internet Name Domain, an implementation of DNS
CONFLICTS= bind-8.* bind9* host-* zh-bind-8.*
DEPRECATED= EOL - http://www.isc.org/sw/bind/bind8-eol.php
EXPIRATION_DATE= 2007-11-30
OPTIONS= REPLACE_BASE "Replace base BIND with this version" off \
REPLACE_BASE_INCLUDES "Replace includes as well as binaries" off
.include <bsd.port.pre.mk>
.if defined(WITH_REPLACE_BASE_INCLUDES)
WITH_REPLACE_BASE= yes
INCLUDE_PATH= include
PLIST_SUB+= INCLUDE_PATH=${INCLUDE_PATH}
.else
INCLUDE_PATH= include/bind
PLIST_SUB+= INCLUDE_PATH=${INCLUDE_PATH}
.endif
.if defined(WITH_REPLACE_BASE)
PKGNAMESUFFIX= -base
PREFIX= /usr
BIND_DESTETC= /etc/namedb
PLIST_SUB+= FAKE_SBIN=sbin
.else
BIND_DESTETC= ${PREFIX}/etc
PLIST_SUB+= FAKE_SBIN=bin
.endif
MAN1= dig.1 dnskeygen.1 dnsquery.1 host.1
MAN3= getaddrinfo.3 gethostbyname.3 getipnodebyname.3 getnetent.3 \
getnameinfo.3 inet_cidr.3 hesiod.3 resolver.3 tsig.3
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
PATCH_ARGS= -s -d ${WRKDIR}
PATCH_DIST_ARGS= -s -d ${WRKDIR}
WRKSRC= ${WRKDIR}/src
verify: checksum
gpg --verify ${DISTDIR}/${DIST_SUBDIR}/bind-src.tar.gz.asc
gpg --verify ${DISTDIR}/${DIST_SUBDIR}/bind-doc.tar.gz.asc
gpg --verify ${DISTDIR}/${DIST_SUBDIR}/8.4.7-p1.patch.asc
pre-patch:
@${SED} -e 's#^\*\*\* bind8/#*** #' -e 's#^\-\-\- bind8/#--- #' \
-e 's#\-c bind8/#-c #' -e 's#^Index:.*##' \
${DISTDIR}/${DIST_SUBDIR}/8.4.7-p1.patch > \
${WRKDIR}/8.4.7-p1
EXTRA_PATCHES= ${WRKDIR}/8.4.7-p1
post-patch:
@${SED} -e "s#\'DESTETC=.*#'DESTETC=${BIND_DESTETC}'#" \
-e "s#-O2 -g#${CFLAGS}#" \
${WRKSRC}/port/freebsd/Makefile.set > \
${WRKSRC}/port/freebsd/Makefile.set.sed
@${MV} ${WRKSRC}/port/freebsd/Makefile.set.sed \
${WRKSRC}/port/freebsd/Makefile.set
@${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
@${SED} -e "s#\'DESTINC=.*#'DESTINC=${PREFIX}/${INCLUDE_PATH}'#" \
${WRKSRC}/port/freebsd/Makefile.set > \
${WRKSRC}/port/freebsd/Makefile.set.sed
@${MV} ${WRKSRC}/port/freebsd/Makefile.set.sed \
${WRKSRC}/port/freebsd/Makefile.set
@${SED} -e "s/^#ifdef __sparcv9/#if defined(sun) \&\& defined(_SOCKLEN_T) \&\& defined(__sparcv9)/" \
${WRKSRC}/lib/irs/getaddrinfo.c > \
${WRKSRC}/lib/irs/getaddrinfo.c.sed
@${MV} ${WRKSRC}/lib/irs/getaddrinfo.c.sed \
${WRKSRC}/lib/irs/getaddrinfo.c
.if defined(WITH_REPLACE_BASE)
.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
.for f in named.conf.5 named.8
@${SED} -e "s#/etc/named.conf#${BIND_DESTETC}/named.conf#g" \
${WRKDIR}/doc/man/${f} > ${WRKDIR}/doc/man/${f}.sed
@${MV} ${WRKDIR}/doc/man/${f}.sed ${WRKDIR}/doc/man/${f}
.endfor
post-install:
cd ${WRKDIR}/doc/man && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
${MAKEFILE} clean all ${INSTALL_TARGET}
${INSTALL_DATA} ${WRKSRC}/include/isc/ctl.h \
${PREFIX}/${INCLUDE_PATH}/isc
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/html ${DOCSDIR}/misc
${INSTALL_DATA} ${WRKDIR}/doc/html/*.html ${DOCSDIR}/html
${CP} -Rp ${WRKDIR}/src/conf ${DOCSDIR}
.for f in CHANGES DNSSEC LICENSE LICENSE_RSA README SUPPORT TODO
${INSTALL_DATA} ${WRKDIR}/src/${f} ${DOCSDIR}
.endfor
.for f in DynamicUpdate FAQ.* *.txt
${INSTALL_DATA} ${WRKDIR}/doc/misc/${f} ${DOCSDIR}/misc
.endfor
.endif
.include <bsd.port.post.mk>