wok-next view libcap/receipt @ rev 20567

xfe: update receipt; qt5: undo `fix math`
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Apr 11 01:07:35 2018 +0300 (2018-04-11)
parents 90a5eb560fd6
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libcap"
4 VERSION="2.25"
5 CATEGORY="system-tools"
6 SHORT_DESC="Support for getting/setting POSIX.1e capabilities"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://sites.google.com/site/fullycapable/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/libcap.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$TARBALL"
15 BUILD_DEPENDS_arm="gperf pam-dev attr-dev"
16 BUILD_DEPENDS="pam-dev attr-dev perl" # no gperf:
17 # libcap-2.25 incompatible with gperf 3.1: https://bugs.gentoo.org/604802
18 SPLIT="libcap-pam libcap libcap-dev"
20 compile_rules() {
21 # Handle cross compilation.
22 case "$ARCH" in
23 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;;
24 esac
26 # Prevent a static library from being installed
27 sed -i '/install.*STALIBNAME/d' libcap/Makefile
29 make $ARCH_ARGS &&
30 make \
31 RAISE_SETFCAP=no \
32 lib=lib \
33 prefix=/usr \
34 install || return 1
36 chmod 755 $install/usr/lib/libcap.so
37 mkdir $install/lib
38 mv $install/usr/lib/libcap.so.* $install/lib
39 ln -sf ../../lib/$(readlink $install/usr/lib/libcap.so) \
40 $install/usr/lib/libcap.so
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 libcap-pam)
46 copy pam_cap.so
47 CAT="system-tools|PAM module"
48 PROVIDE="libcap:pam"
49 DEPENDS="libcap pam"
50 ;;
51 libcap)
52 copy @std @rm
53 DEPENDS="attr"
54 TAGS="LFS"
55 ;;
56 *-dev) copy @dev;;
57 esac
58 }