blob: 3ab9a127557879b77002fea7249c7e6dd1650a3c (
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
69
70
71
72
73
74
|
# New ports collection makefile for: maradns
# Date created: 26 May 2001
# Whom: Anders Nordby <anders@fix.no>
#
# $FreeBSD$
#
PORTNAME= maradns
PORTVERSION= 1.4.03
CATEGORIES= dns
MASTER_SITES= http://www.maradns.org/download/1.4/${PORTVERSION}/ \
SF/${PORTNAME}/MaraDNS/${PORTVERSION}/
MAINTAINER= decke@FreeBSD.org
COMMENT= DNS server with focus on security and simplicity
REINPLACE_ARGS= -i ""
MAKE_ENV= FLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
USE_RC_SUBR= ${PORTNAME} zoneserver
MAN1= askmara.1 getzone.1 fetchzone.1
MAN5= mararc.5 csv1.5 csv2.5 csv2_txt.5
MAN8= maradns.8 zoneserver.8 duende.8
post-patch:
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|/etc/maradns|${ETCDIR}|g; s|/etc/mararc|${ETCDIR}|g'
@${FIND} ${WRKSRC} -name '*Makefile*' | ${XARGS} ${REINPLACE_CMD} -e \
's|make|\$$\{MAKE\}|g ; \
s|^FLAGS =|#FLAGS =|g ; \
s|-lpthread|${PTHREAD_LIBS}|g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/server/maradns ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/tcp/getzone ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tcp/fetchzone ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tcp/zoneserver ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/tools/askmara ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tools/duende ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/en/man/askmara.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/en/man/getzone.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/en/man/fetchzone.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/en/man/maradns.8 ${MANPREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/doc/en/man/zoneserver.8 ${MANPREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/doc/en/man/duende.8 ${MANPREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/doc/en/man/mararc.5 ${MANPREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/doc/en/man/csv1.5 ${MANPREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/doc/en/man/csv2.5 ${MANPREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/doc/en/man/csv2_txt.5 ${MANPREFIX}/man/man5
${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_full_mararc ${PREFIX}/etc/mararc.sample
${MKDIR} ${ETCDIR}/
${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_csv2 ${ETCDIR}/example_csv2
${MKDIR} ${ETCDIR}/logger
.ifndef(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/doc/en/examples/* ${EXAMPLESDIR}/
.endif
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/en
${INSTALL_DATA} ${WRKSRC}/doc/en/*.* ${DOCSDIR}/en
${INSTALL_DATA} ${WRKSRC}/doc/en/QuickStart ${DOCSDIR}/en
${INSTALL_DATA} ${WRKSRC}/doc/en/README ${DOCSDIR}/en
${CP} -R ${WRKSRC}/doc/en/misc ${DOCSDIR}/en
${CP} -R ${WRKSRC}/doc/en/pdf ${DOCSDIR}/en
${CP} -R ${WRKSRC}/doc/en/tutorial ${DOCSDIR}/en
${CP} -R ${WRKSRC}/doc/en/text ${DOCSDIR}/en
.endif
.include <bsd.port.mk>
|