wok-current view libcap/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents e53dd413c6de
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libcap"
4 VERSION="2.63"
5 CATEGORY="system-tools"
6 SHORT_DESC="Support for getting and setting POSIX.1e capabilities."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://sites.google.com/site/fullycapable/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$TARBALL"
14 DEPENDS="attr gcc-lib-base"
15 BUILD_DEPENDS="attr-dev gcc gperf bash pam-dev"
17 HOST_ARCH="i486 arm"
19 current_version()
20 {
21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Handle cross compilation.
26 case "$ARCH" in
27 i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;;
28 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 make \
35 CC=gcc \
36 DYNAMIC=yes \
37 lib=lib \
38 prefix=usr \
39 $ARCH_ARGS &&
40 make install \
41 RAISE_SETCAP=no \
42 DESTDIR=$DESTDIR
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/lib
50 cp -a $install/lib/*.so* $fs/lib
51 chmod +x $fs/lib/*
52 cook_copy_folders sbin
53 }