1
0
forked from ports/contrib

libcap: include internal sys/capabilities.h while compiling

This commit is contained in:
Antti Nykanen 2008-07-30 22:10:19 +03:00
parent b68a777721
commit ab659015f3
3 changed files with 22 additions and 2 deletions

View File

@ -1 +1,2 @@
c67b2d105f48d9413f0f5a16b2162f70 libcap-2.11-makefile.patch
56578c1719424857967676c7584143a3 libcap-2.11.tar.gz 56578c1719424857967676c7584143a3 libcap-2.11.tar.gz

View File

@ -6,12 +6,13 @@
name=libcap name=libcap
version=2.11 version=2.11
release=1 release=1
source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-$version.tar.gz) source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-$version.tar.gz
$name-$version-makefile.patch)
build () { build () {
cd libcap-$version cd libcap-$version
sed -i 's:gperf:false:' libcap/Makefile patch -p1 -i $SRC/$name-$version-makefile.patch
make make
make \ make \

View File

@ -0,0 +1,18 @@
diff -ruN libcap-2.11.orig/libcap/Makefile libcap-2.11/libcap/Makefile
--- libcap-2.11.orig/libcap/Makefile 2008-07-30 22:06:54.000000000 +0300
+++ libcap-2.11/libcap/Makefile 2008-07-30 22:07:52.000000000 +0300
@@ -21,13 +21,8 @@
all: $(MINLIBNAME) $(STALIBNAME)
-ifeq ($(shell gperf --version > /dev/null 2>&1 && echo yes),yes)
-USE_GPERF_OUTPUT = $(GPERF_OUTPUT)
-INCLUDE_GPERF_OUTPUT = -include $(GPERF_OUTPUT)
-endif
-
_makenames: _makenames.c cap_names.sed
- $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@
+ $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@ -I./include
cap_names.h: _makenames
./_makenames > cap_names.h