wok-next annotate libcap/receipt @ rev 19725
Up lives (2.8.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 25 11:14:35 2017 +0200 (2017-05-25) |
parents | ee294d252003 |
children | 9a17d981d0f7 |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="libcap" |
al@19571 | 4 VERSION="2.25" |
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" |
al@19571 | 9 WEB_SITE="https://sites.google.com/site/fullycapable/" |
al@19571 | 10 HOST_ARCH="i486 arm" |
al@19571 | 11 |
devl547@17650 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19571 | 13 WGET_URL="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$TARBALL" |
pankso@6 | 14 |
pankso@16236 | 15 DEPENDS="attr" |
pankso@16236 | 16 BUILD_DEPENDS="gperf pam-dev attr-dev" |
pankso@16236 | 17 |
pankso@16236 | 18 # Handle cross compilation. |
pankso@16236 | 19 case "$ARCH" in |
pankso@16236 | 20 i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;; |
pankso@16236 | 21 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;; |
pankso@16236 | 22 esac |
pascal@15472 | 23 |
pankso@6 | 24 # Rules to configure and make the package. |
pankso@6 | 25 compile_rules() |
pankso@6 | 26 { |
al@19571 | 27 sed -i '/install.*STALIBNAME/d' libcap/Makefile |
al@19571 | 28 |
al@19571 | 29 make $ARCH_ARGS && |
al@19571 | 30 make RAISE_SETFCAP=no prefix=/usr install |
al@19571 | 31 |
al@19571 | 32 chmod 755 $install/usr/lib/libcap.so |
al@19571 | 33 mkdir $install/lib |
al@19571 | 34 mv $install/usr/lib/libcap.so.* $install/lib |
al@19571 | 35 ln -sf ../../lib/$(readlink $install/usr/lib/libcap.so) \ |
al@19571 | 36 $install/usr/lib/libcap.so |
pankso@6 | 37 } |
pankso@6 | 38 |
pankso@6 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 40 genpkg_rules() |
pankso@6 | 41 { |
al@19571 | 42 cook_copy_folders sbin |
al@19571 | 43 cook_copy_files *.so* |
pankso@6 | 44 } |