opt/nsd/Pkgfile

34 lines
751 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 libevent
2018-05-22 12:57:23 +02:00
name=nsd
2024-04-05 13:27:27 +02:00
version=4.9.1
2018-05-22 12:57:23 +02:00
release=1
source=(http://www.nlnetlabs.nl/downloads/nsd/$name-$version.tar.gz
README pre-install nsd)
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
2024-04-05 13:27:27 +02:00
autoreconf -i
2021-04-08 12:42:02 +02:00
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-pidfile=/run/nsd/nsd.pid \
--with-xfrdir=/run/nsd \
2024-04-05 13:27:27 +02:00
--with-xfrdfile=/run/nsd/xfrd.state \
--with-zonelistfile=/run/nsd/zone.list \
2021-04-08 12:42:02 +02:00
--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 $SRC/nsd $PKG/etc/rc.d/nsd
2021-04-08 12:42:02 +02:00
rm -r $PKG/run
2018-05-22 12:57:23 +02:00
}