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