mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
fa37780fed
Features * Support for ILNP RR types: NID, L32, L64, LP (RFC6742). * RRL, --enable-ratelimit at configure time and config options. * TSIG initialization only fails when there is no digest found at all. Bugfixes * Bugfix #478: Declaration after statement (for gcc 2.95). * Bugfix #483: Better error message in case of TSIG error. * Bugfix #485: TTL should not be greater than 2^31 - 1. * Fix RCODE when CNAME loop final answer does not exist, should return NXDOMAIN as stated by RFC 6604. * Fix --disable-full-prehash bug, where after multiple incoming IXFRs, NSEC3 can be removed unjustified. PR: 175837 Submitted by: Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
145 lines
3.4 KiB
Makefile
145 lines
3.4 KiB
Makefile
# Created by: alexis
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= nsd
|
|
PORTVERSION= 3.2.15
|
|
CATEGORIES= dns ipv6
|
|
MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/ \
|
|
ftp://ftp.rhnet.is/pub/nsd/
|
|
|
|
MAINTAINER= jaap@NLnetLabs.nl
|
|
COMMENT= An authoritative only non-recursive name server
|
|
|
|
CONFLICTS= nsd-[0-2]*
|
|
|
|
USE_RC_SUBR= nsd
|
|
|
|
NSDUSER?= bind
|
|
NSDGROUP?= bind
|
|
NSDLSDIR= /var
|
|
NSDDBDIR= /var/db/nsd
|
|
NSDRUNDIR= /var/run/nsd
|
|
NSDMAX_IPS?= 512
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-user=${NSDUSER} \
|
|
--with-configdir=${PREFIX}/etc/nsd \
|
|
--localstatedir=${NSDLSDIR} \
|
|
--with-dbfile=${NSDDBDIR}/nsd.db \
|
|
--with-pidfile=${NSDRUNDIR}/nsd.pid
|
|
|
|
SUB_FILES= pkg-install pkg-deinstall
|
|
SUB_LIST+= NSDUSER=${NSDUSER} \
|
|
NSDGROUP=${NSDGROUP} \
|
|
NSDDBDIR=${NSDDBDIR} \
|
|
NSDRUNDIR=${NSDRUNDIR}
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
MAN5= nsd.conf.5
|
|
MAN8= nsd.8 nsdc.8 zonec.8 nsd-checkconf.8 nsd-notify.8 nsd-patch.8 \
|
|
nsd-xfer.8
|
|
|
|
PORTDOCS= CREDITS ChangeLog LICENSE NSD-DATABASE NSD-DIFFFILE \
|
|
NSD-FOR-BIND-USERS README README.icc RELNOTES \
|
|
REQUIREMENTS TESTPLAN TODO UPGRADING coding-style \
|
|
differences.tex
|
|
|
|
OPTIONS_DEFINE= ROOT_SERVER LARGEFILE IPV6 BIND8_STATS ZONE_STATS CHECKING \
|
|
MINRESPSIZE NSEC3 NSEC3PREHASH MMAP MAXIPS DOCS RRL
|
|
OPTIONS_DEFAULT= LARGEFILE IPV6 NSEC3 NSEC3PREHASH MINRESPSIZE
|
|
|
|
ROOT_SERVER_DESC= Configure as a root server
|
|
LARGEFILE_DESC= Largefile support
|
|
BIND8_STATS_DESC= BIND8-like NSTATS & XSTATS
|
|
ZONE_STATS_DESC= Per-zone BIND8 stats
|
|
CHECKING_DESC= Internal run-time checks
|
|
NSEC3_DESC= NSEC3 support
|
|
NSEC3PREHASH_DESC= Full NSEC3 pre-hashing
|
|
MINRESPSIZE_DESC= Minimial response sizing
|
|
MMAP_DESC= Use mmap instead of malloc (experimental)
|
|
MAXIPS_DESC= Raise max-ips from 8 to ${NSDMAX_IPS}
|
|
RRL_DESC= Response Rate Limiting
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MROOT_SERVER}
|
|
CONFIGURE_ARGS+= --enable-root-server
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MLARGEFILE)
|
|
CONFIGURE_ARGS+= --disable-largefile
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MIPV6)
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MBIND8_STATS}
|
|
CONFIGURE_ARGS+= --enable-bind8-stats
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MZONE_STATS}
|
|
. if empty(PORT_OPTIONS:MBIND8_STATS)
|
|
CONFIGURE_ARGS+= --enable-bind8-stats
|
|
. endif
|
|
CONFIGURE_ARGS+= --enable-zone-stats
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MCHECKING}
|
|
CONFIGURE_ARGS+= --enable-checking
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MNSEC3)
|
|
CONFIGURE_ARGS+= --disable-nsec3
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MMINRESPSIZE)
|
|
CONFIGURE_ARGS+= --disable-minimal-responses
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MNSEC3PREHASH)
|
|
CONFIGURE_ARGS+= --disable-full-prehash
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMMAP}
|
|
CONFIGURE_ARGS+= --enable-mmap
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMAXIPS}
|
|
CONFIGURE_ARGS+= --with-max-ips=${NSDMAX_IPS}
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MRRL}
|
|
CONFIGURE_ARGS+= --enable-ratelimit
|
|
.endif
|
|
|
|
pre-patch:
|
|
.if defined(NSD_OPTIONS)
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "***** ALERT *****"
|
|
@${ECHO_MSG} "NSD_OPTIONS is no longer supported,"
|
|
@${ECHO_MSG} "${PORTNAME} uses OPTIONS, consider running"
|
|
@${ECHO_MSG} "# make config"
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG}
|
|
@sleep 10
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/nsd.conf.sample \
|
|
${PREFIX}/etc/nsd/nsd.conf.sample
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}/${f}
|
|
.endfor
|
|
.endif
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|