ports/opt (3.4): nsd: initial release
commit c974a998fb52cb83e5afe964f06c81da18276f5d Author: Juergen Daubert <jue@jue.li> Date: Tue May 22 12:57:23 2018 +0200 nsd: initial release diff --git a/nsd/.footprint b/nsd/.footprint new file mode 100644 index 000000000..335177fe9 --- /dev/null +++ b/nsd/.footprint @@ -0,0 +1,27 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/nsd/ +-rw-r--r-- root/root etc/nsd/nsd.conf.sample +drwxr-xr-x root/root etc/rc.d/ +lrwxrwxrwx root/root etc/rc.d/nsd -> /usr/sbin/nsd-control +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/nsd +-rwxr-xr-x root/root usr/sbin/nsd-checkconf +-rwxr-xr-x root/root usr/sbin/nsd-checkzone +-rwxr-xr-x root/root usr/sbin/nsd-control +-rwxr-xr-x root/root usr/sbin/nsd-control-setup +-rwxr-xr-x root/root usr/sbin/nsd-mem +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man5/ +-rw-r--r-- root/root usr/share/man/man5/nsd.conf.5.gz +drwxr-xr-x root/root usr/share/man/man8/ +-rw-r--r-- root/root usr/share/man/man8/nsd-checkconf.8.gz +-rw-r--r-- root/root usr/share/man/man8/nsd-checkzone.8.gz +-rw-r--r-- root/root usr/share/man/man8/nsd-control.8.gz +-rw-r--r-- root/root usr/share/man/man8/nsd.8.gz +drwxr-xr-x root/root var/ +drwxr-xr-x root/root var/lib/ +drwxr-xr-x nsd/root var/lib/nsd/ +drwxr-xr-x root/root var/run/ +drwxr-xr-x nsd/root var/run/nsd/ diff --git a/nsd/.md5sum b/nsd/.md5sum new file mode 100644 index 000000000..ee49d512c --- /dev/null +++ b/nsd/.md5sum @@ -0,0 +1,3 @@ +f2dfe59bfa5a2335b51ceb7a49721431 README +aed89f4140255593d06173c0ed2f449b nsd-4.1.21.tar.gz +ba15650a7a4537405ccfef93bcce9861 pre-install diff --git a/nsd/.signature b/nsd/.signature new file mode 100644 index 000000000..0576a2722 --- /dev/null +++ b/nsd/.signature @@ -0,0 +1,7 @@ +untrusted comment: verify with /etc/ports/opt.pub +RWSE3ohX2g5d/SLJDTWG7HKc76489pEZYiI4tEACOhbDaxiTVzJORgF8PF6xxau78Z0HJzfhgg8ZfDQ9vgNyRE4r7c3axNAkIgQ= +SHA256 (Pkgfile) = a3538a2786e8f29a460b208e4628e0046f8c2d92a49da6710977458ae17998ac +SHA256 (.footprint) = e7c1c5de89399eb933cfdad3ceff7b6500a1726c7d8388d9ee9dfabcef8545bf +SHA256 (nsd-4.1.21.tar.gz) = 7858b934a07e1582079d7e724b05855380416b7fd68cdaeeca16305bd66bd2bd +SHA256 (README) = 51f2d1be262d49465c151957ab4298dd41b8aa1d3c261833291b21cb8a495eab +SHA256 (pre-install) = e33d6afaeb2ed8d9e959b03a047fbf6761d857e9f5ffdf1d10739155f48f4660 diff --git a/nsd/Pkgfile b/nsd/Pkgfile new file mode 100644 index 000000000..b4ccc0845 --- /dev/null +++ b/nsd/Pkgfile @@ -0,0 +1,32 @@ +# Description: Authoritative only, high performance name server +# URL: http://www.nlnetlabs.nl/projects/nsd/ +# Maintainer: Juergen Daubert, jue at crux dot nu +# Depends on: openssl + +name=nsd +version=4.1.21 +release=1 +source=(http://www.nlnetlabs.nl/downloads/nsd/$name-$version.tar.gz + README pre-install) + +build () { + cd $name-$version + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-dbfile=/var/lib/nsd/nsd.db \ + --with-pidfile=/var/run/nsd/nsd.pid \ + --with-xfrdir=/var/run/nsd \ + --without-libevent \ + --with-user=nsd + + make CFLAGS="$CFLAGS -Wall -Wno-cpp" all nsd-mem + make DESTDIR=$PKG install + + install -m 0755 nsd-mem $PKG/usr/sbin + install -d $PKG/etc/rc.d + ln -s /usr/sbin/nsd-control $PKG/etc/rc.d/nsd + + chown nsd $PKG/var/{lib,run}/nsd +} diff --git a/nsd/README b/nsd/README new file mode 100644 index 000000000..a441a04dd --- /dev/null +++ b/nsd/README @@ -0,0 +1,16 @@ +README for nsd 3.2.x + +REQUIREMENTS + +PRE-INSTALL + +1. Create a user/group nsd with a unused id < 99: + + 'groupadd -g 47 nsd' + 'useradd -u 47 -g nsd -d /var/lib/nsd -s /bin/false nsd' + 'passwd -l nsd' + + or run the supplied pre-install script. + +PRECAUTION + diff --git a/nsd/pre-install b/nsd/pre-install new file mode 100644 index 000000000..57d7ea71e --- /dev/null +++ b/nsd/pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +getent group nsd || /usr/sbin/groupadd -g 47 nsd +getent passwd nsd || /usr/sbin/useradd -g nsd -u 47 -d /var/lib/nsd -s /bin/false nsd +/usr/bin/passwd -l nsd +
participants (1)
-
crux@crux.nu