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
|
2018-05-04 10:49:30 +02:00
|
|
|
version=1.7.1
|
2014-03-13 11:54:32 +01:00
|
|
|
release=1
|
2017-06-28 12:16:02 +02:00
|
|
|
source=(https://unbound.net/downloads/$name-$version.tar.gz
|
2010-06-19 17:13:17 +02:00
|
|
|
unbound)
|
|
|
|
|
|
|
|
build () {
|
2014-03-13 11:54:32 +01:00
|
|
|
cd $name-$version
|
|
|
|
|
2010-06-19 17:13:17 +02:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-pidfile=/var/run/unbound.pid \
|
2012-05-24 21:10:54 +02:00
|
|
|
--with-chroot-dir=/etc/unbound \
|
|
|
|
--with-rootkey-file=/etc/unbound/anchor/root.key \
|
2010-06-19 17:13:17 +02:00
|
|
|
--disable-shared \
|
2015-06-24 15:12:53 +02:00
|
|
|
--disable-flto \
|
2014-03-13 11:54:32 +01:00
|
|
|
--with-username=unbound
|
2010-08-03 19:14:39 +02:00
|
|
|
|
2010-06-19 17:13:17 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2015-12-10 16:22:31 +01:00
|
|
|
rm -r $PKG/usr/{lib,include,share/man/man3}
|
2010-11-08 18:16:33 +01:00
|
|
|
|
2012-05-24 21:10:54 +02:00
|
|
|
install -d -o unbound -g unbound $PKG/etc/unbound/anchor
|
2010-06-19 17:13:17 +02:00
|
|
|
install -D -m 755 $SRC/unbound $PKG/etc/rc.d/unbound
|
|
|
|
}
|