diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-11-01 01:27:32 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-11-01 01:27:32 +0800 |
commit | 81cc981e661236efe41f16faebf68adaead56dfb (patch) | |
tree | d3a90c9bc609590e35c1c7af3c11509cf41bbf4b /dns | |
parent | f0d40f968d651880d4ca32447998e7d50f812926 (diff) | |
download | freebsd-ports-gnome-81cc981e661236efe41f16faebf68adaead56dfb.tar.gz freebsd-ports-gnome-81cc981e661236efe41f16faebf68adaead56dfb.tar.zst freebsd-ports-gnome-81cc981e661236efe41f16faebf68adaead56dfb.zip |
NSD (Name Server Daemon) is a complete implementation of an
authoritative DNS nameserver.
WWW: http://www.nlnetlabs.nl/nsd
PR: ports/104469
Submitted by: oli at isnic.is
Diffstat (limited to 'dns')
-rw-r--r-- | dns/Makefile | 1 | ||||
-rw-r--r-- | dns/nsd2/Makefile | 103 | ||||
-rw-r--r-- | dns/nsd2/distinfo | 3 | ||||
-rw-r--r-- | dns/nsd2/files/nsd.sh.in | 31 | ||||
-rw-r--r-- | dns/nsd2/pkg-descr | 4 | ||||
-rw-r--r-- | dns/nsd2/pkg-message | 5 | ||||
-rw-r--r-- | dns/nsd2/pkg-plist | 8 |
7 files changed, 155 insertions, 0 deletions
diff --git a/dns/Makefile b/dns/Makefile index d3a5dc13da4c..082cad6b990f 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -59,6 +59,7 @@ SUBDIR += mydns SUBDIR += noip SUBDIR += nsd + SUBDIR += nsd2 SUBDIR += nslint SUBDIR += nsping SUBDIR += nss_resinit diff --git a/dns/nsd2/Makefile b/dns/nsd2/Makefile new file mode 100644 index 000000000000..2fe729076802 --- /dev/null +++ b/dns/nsd2/Makefile @@ -0,0 +1,103 @@ +# New ports collection makefile for: nsd2 +# Date created: 16 October 2006 +# Whom: oli@isnic.is +# +# $FreeBSD$ +# + +PORTNAME= nsd +PORTVERSION= 2.3.6 +CATEGORIES= dns ipv6 +MASTER_SITES= http://www.nlnetlabs.nl/downloads/nsd/ \ + ftp://ftp.rhnet.is/pub/nsd/ + +MAINTAINER= oli@isnic.is +COMMENT= An authoritative only non-recursive name server + +USE_RC_SUBR= nsd.sh +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-user=${NSDUSER} \ + --with-configdir=${NSDDIR} \ + --with-pidfile=/var/run/nsd.pid \ + --with-dbfile=${NSDDBFILE} \ + --with-libwrap +CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} + +OPTIONS= ROOT_SERVER "Configure NSD as a root server" Off \ + IPV6 "Enable IPv6 support" On \ + DNSSEC "Enable DNSSEC" On \ + AXFR "Enable AXFR" On \ + BIND8_STATS "Enable BIND8 like NSTATS & XSTATS" Off \ + NSID "Enable NSID support" Off \ + PLUGINS "Enable plugin support" Off \ + CHECKING "Enable internal runtime checks" Off \ + TSIG "Enable TSIG support" On \ + MMAP "Load database using mmap(2)" Off + +MAN8= nsd.8 nsdc.8 zonec.8 nsd-notify.8 nsd-xfer.8 + +PORTDOCS= CREDITS LICENSE NSD-DATABASE README README.icc \ + RELNOTES REQUIREMENTS TODO + +NSDUSER?= bind +NSDDIR?= ${PREFIX}/etc/nsd +NSDDBFILE?= /var/db/nsd.database + +SUB_LIST= NSDUSER="${NSDUSER}" \ + NSDDIR="${NSDDIR}" \ + NSDDBFILE="${NSDDBFILE}" + +.include <bsd.port.pre.mk> + +.if defined(WITH_ROOT_SERVER) +CONFIGURE_ARGS+= --enable-root-server +.endif + +.if defined(WITHOUT_IPV6) +CONFIGURE_ARGS+= --disable-ipv6 +.endif + +.if defined(WITHOUT_DNSSEC) +CONFIGURE_ARGS+= --disable-dnssec +.endif + +.if defined(WITHOUT_AXFR) +CONFIGURE_ARGS+= --disable-axfr +.endif + +.if defined(WITH_BIND8_STATS) +CONFIGURE_ARGS+= --enable-bind8-stats +.endif + +.if defined(WITH_NSID) +CONFIGURE_ARGS+= --enable-nsid +.endif + +.if defined(WITH_PLUGINS) +CONFIGURE_ARGS+= --enable-plugins +.endif + +.if defined(WITH_CHECKING) +CONFIGURE_ARGS+= --enable-checking +.endif + +.if defined(WITHOUT_TSIG) +CONFIGURE_ARGS+= --disable-tsig +.endif + +.if defined(WITH_MMAP) +CONFIGURE_ARGS+= --enable-mmap +.endif + +post-install: + ${INSTALL_DATA} ${WRKSRC}/nsd.zones.sample ${NSDDIR} + ${INSTALL_SCRIPT} ${WRKDIR}/nsd.sh ${PREFIX}/etc/rc.d +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/${f} +.endfor +.endif + @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} + +.include <bsd.port.post.mk> diff --git a/dns/nsd2/distinfo b/dns/nsd2/distinfo new file mode 100644 index 000000000000..0d51bb97b40c --- /dev/null +++ b/dns/nsd2/distinfo @@ -0,0 +1,3 @@ +MD5 (nsd-2.3.6.tar.gz) = 72428cdacc5bee63b4477becda27bf64 +SHA256 (nsd-2.3.6.tar.gz) = 9f90c4bd250c536a0d3cd1ef3f2814a446d5cf4c19d5093b363de81eca8b56d4 +SIZE (nsd-2.3.6.tar.gz) = 244341 diff --git a/dns/nsd2/files/nsd.sh.in b/dns/nsd2/files/nsd.sh.in new file mode 100644 index 000000000000..da99a593d964 --- /dev/null +++ b/dns/nsd2/files/nsd.sh.in @@ -0,0 +1,31 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: nsd +# REQUIRE: DAEMON +# +# Add the following line to /etc/rc.conf to enable nsd: +# +# nsd_enable="YES" +# + +. %%RC_SUBR%% + +name=nsd +rcvar=`set_rcvar` + +prefix=%%PREFIX%% + +required_files=%%NSDDIR%%/nsd.zones + +command=/usr/local/sbin/${name} +pidfile=/var/run/${name}.pid + +# set defaults + +nsd_enable=${nsd_enable:-"NO"} +nsd_flags=${nsd_flags:-""} + +load_rc_config ${name} +run_rc_command "$1" diff --git a/dns/nsd2/pkg-descr b/dns/nsd2/pkg-descr new file mode 100644 index 000000000000..1b42a0b144e2 --- /dev/null +++ b/dns/nsd2/pkg-descr @@ -0,0 +1,4 @@ +NSD (Name Server Daemon) is a complete implementation of an +authoritative DNS nameserver. + +WWW: http://www.nlnetlabs.nl/nsd diff --git a/dns/nsd2/pkg-message b/dns/nsd2/pkg-message new file mode 100644 index 000000000000..efc30df0a615 --- /dev/null +++ b/dns/nsd2/pkg-message @@ -0,0 +1,5 @@ +************************************************************************** +* * +* To run nsd from startup, add nsd_enable="YES" to your /etc/rc.conf * +* * +************************************************************************** diff --git a/dns/nsd2/pkg-plist b/dns/nsd2/pkg-plist new file mode 100644 index 000000000000..95d08a6e2698 --- /dev/null +++ b/dns/nsd2/pkg-plist @@ -0,0 +1,8 @@ +@comment $FreeBSD$ +etc/nsd/nsd.zones.sample +sbin/nsd +sbin/zonec +sbin/nsdc +sbin/nsd-notify +sbin/nsd-xfer +@dirrm etc/nsd |