wok-next annotate 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 |
rev | line source |
---|---|
al@19745 | 1 # SliTaz package receipt v2. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="libcap" |
al@19571 | 4 VERSION="2.25" |
pankso@211 | 5 CATEGORY="system-tools" |
al@19745 | 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@20436 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/libcap.html" |
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 |
al@20436 | 15 BUILD_DEPENDS_arm="gperf pam-dev attr-dev" |
al@20440 | 16 BUILD_DEPENDS="pam-dev attr-dev perl" # no gperf: |
al@20440 | 17 # libcap-2.25 incompatible with gperf 3.1: https://bugs.gentoo.org/604802 |
al@20436 | 18 SPLIT="libcap-pam libcap libcap-dev" |
pankso@16236 | 19 |
al@20436 | 20 compile_rules() { |
al@20436 | 21 # Handle cross compilation. |
al@20436 | 22 case "$ARCH" in |
al@20436 | 23 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;; |
al@20436 | 24 esac |
pascal@15472 | 25 |
al@20436 | 26 # Prevent a static library from being installed |
al@19571 | 27 sed -i '/install.*STALIBNAME/d' libcap/Makefile |
al@19571 | 28 |
al@19571 | 29 make $ARCH_ARGS && |
al@20436 | 30 make \ |
al@20436 | 31 RAISE_SETFCAP=no \ |
al@20436 | 32 lib=lib \ |
al@20436 | 33 prefix=/usr \ |
al@20436 | 34 install || return 1 |
al@19571 | 35 |
al@19571 | 36 chmod 755 $install/usr/lib/libcap.so |
al@19571 | 37 mkdir $install/lib |
al@19571 | 38 mv $install/usr/lib/libcap.so.* $install/lib |
al@19571 | 39 ln -sf ../../lib/$(readlink $install/usr/lib/libcap.so) \ |
al@19571 | 40 $install/usr/lib/libcap.so |
pankso@6 | 41 } |
pankso@6 | 42 |
al@20436 | 43 genpkg_rules() { |
al@19745 | 44 case $PACKAGE in |
pascal@20280 | 45 libcap-pam) |
al@20436 | 46 copy pam_cap.so |
al@20292 | 47 CAT="system-tools|PAM module" |
pascal@20280 | 48 PROVIDE="libcap:pam" |
pascal@20280 | 49 DEPENDS="libcap pam" |
al@20436 | 50 ;; |
al@20436 | 51 libcap) |
al@20436 | 52 copy @std @rm |
al@20436 | 53 DEPENDS="attr" |
al@20436 | 54 TAGS="LFS" |
pascal@20280 | 55 ;; |
al@19745 | 56 *-dev) copy @dev;; |
al@19745 | 57 esac |
pankso@6 | 58 } |