1
0
forked from ports/contrib

libcap: updated to 2.20

This commit is contained in:
Antti Nykanen 2007-12-02 17:37:22 +02:00
parent 52ba495dce
commit ddbf61d174
4 changed files with 20 additions and 35 deletions

View File

@ -3,11 +3,10 @@ drwxr-xr-x root/root usr/include/
drwxr-xr-x root/root usr/include/sys/
-rw-r--r-- root/root usr/include/sys/capability.h
drwxr-xr-x root/root usr/lib/
lrwxrwxrwx root/root usr/lib/libcap.so -> libcap.so.1
lrwxrwxrwx root/root usr/lib/libcap.so.1 -> libcap.so.1.10
-rw-r--r-- root/root usr/lib/libcap.so.1.10
lrwxrwxrwx root/root usr/lib/libcap.so -> libcap.so.2
lrwxrwxrwx root/root usr/lib/libcap.so.2 -> libcap.so.2.02
-rw-r--r-- root/root usr/lib/libcap.so.2.02
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man2/
drwxr-xr-x root/root usr/man/man3/
-rw-r--r-- root/root usr/man/man3/_cap_names.3.gz
-rw-r--r-- root/root usr/man/man3/cap_clear.3.gz
@ -16,9 +15,13 @@ drwxr-xr-x root/root usr/man/man3/
-rw-r--r-- root/root usr/man/man3/cap_dup.3.gz
-rw-r--r-- root/root usr/man/man3/cap_free.3.gz
-rw-r--r-- root/root usr/man/man3/cap_from_text.3.gz
-rw-r--r-- root/root usr/man/man3/cap_get_fd.3.gz
-rw-r--r-- root/root usr/man/man3/cap_get_file.3.gz
-rw-r--r-- root/root usr/man/man3/cap_get_flag.3.gz
-rw-r--r-- root/root usr/man/man3/cap_get_proc.3.gz
-rw-r--r-- root/root usr/man/man3/cap_init.3.gz
-rw-r--r-- root/root usr/man/man3/cap_set_fd.3.gz
-rw-r--r-- root/root usr/man/man3/cap_set_file.3.gz
-rw-r--r-- root/root usr/man/man3/cap_set_flag.3.gz
-rw-r--r-- root/root usr/man/man3/cap_set_proc.3.gz
-rw-r--r-- root/root usr/man/man3/cap_size.3.gz
@ -26,7 +29,6 @@ drwxr-xr-x root/root usr/man/man3/
-rw-r--r-- root/root usr/man/man3/capgetp.3.gz
-rw-r--r-- root/root usr/man/man3/capsetp.3.gz
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/execcap
-rwxr-xr-x root/root usr/sbin/getcap
-rwxr-xr-x root/root usr/sbin/getpcaps
-rwxr-xr-x root/root usr/sbin/setpcaps
-rwxr-xr-x root/root usr/sbin/sucap
-rwxr-xr-x root/root usr/sbin/setcap

View File

@ -1,2 +1 @@
accaf2673de0111fc1747300e4fe7fbb libcap-1.10-cap_sys.patch
2c09eea823f67cfdde96177a959bc39b libcap-1.10.tar.gz
cff766f741a98c33a9e45c3d17242006 libcap-2.02.tar.gz

View File

@ -1,17 +1,19 @@
# Description: POSIX.1e capabilities library
# URL: http://linux.kernel.org/pub/linux/libs/security/linux-privs/
# Maintainer: Antti Nykänen, aon at iki dot fi
# Depends on:
# Depends on: libattr
name=libcap
version=1.10
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)
version=2.02
release=1
source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-$version.tar.gz)
build () {
cd libcap-$version
patch -p0 -i $SRC/libcap-$version-cap_sys.patch
# don't build pam_cap
sed -i '13d' Makefile
make
make \
INCDIR=$PKG/usr/include \
@ -19,6 +21,6 @@ build () {
SBINDIR=$PKG/usr/sbin \
MANDIR=$PKG/usr/man install
# these conflict with core/man-pages
rm $PKG/usr/man/man2/cap{get,set}.2
# man8 is empty, cap{set,get}(2) come from core/man-pages
rm -rf $PKG/usr/man/man{2,8}
}

View File

@ -1,18 +0,0 @@
--- 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 $