wok-next view unbound/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents e7a485521d6a
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="unbound"
4 VERSION="1.7.3"
5 CATEGORY="network"
6 SHORT_DESC="A validating, recursive, and caching DNS resolver"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://nlnetlabs.nl/projects/unbound/about/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://www.unbound.net/downloads/$TARBALL" # FIXME
14 BUILD_DEPENDS="openssl-dev expat-dev"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 # Do we need static libraries?
19 # Their presence leads to an error on post-compilation stage while stripping:
20 # strip: alloc.o: plugin needed to handle lto object
21 # (and so many linies, moved to /dev/null)
22 # ar: alloc.o: plugin needed to handle lto object
23 # (and so on...)
24 # Actual commands in the modules/compressor:
25 # find $fs -name '*.a' -exec $STRIP -d '{}' 2>/dev/null \;
26 # ar -x $i; ar -crD $(basename $i) *
28 ./configure \
29 --disable-static \
30 $CONFIGURE_ARGS &&
31 fix libtool &&
32 make &&
33 make install
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 unbound)
39 copy @std
40 DEPENDS="expat openssl"
41 CONFIG_FILES="/etc/unbound/"
42 ;;
43 *-dev)
44 copy @dev
45 DEPENDS="unbound openssl-dev"
46 ;;
47 esac
48 }
50 post_install_unbound() {
51 [ -d "$1/var/lib/unbound" ] || mkdir -p "$1/var/lib/unbound"
52 chroot "$1/" adduser -S -H -h /var/lib/unbound -D unbound 2>/dev/null
53 chroot "$1/" chown unbound /var/lib/unbound
54 chroot "$1/" unbound-anchor -a /var/lib/unbound/root.key
55 :
56 }