summaryrefslogtreecommitdiff
path: root/dns/dnrd/Makefile
blob: 507e3bca994dcd33dd170f79860bac60dff62f0b (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
PORTNAME=	dnrd
PORTVERSION=	2.20.3
PORTREVISION=	1
CATEGORIES=	dns
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Proxy DNS daemon
WWW=		http://dnrd.sourceforge.net/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		cpe gmake
USE_RC_SUBR=	${PORTNAME}
GNU_CONFIGURE=	yes

USERS=		dnrd
GROUPS=		dnrd

PORTDOCS=	AUTHORS COPYING ChangeLog INSTALL NEWS README
PORTEXAMPLES=	README-cache README-cygwin README-master TODO master.sample

OPTIONS_DEFINE=	TCP MASTER DEBUG RANDOM DOCS EXAMPLES
OPTIONS_DEFAULT=MASTER

TCP_DESC=	TCP support
MASTER_DESC=	Master file support
RANDOM_DESC=	Random source port

TCP_CONFIGURE_ENABLE=		tcp
MASTER_CONFIGURE_ENABLE=	master
DEBUG_CONFIGURE_ENABLE=		enable-debug
RANDOM_CONFIGURE_ENABLE=	random-src

do-install:
	@${MKDIR} ${STAGEDIR}${ETCDIR}
	${INSTALL_PROGRAM} ${WRKSRC}/src/dnrd ${STAGEDIR}${PREFIX}/sbin/
	${INSTALL_MAN} ${WRKSRC}/doc/dnrd.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
	${INSTALL_DATA} ${WRKSRC}/doc/master.sample ${STAGEDIR}${ETCDIR}/

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/

do-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${EXAMPLESDIR}/

.include <bsd.port.mk>