summaryrefslogtreecommitdiff
path: root/libcap
diff options
context:
space:
mode:
authorAntti Nykanen <aon@iki.fi>2007-03-25 12:41:38 +0300
committerAntti Nykanen <aon@iki.fi>2007-03-25 12:41:38 +0300
commit4ce9774377fa7f21ce0ce9eea172998636bad97e (patch)
treedf4d20dc9afd144d099241386d2868fb26926c68 /libcap
parent60d1944065f22e63e82dc9942645912b92b847e4 (diff)
downloadcontrib-4ce9774377fa7f21ce0ce9eea172998636bad97e.tar.gz
contrib-4ce9774377fa7f21ce0ce9eea172998636bad97e.tar.xz
libcap: patch to compile with new headers
Diffstat (limited to 'libcap')
-rw-r--r--libcap/.md5sum1
-rw-r--r--libcap/Pkgfile6
-rw-r--r--libcap/libcap-1.10-cap_sys.patch18
3 files changed, 23 insertions, 2 deletions
diff --git a/libcap/.md5sum b/libcap/.md5sum
index 60ee64dbc..840213640 100644
--- a/libcap/.md5sum
+++ b/libcap/.md5sum
@@ -1 +1,2 @@
+accaf2673de0111fc1747300e4fe7fbb libcap-1.10-cap_sys.patch
2c09eea823f67cfdde96177a959bc39b libcap-1.10.tar.gz
diff --git a/libcap/Pkgfile b/libcap/Pkgfile
index bd53eb562..e588c90e8 100644
--- a/libcap/Pkgfile
+++ b/libcap/Pkgfile
@@ -5,11 +5,13 @@
name=libcap
version=1.10
-release=1
-source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/libcap-$version.tar.gz)
+release=2
+source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/libcap-$version.tar.gz
+ libcap-$version-cap_sys.patch)
build () {
cd libcap-$version
+ patch -p0 -i $SRC/libcap-$version-cap_sys.patch
make
make \
INCDIR=$PKG/usr/include \
diff --git a/libcap/libcap-1.10-cap_sys.patch b/libcap/libcap-1.10-cap_sys.patch
new file mode 100644
index 000000000..e377daef6
--- /dev/null
+++ b/libcap/libcap-1.10-cap_sys.patch
@@ -0,0 +1,18 @@
+--- libcap/cap_sys.c~ 2007-02-25 17:28:52.000000000 +0200
++++ libcap/cap_sys.c 2007-02-25 17:29:01.000000000 +0200
+@@ -11,6 +11,7 @@
+ #define __LIBRARY__
+ #include <linux/unistd.h>
+
++/*
+ _syscall2(int, capget,
+ cap_user_header_t, header,
+ cap_user_data_t, data)
+@@ -18,6 +19,7 @@
+ _syscall2(int, capset,
+ cap_user_header_t, header,
+ const cap_user_data_t, data)
++*/
+
+ /*
+ * $Log: cap_sys.c,v $

Generated by cgit