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