wok-current annotate libcap/receipt @ rev 23897
Down busybox (1.31.1) : 1.32 breaks boot display and ${COOKOPTS/!someopt/} in cookutils
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 28 06:08:41 2020 +0000 (2020-07-28) |
parents | fd77b7a17bd3 |
children | 5d79829fa876 |
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 |
pankso@16236 | 19 # Handle cross compilation. |
pankso@16236 | 20 case "$ARCH" in |
pankso@16236 | 21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;; |
pankso@16236 | 22 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;; |
pankso@16236 | 23 esac |
pascal@15472 | 24 |
pankso@6 | 25 # Rules to configure and make the package. |
pankso@6 | 26 compile_rules() |
pankso@6 | 27 { |
Hans-G?nter@23015 | 28 sed -i 's|INCLUDE_GPERF_OUTPUT = |&-include stddef.h |' \ |
Hans-G?nter@23015 | 29 libcap/Makefile |
Hans-G?nter@23015 | 30 |
pankso@16236 | 31 make DYNAMIC=yes ${ARCH_ARGS} && |
slaxemulator@10133 | 32 make RAISE_SETCAP=no DESTDIR=$DESTDIR install |
pankso@6 | 33 } |
pankso@6 | 34 |
pankso@6 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 36 genpkg_rules() |
pankso@6 | 37 { |
pascal@2197 | 38 mkdir -p $fs/lib |
Hans-G?nter@23015 | 39 |
Hans-G?nter@23015 | 40 cp -a $install/lib/*.so* $fs/lib |
pascal@23897 | 41 chmod +x $fs/lib/* |
Hans-G?nter@23015 | 42 cp -a $install/sbin $fs |
pankso@6 | 43 } |