2012-10-24 10:01:21 +02:00
|
|
|
# Created by: Anders Nordby <anders@fix.no>
|
2001-06-11 05:44:26 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= maradns
|
2018-05-03 16:05:55 +02:00
|
|
|
PORTVERSION= 2.0.15
|
2003-09-05 06:54:37 +02:00
|
|
|
CATEGORIES= dns
|
2018-05-03 16:05:55 +02:00
|
|
|
MASTER_SITES= http://maradns.samiam.org/download/2.0/${PORTVERSION}/
|
2001-06-11 05:44:26 +02:00
|
|
|
|
2018-05-03 16:05:55 +02:00
|
|
|
MAINTAINER= je3kmz@FreeBSD.org
|
2003-11-11 17:49:01 +01:00
|
|
|
COMMENT= DNS server with focus on security and simplicity
|
2001-06-11 05:44:26 +02:00
|
|
|
|
2013-12-27 15:48:35 +01:00
|
|
|
LICENSE= BSD2CLAUSE
|
2011-12-20 16:24:30 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2018-05-03 16:05:55 +02:00
|
|
|
USES= tar:bz2
|
2014-02-20 16:44:56 +01:00
|
|
|
USE_RC_SUBR= ${PORTNAME} zoneserver Deadwood
|
2011-04-12 11:35:14 +02:00
|
|
|
USERS= bind
|
|
|
|
GROUPS= bind
|
2014-02-20 16:44:56 +01:00
|
|
|
INSTALL_TARGET= install PREFIX=${STAGEDIR}${PREFIX}
|
2018-03-01 14:20:41 +01:00
|
|
|
SHEBANG_FILES= tools/bind2csv2.py
|
2018-05-03 16:05:55 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2004-04-18 17:31:18 +02:00
|
|
|
|
2015-10-16 16:19:00 +02:00
|
|
|
OPTIONS_DEFINE= IPV6 DOCS EXAMPLES CONV
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
CONV_DESC= Install bind2csv2 tool (needs python)
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2014-02-20 16:44:56 +01:00
|
|
|
IPV6_CONFIGURE_ON= --ipv6
|
2018-05-03 16:05:55 +02:00
|
|
|
CONV_USES= python:2.7,run shebangfix
|
2014-02-20 16:44:56 +01:00
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
2018-05-03 16:05:55 +02:00
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
DEADWOOD_VER= 3.2.11
|
2012-10-24 10:01:21 +02:00
|
|
|
|
2001-06-11 05:44:26 +02:00
|
|
|
post-patch:
|
2018-05-03 16:05:55 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|make |\$$\{MAKE\} |' ${WRKSRC}/build/Makefile.freebsd
|
2014-02-20 16:44:56 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f ! -name "*.orig" | ${XARGS} ${REINPLACE_CMD} -e \
|
2015-10-16 16:19:00 +02:00
|
|
|
's|/etc/maradns|${ETCDIR}|g; s|/etc/mararc|${ETCDIR}|g; \
|
|
|
|
s|/etc/deadwood|${ETCDIR}|g; s| = 99| = 53|g'
|
2001-06-11 05:44:26 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-02-20 16:44:56 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/deadwood-${DEADWOOD_VER}/src/Deadwood ${STAGEDIR}${PREFIX}/sbin
|
2013-11-25 17:11:05 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/server/maradns ${STAGEDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tcp/fetchzone ${STAGEDIR}${PREFIX}/bin
|
2015-10-16 16:19:00 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tcp/getzone ${STAGEDIR}${PREFIX}/bin
|
2013-11-25 17:11:05 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tcp/zoneserver ${STAGEDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/askmara ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/duende ${STAGEDIR}${PREFIX}/bin
|
2015-10-16 16:19:00 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tools/misc/mqhash ${STAGEDIR}${PREFIX}/bin
|
2009-07-15 08:58:30 +02:00
|
|
|
|
2015-10-16 16:19:00 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/en/man/*.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/en/man/*.8 ${STAGEDIR}${MANPREFIX}/man/man8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/en/man/*.5 ${STAGEDIR}${MANPREFIX}/man/man5
|
2009-07-15 08:58:30 +02:00
|
|
|
|
2014-02-20 16:44:56 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_full_mararc ${STAGEDIR}${ETCDIR}/mararc.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_csv2 ${STAGEDIR}${ETCDIR}/csv2.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/deadwood-${DEADWOOD_VER}/doc/dwood3rc ${STAGEDIR}${ETCDIR}/dwood3rc.sample
|
2009-07-15 08:58:30 +02:00
|
|
|
|
2018-05-03 16:05:55 +02:00
|
|
|
do-install-CONV-on:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/bind2csv2.py ${STAGEDIR}${PREFIX}/bin/bind2csv2
|
|
|
|
|
2015-10-16 16:19:00 +02:00
|
|
|
post-install-DOCS-on:
|
2014-02-20 16:44:56 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/doc/en && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
2016-10-21 14:51:40 +02:00
|
|
|
@${RM} -r ${STAGEDIR}${DOCSDIR}/man \
|
2014-02-20 16:44:56 +01:00
|
|
|
${STAGEDIR}${DOCSDIR}/source \
|
|
|
|
${STAGEDIR}${DOCSDIR}/pdf
|
|
|
|
@${FIND} ${STAGEDIR}${DOCSDIR} -name Makefile -delete
|
2015-10-16 16:19:00 +02:00
|
|
|
|
|
|
|
post-install-EXAMPLES-on:
|
2014-02-20 16:44:56 +01:00
|
|
|
${MV} ${STAGEDIR}${DOCSDIR}/examples ${STAGEDIR}${EXAMPLESDIR}
|
2001-06-11 05:44:26 +02:00
|
|
|
|
2009-01-05 20:44:02 +01:00
|
|
|
.include <bsd.port.mk>
|