# Created by: Anders Nordby # $FreeBSD: head/dns/maradns/Makefile 559835 2021-01-01 15:09:13Z rene $ PORTNAME= maradns PORTVERSION= 2.0.15 CATEGORIES= dns MASTER_SITES= http://maradns.samiam.org/download/2.0/${PORTVERSION}/ MAINTAINER= je3kmz@FreeBSD.org COMMENT= DNS server with focus on security and simplicity LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING USES= tar:bz2 USE_RC_SUBR= ${PORTNAME} zoneserver Deadwood USERS= bind GROUPS= bind INSTALL_TARGET= install PREFIX=${STAGEDIR}${PREFIX} SHEBANG_FILES= tools/bind2csv2.py HAS_CONFIGURE= yes OPTIONS_DEFINE= IPV6 DOCS EXAMPLES OPTIONS_SUB= yes IPV6_CONFIGURE_ON= --ipv6 PORTDOCS= * PORTEXAMPLES= * REINPLACE_ARGS= -i "" DEADWOOD_VER= 3.2.11 post-patch: @${REINPLACE_CMD} -e 's|make |\$$\{MAKE\} |' ${WRKSRC}/build/Makefile.freebsd @${FIND} ${WRKSRC} -type f ! -name "*.orig" | ${XARGS} ${REINPLACE_CMD} -e \ 's|/etc/maradns|${ETCDIR}|g; s|/etc/mararc|${ETCDIR}|g; \ s|/etc/deadwood|${ETCDIR}|g; s| = 99| = 53|g' do-install: ${INSTALL_PROGRAM} ${WRKSRC}/deadwood-${DEADWOOD_VER}/src/Deadwood ${STAGEDIR}${PREFIX}/sbin ${INSTALL_PROGRAM} ${WRKSRC}/server/maradns ${STAGEDIR}${PREFIX}/sbin ${INSTALL_PROGRAM} ${WRKSRC}/tcp/fetchzone ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/tcp/getzone ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/tcp/zoneserver ${STAGEDIR}${PREFIX}/sbin ${INSTALL_PROGRAM} ${WRKSRC}/tools/askmara ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/tools/duende ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/tools/misc/mqhash ${STAGEDIR}${PREFIX}/bin ${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 @${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 post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/doc/en && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} @${RM} -r ${STAGEDIR}${DOCSDIR}/man \ ${STAGEDIR}${DOCSDIR}/source \ ${STAGEDIR}${DOCSDIR}/pdf @${FIND} ${STAGEDIR}${DOCSDIR} -name Makefile -delete post-install-EXAMPLES-on: ${MV} ${STAGEDIR}${DOCSDIR}/examples ${STAGEDIR}${EXAMPLESDIR} .include