wok-next view libcap/receipt @ rev 21607

updated duviz (09032015 -> 1.1.1)
author Hans-G?nter Theisgen
date Thu Jun 25 09:45:57 2020 +0100 (2020-06-25)
parents a43eb412173d
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libcap"
4 VERSION="2.26"
5 CATEGORY="system-tools"
6 SHORT_DESC="Support for getting/setting POSIX.1e capabilities"
7 MAINTAINER="devel@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="pam-dev attr-dev perl" # no gperf:
16 # libcap-2.25 incompatible with gperf 3.1: https://bugs.gentoo.org/604802
17 SPLIT="$PACKAGE-pam $PACKAGE $PACKAGE-dev"
19 compile_rules() {
20 # Prevent a static library from being installed
21 sed -i '/install.*STALIBNAME/d' libcap/Makefile
23 make &&
24 make \
25 RAISE_SETFCAP=no \
26 lib=lib \
27 prefix=/usr \
28 install || return 1
30 chmod 755 $install/usr/lib/libcap.so
31 mkdir $install/lib
32 mv $install/usr/lib/libcap.so.* $install/lib
33 ln -sf ../../lib/$(readlink $install/usr/lib/libcap.so) \
34 $install/usr/lib/libcap.so
36 # fix pc on x86_64
37 sed -i 's|lib64|lib|' $install/usr/lib/pkgconfig/libcap.pc
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 libcap-pam)
43 copy pam_cap.so
44 CAT="system-tools|PAM module"
45 PROVIDE="libcap:pam"
46 DEPENDS="libcap pam"
47 ;;
48 libcap)
49 copy @std @rm
50 DEPENDS="attr"
51 TAGS="LFS"
52 ;;
53 *-dev) copy @dev;;
54 esac
55 }