wok-6.x annotate libcap/receipt @ rev 24495
updated dolibarr again (10.0.6 -> 14.0.5)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 19 13:42:19 2022 +0100 (2022-02-19) |
parents | 675c9264bc6a |
children | 49fea3305133 |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="libcap" |
Hans-G?nter@23015 | 4 VERSION="2.33" |
pankso@211 | 5 CATEGORY="system-tools" |
Hans-G?nter@23015 | 6 SHORT_DESC="Support for getting and setting POSIX.1e capabilities." |
pankso@6 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15472 | 8 LICENSE="BSD" |
Hans-G?nter@23015 | 9 WEB_SITE="http://sites.google.com/site/fullycapable/" |
Hans-G?nter@23015 | 10 |
devl547@17650 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@23016 | 12 WGET_URL="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$TARBALL" |
pankso@6 | 13 |
pankso@16236 | 14 DEPENDS="attr" |
Hans-G?nter@23015 | 15 BUILD_DEPENDS="attr-dev gperf pam-dev" |
Hans-G?nter@23015 | 16 |
Hans-G?nter@23015 | 17 HOST_ARCH="i486 arm" |
pankso@16236 | 18 |
pascal@24072 | 19 current_version() |
pascal@24072 | 20 { |
pascal@24072 | 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 23 } |
pascal@24072 | 24 |
pankso@16236 | 25 # Handle cross compilation. |
pankso@16236 | 26 case "$ARCH" in |
pankso@16236 | 27 i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;; |
pankso@16236 | 28 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;; |
pankso@16236 | 29 esac |
pascal@15472 | 30 |
pankso@6 | 31 # Rules to configure and make the package. |
pankso@6 | 32 compile_rules() |
pankso@6 | 33 { |
Hans-G?nter@23015 | 34 sed -i 's|INCLUDE_GPERF_OUTPUT = |&-include stddef.h |' \ |
Hans-G?nter@23015 | 35 libcap/Makefile |
Hans-G?nter@23015 | 36 |
pankso@16236 | 37 make DYNAMIC=yes ${ARCH_ARGS} && |
slaxemulator@10133 | 38 make RAISE_SETCAP=no DESTDIR=$DESTDIR install |
pankso@6 | 39 } |
pankso@6 | 40 |
pankso@6 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 42 genpkg_rules() |
pankso@6 | 43 { |
pascal@2197 | 44 mkdir -p $fs/lib |
Hans-G?nter@23015 | 45 |
Hans-G?nter@23015 | 46 cp -a $install/lib/*.so* $fs/lib |
pascal@23897 | 47 chmod +x $fs/lib/* |
Hans-G?nter@23015 | 48 cp -a $install/sbin $fs |
pankso@6 | 49 } |