wok annotate libcap/receipt @ rev 22826
Down rage (55225)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 07 16:15:46 2020 +0100 (2020-02-07) |
parents | ee294d252003 |
children | 0a32887d9b8c |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="libcap" |
devl547@17650 | 4 VERSION="2.24" |
pankso@211 | 5 CATEGORY="system-tools" |
pankso@6 | 6 SHORT_DESC="Support for getting/setting POSIX.1e capabilities." |
pankso@6 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15472 | 8 LICENSE="BSD" |
devl547@17650 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@12722 | 10 WEB_SITE="http://sites.google.com/site/fullycapable/" |
pascal@12721 | 11 WGET_URL="http://ftp.df.lth.se/pub/linux/libs/security/linux-privs/libcap2/$TARBALL" |
pankso@16236 | 12 HOST_ARCH="i486 arm" |
pankso@6 | 13 |
pankso@16236 | 14 DEPENDS="attr" |
pankso@16236 | 15 BUILD_DEPENDS="gperf pam-dev attr-dev" |
pankso@16236 | 16 |
pankso@16236 | 17 # Handle cross compilation. |
pankso@16236 | 18 case "$ARCH" in |
pankso@16236 | 19 i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;; |
pankso@16236 | 20 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;; |
pankso@16236 | 21 esac |
pascal@15472 | 22 |
pankso@6 | 23 # Rules to configure and make the package. |
pankso@6 | 24 compile_rules() |
pankso@6 | 25 { |
pascal@22352 | 26 sed -i 's|INCLUDE_GPERF_OUTPUT = |&-include stddef.h |' libcap/Makefile |
pankso@16236 | 27 make DYNAMIC=yes ${ARCH_ARGS} && |
slaxemulator@10133 | 28 make RAISE_SETCAP=no DESTDIR=$DESTDIR install |
pankso@6 | 29 } |
pankso@6 | 30 |
pankso@6 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 32 genpkg_rules() |
pankso@6 | 33 { |
pascal@2197 | 34 mkdir -p $fs/lib |
pascal@15472 | 35 cp -a $install/lib/*.so* $fs/lib |
pascal@15472 | 36 cp -a $install/sbin $fs |
pankso@6 | 37 } |