wok-next view libcap/receipt @ rev 19591
Up dialog (1.3-20160828).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jan 21 15:37:43 2017 +0200 (2017-01-21) |
parents | ee294d252003 |
children | 9a17d981d0f7 |
line source
1 # SliTaz package receipt.
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 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$TARBALL"
15 DEPENDS="attr"
16 BUILD_DEPENDS="gperf pam-dev attr-dev"
18 # Handle cross compilation.
19 case "$ARCH" in
20 i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;;
21 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i '/install.*STALIBNAME/d' libcap/Makefile
29 make $ARCH_ARGS &&
30 make RAISE_SETFCAP=no prefix=/usr install
32 chmod 755 $install/usr/lib/libcap.so
33 mkdir $install/lib
34 mv $install/usr/lib/libcap.so.* $install/lib
35 ln -sf ../../lib/$(readlink $install/usr/lib/libcap.so) \
36 $install/usr/lib/libcap.so
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cook_copy_folders sbin
43 cook_copy_files *.so*
44 }