Update dns/nsd to version 4.0.3
[dports.git] / dns / credns / Makefile
1 # Created by: jaap
2 # $FreeBSD$
3
4 PORTNAME=       credns
5 PORTVERSION=    0.2.10
6 CATEGORIES=     dns security
7 MASTER_SITES=   http://www.nlnetlabs.nl/downloads/credns/
8
9 MAINTAINER=     jaap@NLnetLab.nl
10 COMMENT=        A verifier performing validation in the DNS notify/transfer-chain
11
12 USE_RC_SUBR=    credns
13
14 CREDNSUSER?=    bind
15 CREDNSGROUP?=   bind
16 CREDNSLSDIR=    /var
17 CREDNSDBDIR=    /var/db/nsd
18 CREDNSRUNDIR=   /var/run/nsd
19 NSDMAX_IPS?=    512
20
21 GNU_CONFIGURE=  yes
22 CONFIGURE_ARGS= --with-user=${CREDNSUSER} \
23                 --localstatedir=${CREDNSLSDIR} \
24                 --with-dbfile=${CREDNSDBDIR}/nsd.db \
25                 --with-pidfile=${CREDNSRUNDIR}/nsd.pid
26
27 SUB_FILES=      pkg-install pkg-deinstall
28 SUB_LIST+=      CREDNSUSER=${CREDNSUSER} \
29                 CREDNSGROUP=${CREDNSGROUP} \
30                 CREDNSDBDIR=${CREDNSDBDIR} \
31                 CREDNSRUNDIR=${CREDNSRUNDIR}
32
33 USE_OPENSSL=    yes
34
35 MAN5=           credns.conf.5
36 MAN8=           credns-notify.8 credns-checkconf.8 credns-patch.8 \
37                 credns-xfer.8 credns.8 crednsc.8
38
39 PORTDOCS=       CREDITS ChangeLog LICENSE NSD-DATABASE NSD-DIFFFILE \
40                 NSD-CREDNS-MODS NSD-FOR-BIND-USERS NSD-README README \
41                 README.icc README.svn RELNOTES REQUIREMENTS TESTPLAN \
42                 TODO UPGRADING coding-style differences.pdf differences.tex
43
44 OPTIONS_DEFINE= ROOT_SERVER IPV6 CHECKING MMAP MAXIPS DOCS
45 ROOT_SERVER_DESC=       Dnssexy as proxy for a (local) root
46 CHECKING_DESC=  Internal runtime checks
47 MMAP_DESC=      Use mmap instead of malloc(experimental)
48 MAXIPS_DESC=    Raise max-ips from 8 to ${NSDMAX_IPS}
49
50 NO_STAGE=       yes
51 .include <bsd.port.options.mk>
52
53 .if ${PORT_OPTIONS:MROOT_SERVER}
54 CONFIGURE_ARGS+=        --enable-root-server
55 .endif
56
57 .if ${PORT_OPTIONS:MIPV6}
58 CONFIGURE_ARGS+=        --disable-ipv6
59 .endif
60
61 .if ${PORT_OPTIONS:MCHECKING}
62 CONFIGURE_ARGS+=        --enable-checking
63 .endif
64
65 .if ${PORT_OPTIONS:MMMAP}
66 CONFIGURE_ARGS+=        --enable-mmap
67 .endif
68
69 .if ${PORT_OPTIONS:MMAXIPS}
70 CONFIGURE_ARGS+=        --with-max-ips=${NSDMAX_IPS}
71 .endif
72
73 post-install:
74         ${INSTALL_DATA} ${WRKSRC}/credns.conf.sample \
75                 ${PREFIX}/etc/credns/credns.conf.sample
76 .if ${PORT_OPTIONS:MDOCS}
77         @${MKDIR} ${DOCSDIR}
78 .for f in ${PORTDOCS}
79         ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}/${f}
80 .endfor
81 .endif
82         @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
83
84 .include <bsd.port.mk>