wok-next view unbound/receipt @ rev 20765

Up cookutils (1066); add xmahjongg
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 06 00:54:44 2018 +0300 (2018-06-06)
parents 757d032c55c7
children e7a485521d6a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="unbound"
4 VERSION="1.6.7"
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://www.unbound.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://www.unbound.net/downloads/$TARBALL"
14 BUILD_DEPENDS="openssl-dev expat-dev"
15 SPLIT="unbound-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 }