blob: 8e4e8c4e2846885ec0b5e9e11d97f92aa58c4177 (
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
|
# $NetBSD: Makefile,v 1.10 2001/02/04 10:40:00 itojun Exp $
#
DISTNAME= bind-${BIND_VERSION}
CATEGORIES= net
MASTER_SITES= ftp://ftp.isc.org/isc/bind9/snapshots/
MAINTAINER= hubertf@NetBSD.org
HOMEPAGE= http://www.isc.org/products/BIND/
# IPv6 ready, automatically detected
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= USE_INET6
# No need to set USE_INET6, will auto-detect.
BIND_VERSION= 9.2.0s20010119
DIST_SUBDIR= bind/${BIND_VERSION}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--disable-threads # Until we have real threads
# dnssec-keygen needs "good enough" random number, use /dev/urandom
CONFIGURE_ARGS+=--with-libtool=yes \
--sysconfdir=/etc \
--localstatedir=/var \
--with-randomdev=/dev/urandom
LDFLAGS+= -Wl,-R${LOCALBASE}/pthreads/lib -L${LOCALBASE}/pthreads/lib
post-build:
${SED} \
-e 's|@PREFIX@|${PREFIX}|' \
<${FILESDIR}/named.sh >${WRKDIR}/named
PLIST_SRC= ${WRKSRC}/PLIST
post-install:
${MKDIR} ${PREFIX}/share/doc/bind9
${MKDIR} ${PREFIX}/share/doc/bind9/arm
${MKDIR} ${PREFIX}/share/doc/bind9/draft
${MKDIR} ${PREFIX}/share/doc/bind9/misc
${MKDIR} ${PREFIX}/share/doc/bind9/rfc
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bind9
${INSTALL_DATA} ${WRKSRC}/doc/arm/* ${PREFIX}/share/doc/bind9/arm
${INSTALL_DATA} ${WRKSRC}/doc/draft/* ${PREFIX}/share/doc/bind9/draft
${INSTALL_DATA} ${WRKSRC}/doc/misc/* ${PREFIX}/share/doc/bind9/misc
${INSTALL_DATA} ${WRKSRC}/doc/rfc/* ${PREFIX}/share/doc/bind9/rfc
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
(cd ${PREFIX}; ${FIND} share/doc/bind9 -type f -print ) >> ${PLIST_SRC}
(cd ${PREFIX}; ${FIND} share/doc/bind9 -type d -print ) | ${SED} -e 's/^/@dirrm /' | sort -r >> ${PLIST_SRC}
${INSTALL_DATA} ${WRKDIR}/named ${PREFIX}/etc/rc.d/named9
.include "../../mk/bsd.pkg.mk"
|