opt/nsd/Pkgfile

33 lines
723 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
2022-11-10 10:36:33 +01:00
version=4.6.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
2021-04-08 12:42:02 +02:00
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-dbfile=/var/lib/nsd/nsd.db \
--with-pidfile=/run/nsd/nsd.pid \
--with-xfrdir=/run/nsd \
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
chown nsd:nsd $PKG/var/lib/nsd
rm -r $PKG/run
2018-05-22 12:57:23 +02:00
}