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
|
2010-11-08 18:16:33 +01:00
|
|
|
# Depends on: openssl expat
|
2010-06-19 17:13:17 +02:00
|
|
|
|
|
|
|
name=unbound
|
2011-09-16 10:14:43 +02:00
|
|
|
version=1.4.13
|
2010-06-19 17:13:17 +02:00
|
|
|
release=1
|
2011-05-26 17:35:33 +02:00
|
|
|
source=(http://www.unbound.net/downloads/$name-$version.tar.gz
|
2011-07-15 12:22:35 +02:00
|
|
|
http://www.nlnetlabs.nl/downloads/ldns/ldns-1.6.10.tar.gz
|
2010-06-19 17:13:17 +02:00
|
|
|
unbound)
|
|
|
|
|
|
|
|
build () {
|
2011-07-15 12:22:35 +02:00
|
|
|
cd ldns-1.6.10
|
|
|
|
./configure --disable-shared
|
|
|
|
make
|
2010-06-19 17:13:17 +02:00
|
|
|
|
2011-07-15 12:22:35 +02:00
|
|
|
cd ../$name-$version
|
2010-06-19 17:13:17 +02:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-pidfile=/var/run/unbound.pid \
|
|
|
|
--disable-shared \
|
2010-11-08 18:16:33 +01:00
|
|
|
--with-username=unbound \
|
2011-07-15 12:22:35 +02:00
|
|
|
--with-ldns=../ldns-1.6.10
|
2010-08-03 19:14:39 +02:00
|
|
|
|
2010-06-19 17:13:17 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
rm -r $PKG/usr/{lib,include,man/man3}
|
2010-11-08 18:16:33 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|