wok-6.x view libcap/receipt @ rev 15686
Fix wrong name for debootstrap
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sat Dec 21 07:38:57 2013 +0100 (2013-12-21) |
parents | 69557c05e267 |
children | ac2ee8823dfa |
line source
1 # SliTaz package receipt.
3 PACKAGE="libcap"
4 VERSION="2.19"
5 CATEGORY="system-tools"
6 SHORT_DESC="Support for getting/setting POSIX.1e capabilities."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://sites.google.com/site/fullycapable/"
11 WGET_URL="http://ftp.df.lth.se/pub/linux/libs/security/linux-privs/libcap2/$TARBALL"
13 DEPENDS="linux glibc-base attr"
14 BUILD_DEPENDS="slitaz-toolchain gperf pam pam-dev attr-dev perl"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # if [ ! -d $WOK/linux/taz ]; then
20 # if [ -x /usr/bin/cook ]; then
21 # cook linux
22 # else
23 # tazwok cook linux
24 # fi
25 # fi
26 cd $src
27 # sed -i -e s/'\\n'/"' -e '1i"/g -e 's/| indent -kr//' libcap/Makefile
28 # mkdir -p libcap/include/attr
29 # ln -s $WOK/linux/$(ls $WOK/linux/taz)/include/linux/xattr.h \
30 # libcap/include/attr/
32 # Linux headers are now sanitized properly for userspace, so patch libcap
33 # Based on http://bugs.gentoo.org/265304 and http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg183775.html
34 [ $(grep -c "#define __user" < libcap/include/sys/capability.h) -eq 0 ] || patch -p1 << EOP
35 --- libcap-2.16/libcap/include/sys/capability.h.orig 2009-03-05 11:19:00.000000000 -0300
36 +++ libcap-2.16/libcap/include/sys/capability.h 2009-03-05 11:19:38.000000000 -0300
37 @@ -22,18 +22,6 @@ extern "C" {
38 #include <sys/types.h>
39 #include <stdint.h>
41 -/*
42 - * Make sure we can be included from userland by preventing
43 - * capability.h from including other kernel headers
44 - */
45 -#define _LINUX_TYPES_H
46 -#define _LINUX_FS_H
47 -#define __LINUX_COMPILER_H
48 -#define __user
49 -
50 -typedef unsigned int __u32;
51 -typedef __u32 __le32;
52 -
53 #include <linux/capability.h>
55 /*
56 EOP
58 sed -i -e 's/\} __user \*cap_user_/\} \*cap_user_/g' libcap/include/linux/capability.h
59 make DYNAMIC=yes &&
60 make RAISE_SETCAP=no DESTDIR=$DESTDIR install
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 mkdir -p $fs/lib
67 cp -a $install/lib/*.so* $fs/lib
68 cp -a $install/sbin $fs
69 }