freebsd-ports/dns/nsd/Makefile
Kubilay Kocak 0c47b7db42 dns/nsd: Remove IPv6 option, fixes build
Remove the IPv6 option that is causing builds to fail when it is
disabled. The issue does not affect package users, as it was a default
option.

The issue has been fixed upstream [1] and will be included/renabled
in the next version update.

While I'm here:

* Switch to USES=ssl
* Add --enable-ipv6 in CONNFIGURE_ARGS to ensure it's explicitly enabled

[1] https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=800

PR:		211303
Reported by:	<vfx9as gmail com>
Approved by:	maintainer <jaap NLnetLabs nl>
MFH:		2016Q3
2016-07-28 11:23:59 +00:00

108 lines
3 KiB
Makefile

# Created by: alexis
# $FreeBSD$
PORTNAME= nsd
PORTVERSION= 4.1.10
CATEGORIES= dns ipv6
MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/ \
ftp://ftp.rhnet.is/pub/nsd/
MAINTAINER= jaap@NLnetLabs.nl
COMMENT= Authoritative only non-recursive name server
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
CONFLICTS= nsd-[0-3]* nsd3-[0-9]*
USES= cpe ssl
CPE_VENDOR= nlnetlabs
USE_RC_SUBR= nsd
NSDUSER?= nsd
NSDGROUP?= nsd
NSDLSDIR= /var
NSDDBDIR= /var/db/nsd
NSDRUNDIR= /var/run/nsd
NSDMAX_IPS?= 512
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libevent=${LOCALBASE} \
--with-user=${NSDUSER} \
--with-configdir=${ETCDIR} \
--localstatedir=${NSDLSDIR} \
--with-dbfile=${NSDDBDIR}/nsd.db \
--with-ssl=${OPENSSLBASE} \
--with-pidfile=${NSDRUNDIR}/nsd.pid \
--enable-ipv6
PLIST_SUB= NSDUSER=${NSDUSER} \
NSDGROUP=${NSDGROUP} \
NSDDBDIR=${NSDDBDIR} \
NSDRUNDIR=${NSDRUNDIR}
USERS= ${NSDUSER}
GROUPS= ${NSDGROUP}
PORTDOCS= CREDITS ChangeLog LICENSE NSD-DATABASE NSD-DIFFFILE \
NSD-4-features NSD-FOR-BIND-USERS README README.icc RELNOTES \
REQUIREMENTS TESTPLAN TODO UPGRADING coding-style \
differences.tex
OPTIONS_DEFINE= ROOT_SERVER LARGEFILE BIND8_STATS CHECKING \
MINRESPSIZE NSEC3 MMAP DOCS RRL ZONE_STATS MUNIN_PLUGIN
OPTIONS_DEFAULT= LARGEFILE NSEC3 MINRESPSIZE RRL
OPTIONS_SUB= yes
MUNIN_PLUGIN_IMPLIES= BIND8_STATS
ROOT_SERVER_DESC= Configure as a root server
LARGEFILE_DESC= Largefile support
BIND8_STATS_DESC= BIND8-like NSTATS & XSTATS
CHECKING_DESC= Internal run-time checks
NSEC3_DESC= NSEC3 support
MINRESPSIZE_DESC= Minimial response sizing
MMAP_DESC= Use mmap instead of malloc (experimental)
RRL_DESC= Response Rate Limiting
ZONE_STATS_DESC= Separate statistics for each zone
MUNIN_PLUGIN_DESC= Install Munin plugin (requires BIND8_STATS)
LIB_DEPENDS+= libevent.so:devel/libevent2
ROOT_SERVER_CONFIGURE_ENABLE= root-server
LARGEFILE_CONFIGURE_ENABLE= largefile
BIND8_STATS_CONFIGURE_ENABLE= bind8-stats
CHECKING_CONFIGURE_ENABLE= checking
NSEC3_CONFIGURE_ENABLE= nsec3
MINRESPSIZE_CONFIGURE_ENABLE= minimal-responses
MMAP_CONFIGURE_ENABLE= mmap
RRL_CONFIGURE_ENABLE= ratelimit
ZONE_STATS_CONFIGURE_ENABLE= zone-stats
post-build-MUNIN_PLUGIN-on:
${REINPLACE_CMD} \
-e 's|/usr/local|${LOCALBASE}|g' \
-e 's|/usr/local/etc/nsd.conf|${ETCDIR}/nsd.conf|g' \
-e 's|/usr/local/var/munin/plugin-state|/var/munin/plugin-state/root|g' \
-e '90s|/var/munin/plugin-state/root|$${MUNIN_PLUGSTATE}|' \
${WRKSRC}/contrib/nsd_munin_
post-install:
${INSTALL_DATA} ${WRKSRC}/nsd.conf.sample \
${STAGEDIR}${PREFIX}/etc/nsd/nsd.conf.sample
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/nsd \
${STAGEDIR}${PREFIX}/sbin/nsd-checkconf \
${STAGEDIR}${PREFIX}/sbin/nsd-checkzone \
${STAGEDIR}${PREFIX}/sbin/nsd-control
post-install-MUNIN_PLUGIN-on:
${MKDIR} ${STAGEDIR}${PREFIX}/share/munin/plugins
${INSTALL_SCRIPT} ${WRKSRC}/contrib/nsd_munin_ \
${STAGEDIR}${PREFIX}/share/munin/plugins
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>