blob: 17e1fd64432c19c62a2966b1eb808ede8ccd680c (
plain)
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
|
# $NetBSD: Makefile,v 1.26 2003/09/17 19:40:51 grant Exp $
# FreeBSD Id: ports/net/djbdns/Makefile,v 1.4 2000/09/28 18:18:41 nbm Exp
#
DISTNAME= djbdns-1.05
PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= http://cr.yp.to/djbdns/ \
ftp://cr.yp.to/djbdns/ \
http://smarden.org/pape/djb/manpages/ \
http://www.hungry.com/~fn/ \
http://tinydns.org/
DISTFILES= ${DISTNAME}.tar.gz \
${DISTNAME}-man-${MANVERSION}.tar.gz \
dnscache-log.pl.txt \
tinydns-log.pl.txt
PATCH_SITES= http://www.fefe.de/dns/
PATCHFILES= ${DISTNAME}-ipv6.diff.bz2
PATCH_DIST_STRIP= -p1
MAINTAINER= zuntum@NetBSD.org
HOMEPAGE= http://cr.yp.to/djbdns.html
COMMENT= Collection of secure and reliable DNS tools by Dan Bernstein
RESTRICTED= "Redistribution of modified package is forbidden"
NO_BIN_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
${DISTNAME}-man-${MANVERSION}.tar.gz
REPLACE_PERL= *.pl
ALL_TARGET= it
INSTALL_TARGET= setup check
MANVERSION= 20021211
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
GCC_REQD= 3.0
.endif
post-extract:
@${CP} ${DISTDIR}/tinydns-log.pl.txt ${WRKSRC}/tinydns-log.pl
@${CP} ${DISTDIR}/dnscache-log.pl.txt ${WRKSRC}/dnscache-log.pl
post-patch:
${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
${ECHO} ${CC} ${_STRIPFLAG_CC} > ${WRKSRC}/conf-ld
${ECHO} ${PREFIX} > ${WRKSRC}/conf-home
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/tinydns-log.pl ${PREFIX}/bin/tinydns-log
${INSTALL_SCRIPT} ${WRKSRC}/dnscache-log.pl ${PREFIX}/bin/dnscache-log
${INSTALL_DATA} ${WRKSRC}/dnsroots.global ${PREFIX}/etc/dnsroots.global
cd ${WRKDIR}/djbdns-man; for i in 1 5 8; do \
for j in *.$$i; do ${INSTALL_MAN} $$j ${PREFIX}/man/man$$i; done \
done
.include "../../mk/bsd.pkg.mk"
|