mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
ef7c55fb4b
This release contains the DNS Flag Day 2020 fixes. This sets the default EDNS buffer size to 1232, that should reduce fragmentation. https://dnsflagday.net/2020/ There is a new feature where it is possible to list an interface by name. This pulls in the IP addresses associated with the interface at server start. FEATURES: - Follow DNS flag day 2020 advice and set default EDNS message size to 1232. - Merged PR #113 with fixes. Instead of listing an IP-address to listen on, an interface name can be specified in nsd.conf, with ip-address: eth0. The IP-addresses for that interface are then used. - Port TSIG code for openssl 3.0.0-alpha6. BUG FIXES: - Fix make install with --with-pidfile="". - Merge #115 from millert: Fix strlcpy() usage. From OpenBSD. - Merge #117: mini_event.h (4.3.2 and 4.3.1) on OpenBSD cannot find fd_set - patch. - Fix that configure checks for EVP_sha256 to detect openssl, because HMAC_CTX_new is deprecated in 3.0.0. - Fix #119: fix compile warnings from new gcc. - Fix #119: warn when trying to parse a directory. - Merge PR #121: Increase log level of recreated database from WARNING to ERR. - Remove unused space from LIBS on link line. - Updated date in nsd -v output. PR: 250203 Submitted by: Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer) Relnotes: https://www.nlnetlabs.nl/news/2020/Oct/08/nsd-4.3.3-released/
119 lines
3.5 KiB
Makefile
119 lines
3.5 KiB
Makefile
# Created by: alexis
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= nsd
|
|
PORTVERSION= 4.3.3
|
|
CATEGORIES= dns
|
|
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
|
|
|
|
USES= cpe ssl
|
|
|
|
LIB_DEPENDS+= libevent.so:devel/libevent
|
|
|
|
CONFLICTS= nsd-[0-3]* nsd3-[0-9]*
|
|
|
|
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
|
|
|
|
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 IPV6 BIND8_STATS CHECKING \
|
|
MINRESPSIZE NSEC3 MMAP DOCS RRL ZONE_STATS MUNIN_PLUGIN \
|
|
RADIXTREE PACKED DNSTAP
|
|
OPTIONS_DEFAULT= LARGEFILE NSEC3 MINRESPSIZE RRL RADIXTREE \
|
|
BIND8_STATS ZONE_STATS
|
|
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)
|
|
RADIXTREE_DESC= Enabled: more (15%) memory use but less CPU cycles
|
|
PACKED_DESC= Enable packed structures for reduced memory use
|
|
DNSTAP_DESC= Enable dnstap logging support
|
|
|
|
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
|
|
IPV6_CONFIGURE_ENABLE= ipv6
|
|
RADIXTREE_CONFIGURE_ENABLE= radix-tree
|
|
PACKED_CONFIGURE_ENABLE= packed
|
|
DNSTAP_CONFIGURE_ENABLE= dnstap
|
|
DNSTAP_LIB_DEPENDS= libfstrm.so:devel/fstrm \
|
|
libprotobuf-c.so:devel/protobuf-c
|
|
|
|
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>
|