opt/nsd/Pkgfile

34 lines
761 B
Plaintext
Raw Normal View History

2018-05-22 12:57:23 +02:00
# Description: Authoritative only, high performance name server
2021-04-08 12:42:02 +02:00
# URL: http://www.nlnetlabs.nl/projects/nsd/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: openssl
2018-05-22 12:57:23 +02:00
name=nsd
2021-12-10 16:14:19 +01:00
version=4.3.9
2018-05-22 12:57:23 +02:00
release=1
source=(http://www.nlnetlabs.nl/downloads/nsd/$name-$version.tar.gz
2021-04-08 12:42:02 +02:00
README pre-install)
2018-05-22 12:57:23 +02:00
2021-04-08 12:42:02 +02:00
build() {
cd $name-$version
2018-05-22 12:57:23 +02:00
2021-04-08 12:42:02 +02:00
./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
2018-05-22 12:57:23 +02:00
2021-04-08 12:42:02 +02:00
make all nsd-mem
make DESTDIR=$PKG install
2018-05-22 12:57:23 +02:00
2021-04-08 12:42:02 +02:00
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
2018-05-22 12:57:23 +02:00
}