blob: 8805e1ac75db635c198a420a95aeca1c2092e1a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#!/bin/sh
NAME="unbound"
DESC="Unbound is a validating, recursive, and caching DNS resolver"
MAKEDEPS=" expat libevent openssl python swig linux-headers"
PKG_VER=1.15.0
SOURCE="https://unbound.net/downloads/unbound-$PKG_VER.tar.gz"
ADDITIONAL="
conf.patch
migrate-dnscache-to-unbound
unbound.confd
unbound.initd
"
prepare () {
apply_patches
}
build() {
PYTHON_VERSION=3 ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--with-username=unbound \
--with-run-dir="" \
--with-pidfile="" \
--with-rootkey-file=/usr/share/dnssec-root/trusted-key.key \
--with-libevent \
--with-pthreads \
--disable-static \
--disable-rpath \
--with-ssl \
--without-pythonmodule \
--with-pyunbound
# do not link to libpython
sed -i -e '/^LIBS=/s/-lpython.*[[:space:]]/ /' Makefile
make
}
check() {
make test
}
package() {
make DESTDIR="$PKG_DEST" install
make DESTDIR="$PKG_DEST" unbound-event-install
install -Dm755 contrib/update-anchor.sh \
"$PKG_DEST"/usr/share/unbound/update-anchor.sh
mkdir -p "$PKG_DEST"/usr/share/doc/unbound/
install -m644 doc/CREDITS doc/Changelog doc/FEATURES \
doc/README doc/TODO "$PKG_DEST"/usr/share/doc/unbound/
install -Dm755 "$BUILD_ROOT"/unbound.initd $PKG_DEST/etc/init.d/unbound
install -Dm644 "$BUILD_ROOT"/unbound.confd $PKG_DEST/etc/conf.d/unbound
}
|