2012-11-01 18:41:15 +00:00
|
|
|
# Created by: alexis
|
2002-09-09 21:38:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nsd
|
2013-11-12 13:24:45 +00:00
|
|
|
PORTVERSION= 4.0.0
|
2003-09-05 04:54:37 +00:00
|
|
|
CATEGORIES= dns ipv6
|
2004-05-29 12:23:56 +00:00
|
|
|
MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/ \
|
|
|
|
ftp://ftp.rhnet.is/pub/nsd/
|
2002-09-09 21:38:19 +00:00
|
|
|
|
2011-03-30 13:48:13 +00:00
|
|
|
MAINTAINER= jaap@NLnetLabs.nl
|
2013-11-12 13:24:45 +00:00
|
|
|
COMMENT= An authoritative only non-recursive name server
|
2002-09-09 21:38:19 +00:00
|
|
|
|
2013-11-12 13:24:45 +00:00
|
|
|
CONFLICTS= nsd-[0-]* nsd3-*
|
2006-11-05 05:58:02 +00:00
|
|
|
|
2008-07-28 22:25:55 +00:00
|
|
|
USE_RC_SUBR= nsd
|
2004-05-29 12:23:56 +00:00
|
|
|
|
|
|
|
NSDUSER?= bind
|
2010-02-11 19:37:10 +00:00
|
|
|
NSDGROUP?= bind
|
|
|
|
NSDLSDIR= /var
|
|
|
|
NSDDBDIR= /var/db/nsd
|
|
|
|
NSDRUNDIR= /var/run/nsd
|
2010-08-03 17:26:10 +00:00
|
|
|
NSDMAX_IPS?= 512
|
2004-05-29 12:23:56 +00:00
|
|
|
|
2003-08-03 00:51:14 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2013-11-12 13:24:45 +00:00
|
|
|
CONFIGURE_ARGS= --with-libevent=${LOCALBASE} \
|
|
|
|
--with-user=${NSDUSER} \
|
2008-07-28 22:25:55 +00:00
|
|
|
--with-configdir=${PREFIX}/etc/nsd \
|
2010-02-11 19:37:10 +00:00
|
|
|
--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}
|
2003-08-03 00:51:14 +00:00
|
|
|
|
2009-01-16 00:30:07 +00:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
2013-11-12 13:24:45 +00:00
|
|
|
MAN5= nsd.conf.5
|
|
|
|
MAN8= nsd.8 nsd-checkconf.8 nsd-control.8
|
2006-09-12 20:17:15 +00:00
|
|
|
|
|
|
|
PORTDOCS= CREDITS ChangeLog LICENSE NSD-DATABASE NSD-DIFFFILE \
|
2013-11-12 13:24:45 +00:00
|
|
|
NSD-4-features NSD-FOR-BIND-USERS README README.icc RELNOTES \
|
2006-09-12 20:17:15 +00:00
|
|
|
REQUIREMENTS TESTPLAN TODO UPGRADING coding-style \
|
|
|
|
differences.tex
|
|
|
|
|
2013-11-12 13:24:45 +00:00
|
|
|
OPTIONS_DEFINE= ROOT_SERVER LARGEFILE IPV6 BIND8_STATS CHECKING \
|
|
|
|
MINRESPSIZE NSEC3 NSEC3PREHASH MMAP MAXIPS DOCS EUI_RRTYPES
|
|
|
|
OPTIONS_DEFAULT= LARGEFILE IPV6 NSEC3 NSEC3PREHASH MINRESPSIZE RRL \
|
|
|
|
EUI_RRTYPES
|
2006-09-12 20:17:15 +00:00
|
|
|
|
2012-07-17 10:36:25 +00:00
|
|
|
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
|
|
|
|
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}
|
2013-02-05 09:42:31 +00:00
|
|
|
RRL_DESC= Response Rate Limiting
|
2013-07-23 15:32:49 +00:00
|
|
|
EUI_RRTYPES_DESC= EUI48 and EUI64 RRtypes support
|
2006-09-12 20:17:15 +00:00
|
|
|
|
2013-11-12 13:24:45 +00:00
|
|
|
NO_STAGE= yes
|
2012-07-17 10:36:25 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-11-12 13:24:45 +00:00
|
|
|
LIB_DEPENDS+= event-1:${PORTSDIR}/devel/libevent
|
|
|
|
|
2012-07-17 10:36:25 +00:00
|
|
|
.if ${PORT_OPTIONS:MROOT_SERVER}
|
2006-09-12 20:17:15 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-root-server
|
|
|
|
.endif
|
|
|
|
|
2012-07-17 23:49:20 +00:00
|
|
|
.if empty(PORT_OPTIONS:MLARGEFILE)
|
2006-09-12 20:17:15 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-largefile
|
|
|
|
.endif
|
|
|
|
|
2012-07-17 10:36:25 +00:00
|
|
|
.if empty(PORT_OPTIONS:MIPV6)
|
2006-09-12 20:17:15 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2012-07-17 10:36:25 +00:00
|
|
|
.if ${PORT_OPTIONS:MBIND8_STATS}
|
|
|
|
CONFIGURE_ARGS+= --enable-bind8-stats
|
2006-09-12 20:17:15 +00:00
|
|
|
.endif
|
2002-09-09 21:38:19 +00:00
|
|
|
|
2012-07-17 10:36:25 +00:00
|
|
|
.if ${PORT_OPTIONS:MCHECKING}
|
2006-09-12 20:17:15 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-checking
|
|
|
|
.endif
|
2005-02-07 21:51:13 +00:00
|
|
|
|
2012-07-17 10:36:25 +00:00
|
|
|
.if empty(PORT_OPTIONS:MNSEC3)
|
2008-07-28 22:25:55 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-nsec3
|
2005-02-07 21:51:13 +00:00
|
|
|
.endif
|
|
|
|
|
2012-07-17 10:36:25 +00:00
|
|
|
.if empty(PORT_OPTIONS:MMINRESPSIZE)
|
2011-11-28 11:36:53 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-minimal-responses
|
|
|
|
.endif
|
|
|
|
|
2012-07-17 10:36:25 +00:00
|
|
|
.if empty(PORT_OPTIONS:MNSEC3PREHASH)
|
|
|
|
CONFIGURE_ARGS+= --disable-full-prehash
|
2010-05-09 11:22:47 +00:00
|
|
|
.endif
|
|
|
|
|
2012-07-17 10:36:25 +00:00
|
|
|
.if ${PORT_OPTIONS:MMMAP}
|
2010-05-09 11:22:47 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-mmap
|
2006-09-12 20:17:15 +00:00
|
|
|
.endif
|
|
|
|
|
2012-08-23 12:27:28 +00:00
|
|
|
.if ${PORT_OPTIONS:MMAXIPS}
|
2010-08-03 17:26:10 +00:00
|
|
|
CONFIGURE_ARGS+= --with-max-ips=${NSDMAX_IPS}
|
2008-07-28 22:25:55 +00:00
|
|
|
.endif
|
|
|
|
|
2013-02-05 09:42:31 +00:00
|
|
|
.if ${PORT_OPTIONS:MRRL}
|
|
|
|
CONFIGURE_ARGS+= --enable-ratelimit
|
|
|
|
.endif
|
|
|
|
|
2013-07-23 15:32:49 +00:00
|
|
|
.if ${PORT_OPTIONS:MEUI_RRTYPES}
|
|
|
|
CONFIGURE_ARGS+= --enable-draft-rrtypes
|
|
|
|
.endif
|
|
|
|
|
2006-09-12 20:17:15 +00:00
|
|
|
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
|
2005-02-07 21:51:13 +00:00
|
|
|
.endif
|
2004-05-29 12:23:56 +00:00
|
|
|
|
2002-09-09 21:38:19 +00:00
|
|
|
post-install:
|
2006-09-12 20:17:15 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/nsd.conf.sample \
|
2008-07-28 22:25:55 +00:00
|
|
|
${PREFIX}/etc/nsd/nsd.conf.sample
|
2012-07-17 10:36:25 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2004-05-29 12:23:56 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in ${PORTDOCS}
|
2006-09-12 20:17:15 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}/${f}
|
2004-05-29 12:23:56 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2010-02-11 19:37:10 +00:00
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2004-05-29 12:23:56 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2002-09-09 21:38:19 +00:00
|
|
|
|
2012-07-17 10:36:25 +00:00
|
|
|
.include <bsd.port.mk>
|