aboutsummaryrefslogtreecommitdiff
path: root/dns/bind95/Makefile
blob: a377070748c1c0157a06a2a93099858d35a92d54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# New ports collection makefile for:	bind
# Date created:				6 October 2000
# Whom:					will
#
# $FreeBSD$
#

PORTNAME=	bind
PORTVERSION=	9.1.1rc7
CATEGORIES=	net ipv6
MASTER_SITES=	ftp://ftp.isc.org/isc/bind9/${PORTVERSION}/ \
		ftp://ftp.sunet.se/pub/network/isc/bind9/${PORTVERSION}/ \
		${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/bind9/${PORTVERSION}/,}

MAINTAINER=	DougB@FreeBSD.org

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--localstatedir=/var

MAN1=	dig.1 host.1 named-checkconf.1 named-checkzone.1
MAN5=	rndc.conf.5
MAN8=	lwresd.8 named.8 nsupdate.8 rndc.8 dnssec-keygen.8 dnssec-makekeyset.8 \
	dnssec-signkey.8 dnssec-signzone.8

DIR=	${WRKSRC}/doc/man/bin
post-patch:
.for FILE in named-checkconf.1 named.8 nsupdate.8 rndc.8 rndc.conf.5
	@ ${MV} ${DIR}/${FILE} ${DIR}/${FILE}.Dist
	@ ${SED} -e 's#/etc/named.conf#${PREFIX}/etc/named.conf#g' \
		-e 's#/etc/rndc.conf#${PREFIX}/etc/rndc.conf#g' \
		${DIR}/${FILE}.Dist > ${DIR}/${FILE}
.endfor

	@ ${MV} ${WRKSRC}/doc/man/dnssec/dnssec-signzone.8 \
		${WRKSRC}/doc/man/dnssec/dnssec-signzone.8.Dist
	@ ${SED} -e 's#/etc/named.conf#${PREFIX}/etc/named.conf#g' \
		${WRKSRC}/doc/man/dnssec/dnssec-signzone.8.Dist \
		> ${WRKSRC}/doc/man/dnssec/dnssec-signzone.8

	@ ${MV} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.Dist
	@ ${SED} -e 's#{INSTALL_PROGRAM}#{INSTALL_DATA} -m 555#g' \
		${WRKSRC}/Makefile.in.Dist > ${WRKSRC}/Makefile.in

post-install:
.for NUM in 1 5 8
	${INSTALL_MAN} ${WRKSRC}/doc/man/bin/*.${NUM} ${MANPREFIX}/man/man${NUM}
.endfor
	${INSTALL_MAN} ${WRKSRC}/doc/man/dnssec/*.8 ${MANPREFIX}/man/man8
	${INSTALL_DATA} ${WRKSRC}/bin/rndc/rndc.conf \
		${PREFIX}/etc/rndc.conf.sample

.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/bind9/arm
	${INSTALL_DATA} ${WRKSRC}/doc/arm/Bv9ARM*html \
		${PREFIX}/share/doc/bind9/arm/
	${CP} -R ${WRKSRC}/doc/misc ${PREFIX}/share/doc/bind9/
	${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \
		${WRKSRC}/README ${PREFIX}/share/doc/bind9/
.endif

.include <bsd.port.mk>