wok-6.x view libcap/receipt @ rev 23953
mrxvt-unicode: modified dependencies
author | Hans-G?nter Theisgen |
---|---|
date | Tue Sep 22 16:18:32 2020 +0100 (2020-09-22) |
parents | fd77b7a17bd3 |
children | 5d79829fa876 |
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 # Handle cross compilation.
20 case "$ARCH" in
21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;;
22 arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|INCLUDE_GPERF_OUTPUT = |&-include stddef.h |' \
29 libcap/Makefile
31 make DYNAMIC=yes ${ARCH_ARGS} &&
32 make RAISE_SETCAP=no DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/lib
40 cp -a $install/lib/*.so* $fs/lib
41 chmod +x $fs/lib/*
42 cp -a $install/sbin $fs
43 }