wok-next view libcap/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | c67938ec0e0e |
children | a43eb412173d |
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="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
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 libcap-pam)
40 copy pam_cap.so
41 CAT="system-tools|PAM module"
42 PROVIDE="libcap:pam"
43 DEPENDS="libcap pam"
44 ;;
45 libcap)
46 copy @std @rm
47 DEPENDS="attr"
48 TAGS="LFS"
49 ;;
50 *-dev) copy @dev;;
51 esac
52 }