b7f05445c0
It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
114 lines
3.4 KiB
Makefile
114 lines
3.4 KiB
Makefile
PORTNAME= nsd
|
|
DISTVERSION= 4.6.0
|
|
CATEGORIES= dns
|
|
MASTER_SITES= https://www.nlnetlabs.nl/downloads/nsd/
|
|
|
|
MAINTAINER= jaap@NLnetLabs.nl
|
|
COMMENT= Authoritative only non-recursive name server
|
|
WWW= https://www.nlnetlabs.nl/projects/nsd/about/
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libevent.so:devel/libevent
|
|
|
|
USES= cpe ssl
|
|
|
|
CPE_VENDOR= nlnetlabs
|
|
USE_RC_SUBR= nsd
|
|
|
|
NSDUSER?= nsd
|
|
NSDGROUP?= nsd
|
|
NSDLSDIR= /var
|
|
NSDDBDIR= /var/db/nsd
|
|
NSDRUNDIR= /var/run/nsd
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --localstatedir=${NSDLSDIR} \
|
|
--with-configdir=${ETCDIR} \
|
|
--with-dbfile=${NSDDBDIR}/nsd.db \
|
|
--with-libevent=${LOCALBASE} \
|
|
--with-pidfile=${NSDRUNDIR}/nsd.pid \
|
|
--with-ssl=${OPENSSLBASE} \
|
|
--with-user=${NSDUSER}
|
|
|
|
USERS= ${NSDUSER}
|
|
GROUPS= ${NSDGROUP}
|
|
|
|
PLIST_SUB= NSDDBDIR=${NSDDBDIR} \
|
|
NSDGROUP=${NSDGROUP} \
|
|
NSDRUNDIR=${NSDRUNDIR} \
|
|
NSDUSER=${NSDUSER}
|
|
|
|
PORTDOCS= CREDITS ChangeLog LICENSE NSD-4-features NSD-DATABASE \
|
|
NSD-DIFFFILE NSD-FOR-BIND-USERS README README.icc RELNOTES \
|
|
REQUIREMENTS TESTPLAN TODO UPGRADING coding-style \
|
|
differences.tex
|
|
|
|
OPTIONS_DEFINE= BIND8_STATS CHECKING DNSTAP DOCS IPV6 LARGEFILE \
|
|
MINRESPSIZE MMAP MUNIN_PLUGIN NSEC3 PACKED RADIXTREE \
|
|
ROOT_SERVER RRL ZONE_STATS
|
|
OPTIONS_DEFAULT= BIND8_STATS LARGEFILE MINRESPSIZE NSEC3 RADIXTREE RRL \
|
|
ZONE_STATS
|
|
OPTIONS_SUB= yes
|
|
|
|
BIND8_STATS_DESC= BIND8-like NSTATS & XSTATS
|
|
CHECKING_DESC= Internal run-time checks
|
|
DNSTAP_DESC= Enable dnstap logging support
|
|
LARGEFILE_DESC= Largefile support
|
|
MINRESPSIZE_DESC= Minimial response sizing
|
|
MMAP_DESC= Use mmap instead of malloc (experimental)
|
|
MUNIN_PLUGIN_DESC= Install Munin plugin (requires BIND8_STATS)
|
|
NSEC3_DESC= NSEC3 support
|
|
PACKED_DESC= Enable packed structures for reduced memory use
|
|
RADIXTREE_DESC= Enabled: more (15%) memory use but less CPU cycles
|
|
ROOT_SERVER_DESC= Configure as a root server
|
|
RRL_DESC= Response Rate Limiting
|
|
ZONE_STATS_DESC= Separate statistics for each zone
|
|
|
|
BIND8_STATS_CONFIGURE_ENABLE= bind8-stats
|
|
CHECKING_CONFIGURE_ENABLE= checking
|
|
DNSTAP_LIB_DEPENDS= libfstrm.so:devel/fstrm \
|
|
libprotobuf-c.so:devel/protobuf-c
|
|
DNSTAP_CONFIGURE_ENABLE= dnstap
|
|
IPV6_CONFIGURE_ENABLE= ipv6
|
|
LARGEFILE_CONFIGURE_ENABLE= largefile
|
|
MINRESPSIZE_CONFIGURE_ENABLE= minimal-responses
|
|
MMAP_CONFIGURE_ENABLE= mmap
|
|
MUNIN_PLUGIN_IMPLIES= BIND8_STATS
|
|
NSEC3_CONFIGURE_ENABLE= nsec3
|
|
PACKED_CONFIGURE_ENABLE= packed
|
|
RADIXTREE_CONFIGURE_ENABLE= radix-tree
|
|
ROOT_SERVER_CONFIGURE_ENABLE= root-server
|
|
RRL_CONFIGURE_ENABLE= ratelimit
|
|
ZONE_STATS_CONFIGURE_ENABLE= zone-stats
|
|
|
|
NSDMAX_IPS?= 512
|
|
|
|
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-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
post-install-MUNIN_PLUGIN-on:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/munin/plugins
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/nsd_munin_ \
|
|
${STAGEDIR}${PREFIX}/share/munin/plugins
|
|
|
|
.include <bsd.port.mk>
|