summaryrefslogtreecommitdiffstats
path: root/dns/credns/Makefile
blob: d7e5b1aceb2985a4115d35ab7237d5709d165a5c (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
62
63
64
65
66
67
68
# Created by: Jaap Akkerhuis <jaap@NLnetLabs.nl>
# $FreeBSD$

PORTNAME=	credns
PORTVERSION=	0.2.10
PORTREVISION=	2
CATEGORIES=	dns security
MASTER_SITES=	http://www.nlnetlabs.nl/downloads/credns/

MAINTAINER=	jaap@NLnetLabs.nl
COMMENT=	Verifier performing validation in the DNS notify/transfer-chain

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_RC_SUBR=	credns

USERS?=		bind
GROUPS?=	bind
CREDNSLSDIR=	/var
CREDNSDBDIR=	/var/db/nsd
CREDNSRUNDIR=	/var/run/nsd
NSDMAX_IPS?=	512

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-user=${CREDNSUSER} \
		--localstatedir=${CREDNSLSDIR} \
		--with-dbfile=${CREDNSDBDIR}/nsd.db \
		--with-pidfile=${CREDNSRUNDIR}/nsd.pid

PLIST_SUB=	CREDNSUSER=${USERS} \
		CREDNSGROUP=${GROUPS} \
		CREDNSDBDIR=${CREDNSDBDIR} \
		CREDNSRUNDIR=${CREDNSRUNDIR}

USES=		ssl

PORTDOCS=	*

OPTIONS_DEFINE=	ROOT_SERVER IPV6 CHECKING MMAP MAXIPS DOCS

ROOT_SERVER_DESC=	Credns as proxy for a (local) root
CHECKING_DESC=	Internal runtime checks
MMAP_DESC=	Use mmap() instead of malloc() (experimental)
MAXIPS_DESC=	Raise max-ips from 8 to ${NSDMAX_IPS}

ROOT_SERVER_CONFIGURE_ENABLE=	root-server
IPV6_CONFIGURE_ENABLE=		ipv6
CHECKING_CONFIGURE_ENABLE=	checking
MMAP_CONFIGURE_ENABLE=		mmap
MAXIPS_CONFIGURE_ON=		--with-max-ips=${NSDMAX_IPS}

post-install:
.for f in credns credns-checkconf credns-notify credns-patch credns-xfer
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${f}
.endfor
	${INSTALL_DATA} ${WRKSRC}/credns.conf.sample \
		${STAGEDIR}${PREFIX}/etc/credns/credns.conf.sample
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

.include <bsd.port.pre.mk>

.if ${SSL_DEFAULT:Mopenssl-devel}
BROKEN=		Does not build with openssl-devel
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud