wok-6.x view libcap/receipt @ rev 23864
syslinux/isoboot.s: accept user args (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 19 17:01:11 2020 +0000 (2020-06-19) |
parents | 0a32887d9b8c |
children | 675c9264bc6a |
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 cp -a $install/sbin $fs
42 }