From 66f14d1b176b5ff40ae27ef4c96347d3f761915a Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Fri, 14 May 2010 18:27:44 +0000 Subject: [PATCH] libcap: initial import (verified compilation) --- libcap/.footprint | 47 +++++++++++++++++++++++++++++++++++++++++++++++ libcap/.md5sum | 1 + libcap/Pkgfile | 26 ++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 libcap/.footprint create mode 100644 libcap/.md5sum create mode 100644 libcap/Pkgfile diff --git a/libcap/.footprint b/libcap/.footprint new file mode 100644 index 0000000..ad271d5 --- /dev/null +++ b/libcap/.footprint @@ -0,0 +1,47 @@ +drwxr-xr-x root/root lib/ +lrwxrwxrwx root/root lib/libcap.so.2 -> libcap.so.2.19 +-rw-r--r-- root/root lib/libcap.so.2.19 +drwxr-xr-x root/root sbin/ +-rwxr-xr-x root/root sbin/capsh +-rwxr-xr-x root/root sbin/getcap +-rwxr-xr-x root/root sbin/getpcaps +-rwxr-xr-x root/root sbin/setcap +drwxr-xr-x root/root usr/ +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/ +-rw-r--r-- root/root usr/lib/libcap.a +lrwxrwxrwx root/root usr/lib/libcap.so -> ../../lib/libcap.so.2.19 +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/capsh.1.gz +drwxr-xr-x root/root usr/man/man3/ +-rw-r--r-- root/root usr/man/man3/cap_clear.3.gz +-rw-r--r-- root/root usr/man/man3/cap_clear_flag.3.gz +-rw-r--r-- root/root usr/man/man3/cap_compare.3.gz +-rw-r--r-- root/root usr/man/man3/cap_copy_ext.3.gz +-rw-r--r-- root/root usr/man/man3/cap_copy_int.3.gz +-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_name.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_pid.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 +-rw-r--r-- root/root usr/man/man3/cap_to_name.3.gz +-rw-r--r-- root/root usr/man/man3/cap_to_text.3.gz +-rw-r--r-- root/root usr/man/man3/capgetp.3.gz +-rw-r--r-- root/root usr/man/man3/capsetp.3.gz +-rw-r--r-- root/root usr/man/man3/libcap.3.gz +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/getcap.8.gz +-rw-r--r-- root/root usr/man/man8/setcap.8.gz diff --git a/libcap/.md5sum b/libcap/.md5sum new file mode 100644 index 0000000..6652b0c --- /dev/null +++ b/libcap/.md5sum @@ -0,0 +1 @@ +eb1ff04d39bfa2342b8e78b0fd60dc2d libcap-2.19.tar.bz2 diff --git a/libcap/Pkgfile b/libcap/Pkgfile new file mode 100644 index 0000000..c7b9c60 --- /dev/null +++ b/libcap/Pkgfile @@ -0,0 +1,26 @@ +# Description: POSIX.1e capabilities library +# URL: http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/README +# Maintainer: Jose V Beneyto, sepen at crux dot nu +# Packager: Antti Nykanen, aon at iki dot fi +# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu +# Depends on: libattr + +name=libcap +version=2.19 +release=1 +source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$version.tar.bz2) + +build () { + cd libcap-$version + + sed -e '/^CFLAGS :=/s/:/\?/' -e "s|CC := gcc|CC := $CC|g" -i Make.Rules + sed -e "s|\$(BUILD_CC)|gcc|g" -i libcap/Makefile + + make + make DESTDIR=$PKG man_prefix=/usr install + + install -d $PKG/usr/lib + mv $PKG/lib/libcap.a $PKG/usr/lib + rm $PKG/lib/libcap.so + ln -s ../../lib/libcap.so.$version $PKG/usr/lib/libcap.so +} -- 2.26.2