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