wok-current view libcap/receipt @ rev 24603

inxi: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 02 09:21:45 2022 +0000 (2022-03-02)
parents 675c9264bc6a
children 49fea3305133
line source
1 # SliTaz package receipt.
3 PACKAGE="libcap"
4 VERSION="2.33"
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="http://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"
15 BUILD_DEPENDS="attr-dev gperf 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 sed -i 's|INCLUDE_GPERF_OUTPUT = |&-include stddef.h |' \
35 libcap/Makefile
37 make DYNAMIC=yes ${ARCH_ARGS} &&
38 make RAISE_SETCAP=no DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/lib
46 cp -a $install/lib/*.so* $fs/lib
47 chmod +x $fs/lib/*
48 cp -a $install/sbin $fs
49 }