# New ports collection makefile for: maradns2 # Date created: 10 Feb 2012 # Whom: Rick van der Zwet # # $FreeBSD$ # PORTNAME= maradns PORTVERSION= 2.0.05 CATEGORIES= dns MASTER_SITES= http://www.maradns.org/download/2.0/${PORTVERSION}/ \ SF/${PORTNAME}/MaraDNS/${PORTVERSION}/ MAINTAINER= info@rickvanderzwet.nl COMMENT= DNS server with focus on security and simplicity LICENSE= BSD LICENSE_FILE= ${WRKSRC}/COPYING CONFLICTS= maradns-1.? OPTIONS= IPV6 "Enable IPv6 Support" Off .include .if defined(WITH_IPV6) CONFIGURE_ARGS+= --ipv6 .endif LATEST_LINK= maradns2 USE_RC_SUBR= ${PORTNAME} deadwood zoneserver USERS= bind GROUPS= bind MAN1= deadwood.1 askmara.1 fetchzone.1 getzone.1 MAN5= csv1.5 csv2.5 csv2_txt.5 mararc.5 MAN8= duende.8 maradns.8 zoneserver.8 post-extract: ${MV} ${WRKSRC}/doc/en/man/Deadwood.1 ${WRKSRC}/doc/en/man/deadwood.1 # The internal deadwood release seems to differ all the time, but the # patches needs to stay more and less the same ${LN} -s ${WRKSRC}/deadwood* ${WRKSRC}/deadwood do-install: ${INSTALL_PROGRAM} ${WRKSRC}/deadwood-*/src/Deadwood ${PREFIX}/sbin/deadwood ${INSTALL_PROGRAM} ${WRKSRC}/server/maradns ${PREFIX}/sbin/maradns ${INSTALL_PROGRAM} ${WRKSRC}/tcp/fetchzone ${PREFIX}/bin/fetchzone ${INSTALL_PROGRAM} ${WRKSRC}/tcp/getzone ${PREFIX}/bin/getzone ${INSTALL_PROGRAM} ${WRKSRC}/tcp/zoneserver ${PREFIX}/sbin/zoneserver ${INSTALL_PROGRAM} ${WRKSRC}/tools/askmara ${PREFIX}/bin/askmara ${INSTALL_PROGRAM} ${WRKSRC}/tools/duende ${PREFIX}/bin/duende ${INSTALL_DATA} ${WRKSRC}/doc/en/examples/example_full_mararc ${PREFIX}/etc/mararc.sample ${INSTALL_DATA} ${WRKSRC}/deadwood-*/doc/dwood3rc ${PREFIX}/etc/dwood3rc.sample ${MKDIR} ${PREFIX}/etc/maradns ${PREFIX}/etc/deadwood .if !defined(NOPORTEXAMPLES) ${MKDIR} ${EXAMPLESDIR} (cd ${WRKSRC}/doc/en/examples/ && ${COPYTREE_SHARE} example_\* ${EXAMPLESDIR}) .endif .if !defined(NO_INSTALL_MANPAGES) ${INSTALL_MAN} ${WRKSRC}/doc/en/man/*.1 ${PREFIX}/man/man1/ ${INSTALL_MAN} ${WRKSRC}/doc/en/man/*.5 ${PREFIX}/man/man5/ ${INSTALL_MAN} ${WRKSRC}/doc/en/man/*.8 ${PREFIX}/man/man8/ .endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} (cd ${WRKSRC}/doc/en/ && ${COPYTREE_SHARE} "misc text tutorial webpage" ${DOCSDIR}) (cd ${WRKSRC}/doc/en/ && ${COPYTREE_SHARE} \*.txt ${DOCSDIR}) .endif #(cd ${WRKSRC}/doc/en/ && ${COPYTREE_SHARE} misc text tutorial webpage ${DOCSDIR}) PORTDOCS= misc text tutorial webpage *.txt PORTEXAMPLES= example_* .include