aboutsummaryrefslogtreecommitdiff
path: root/dns/yadifa/Makefile
blob: f70c82acad9cc944d989af1617b31569572ebd2b (plain) (blame)
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
# Created by: Mathieu Arnold <mat@FreeBSD.org>
# $FreeBSD$

PORTNAME=	yadifa
PORTVERSION=	2.1.3
DISTVERSIONSUFFIX=	-5519
CATEGORIES=	dns ipv6
MASTER_SITES=	http://cdn.yadifa.eu/sites/default/files/releases/ LOCAL/mat/yadifa

MAINTAINER=	mat@FreeBSD.org
COMMENT=	Authoritative nameserver with DNSSEC capabilities

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYING

GNU_CONFIGURE=	yes
USES=		libtool compiler:c11
USE_OPENSSL=	yes
CONFIGURE_ARGS=	--localstatedir=/var

OPTIONS_DEFINE=	CTRL DOCS EXAMPLES TCL RRL MESSAGES NSID
OPTIONS_DEFAULT=	RRL NSID
OPTIONS_SUB=	yes

CTRL_DESC=	Remote control
RRL_DESC=	Response Rate Limiting
MESSAGES_DESC=	Use messages instead of send (if many ip aliases)
NSID_DESC=	Name Server Identifier Option

CTRL_CONFIGURE_ENABLE=	ctrl
TCL_USES=	tcl
TCL_CONFIGURE_ENABLE=	tcl
RRL_CONFIGURE_ENABLE=	rrl
MESSAGES_CONFIGURE_ENABLE=	messages
NSID_CONFIGURE_ENABLE=	nsid

USE_RC_SUBR=	${PORTNAME}d

PORTDOCS=	AUTHORS COPYING ChangeLog \
		INSTALL NEWS README TODO VERSION

post-configure:
	${REINPLACE_CMD} -e 's|^docdir = .*|docdir = ${EXAMPLESDIR}|' ${WRKSRC}/etc/Makefile
	${REINPLACE_CMD} -e 's|/usr/local/var|/var|' -e 's|/var/zones|/var/${PORTNAME}|' ${WRKSRC}/etc/yadifad.conf.example

post-install:
	${INSTALL_DATA} ${WRKSRC}/etc/yadifad.conf.example \
		${STAGEDIR}${PREFIX}/etc/yadifad.conf.sample
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
	@${MV} ${STAGEDIR}/var/zones ${STAGEDIR}/var/${PORTNAME}

.include <bsd.port.mk>