blob: 9983a19e229a415b95240cba8ccca1e807703046 (
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
|
# $NetBSD: Makefile,v 1.34 2004/09/01 20:11:02 schmonz Exp $
# FreeBSD Id: ports/net/djbdns/Makefile,v 1.4 2000/09/28 18:18:41 nbm Exp
#
DISTNAME= djbdns-1.05
PKGREVISION= 5
CATEGORIES= net
MASTER_SITES= http://cr.yp.to/djbdns/ ftp://cr.yp.to/djbdns/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${MANPAGES}
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://cr.yp.to/djbdns.html
COMMENT= Collection of secure and reliable DNS tools
MANPAGES= djbdns-1.05-man-20031023.tar.gz
SITES_${MANPAGES}= http://smarden.org/pape/djb/manpages/
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
RESTRICTED= "modified source and binaries may not be distributed"
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
ALL_TARGET= it
INSTALL_TARGET= setup check
EGDIR= ${PREFIX}/share/examples/djbdns
CFLAGS+= -DPKG_SYSCONFDIR=\"\\\"${PKG_SYSCONFDIR}\\\"\"
USE_PKGINSTALL= yes
MAKE_DIRS+= ${PKG_SYSCONFDIR}
SUPPORT_FILES+= ${EGDIR}/dnsroots.global ${PKG_SYSCONFDIR}/dnsroots.global
PLIST_SRC= ${PKGDIR}/PLIST
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
GCC_REQD+= 3.0
.endif
INSTALLATION_DIRS= bin man man/man1 man/man5 man/man8 share/examples/djbdns
.include "../../mk/compiler.mk"
.if ${OPSYS} == "Linux" && !empty(CC_VERSION:Mgcc-*)
CFLAGS+= --include errno.h
.endif
.include "options.mk"
do-configure:
${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
${ECHO} ${CC} ${_STRIPFLAG_CC} > ${WRKSRC}/conf-ld
${ECHO} ${PREFIX} > ${WRKSRC}/conf-home
post-install:
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"
|