opt/unbound/Pkgfile

35 lines
906 B
Plaintext
Raw Normal View History

2010-06-19 17:13:17 +02:00
# Description: Validating, recursive, and caching DNS resolver
# URL: http://unbound.net/index.html
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: openssl expat
2010-06-19 17:13:17 +02:00
name=unbound
2011-01-24 16:56:00 +01:00
version=1.4.8
2010-06-19 17:13:17 +02:00
release=1
source=(http://unbound.net/downloads/$name-$version.tar.gz
unbound)
build () {
cd $name-$version
./configure --prefix=/usr \
--mandir=/usr/man \
--sysconfdir=/etc \
--with-pidfile=/var/run/unbound.pid \
--disable-shared \
--with-username=unbound \
--with-ldns-builtin
2010-08-03 19:14:39 +02:00
2010-06-19 17:13:17 +02:00
make -C ldns-src
make
make DESTDIR=$PKG install
rm -r $PKG/usr/{lib,include,man/man3}
sed -i '314s/# //' $PKG/etc/unbound/unbound.conf
touch $PKG/etc/unbound/root.key
chown unbound $PKG/etc/unbound/root.key
2010-06-19 17:13:17 +02:00
install -D -m 755 $SRC/unbound $PKG/etc/rc.d/unbound
}