diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-03-08 18:34:44 +0100 |
---|---|---|
committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2009-03-08 18:34:44 +0100 |
commit | c71a6ebf796df907ba0d4339e6acf66faa3c6232 (patch) | |
tree | 664edf36e166a4918ff44bc92bdd23b3e1e1cfd7 | |
parent | 101860728efdad5e79c0c92b9e9cabde1280cc18 (diff) |
libcap2: libcap 2.16; created as separate package to allow both .so.1 and .so.2 to coexist
-rw-r--r-- | conf/checksums.ini | 4 | ||||
-rw-r--r-- | packages/libcap/libcap2-2.16/make.patch | 23 | ||||
-rw-r--r-- | packages/libcap/libcap2_2.16.bb | 31 |
3 files changed, 58 insertions, 0 deletions
diff --git a/conf/checksums.ini b/conf/checksums.ini index 443f28b3ed..a3be13f302 100644 --- a/conf/checksums.ini +++ b/conf/checksums.ini @@ -11922,6 +11922,10 @@ sha256=b0e3cb59e605412a52352cf9cf36344b165463d4e65916c95deb73fc51838272 md5=4426a413128142cab89eb2e6f13d8571 sha256=66c3f033fdc8f9ba0bd9d0ae2d1f2c11f9fa51bf0d1418e5cb75e29e6577a5bc +[http://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.16.tar.bz2] +md5=6e2c9d0f3c3118e41cd07288ba9577ce +sha256=9c5a41a5577d6f702fe4d29e92f91f1d586a2ef272f6b7fa137bae3f0e76cc2f + [http://downloads.sourceforge.net/libcdaudio/libcdaudio-0.99.12p2.tar.gz] md5=15de3830b751818a54a42899bd3ae72c sha256=5fdaf9af5ac4f75c0215d000b82b128fd054a582f81cc4f039a1e7fe69335ebb diff --git a/packages/libcap/libcap2-2.16/make.patch b/packages/libcap/libcap2-2.16/make.patch new file mode 100644 index 0000000000..3672f77c63 --- /dev/null +++ b/packages/libcap/libcap2-2.16/make.patch @@ -0,0 +1,23 @@ +--- libcap-2.16/Make.Rules.orig 2009-03-07 18:50:23.000000000 +0100 ++++ libcap-2.16/Make.Rules 2009-03-07 18:50:44.000000000 +0100 +@@ -45,19 +45,12 @@ + KERNEL_HEADERS := $(topdir)/libcap/include + IPATH += -I$(topdir)/libcap/include -I$(KERNEL_HEADERS) + +-CC := gcc +-CFLAGS := -O2 +-BUILD_CC := $(CC) +-BUILD_CFLAGS := $(CFLAGS) $(IPATH) +-AR := ar +-RANLIB := ranlib ++LD=$(CC) -Wl,-x -shared + DEBUG = -g #-DDEBUG + WARNINGS=-fPIC -Wall -Wwrite-strings \ + -Wpointer-arith -Wcast-qual -Wcast-align \ + -Wstrict-prototypes -Wmissing-prototypes \ + -Wnested-externs -Winline -Wshadow +-LD=$(CC) -Wl,-x -shared +-LDFLAGS := #-g + + SYSTEM_HEADERS = /usr/include + INCS=$(topdir)/libcap/include/sys/capability.h diff --git a/packages/libcap/libcap2_2.16.bb b/packages/libcap/libcap2_2.16.bb new file mode 100644 index 0000000000..8c9803d392 --- /dev/null +++ b/packages/libcap/libcap2_2.16.bb @@ -0,0 +1,31 @@ +DESCRIPTION = "Libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities." +PRIORITY = "optional" +SECTION = "libs" +LICENSE = "GPL" +DEPENDS = "bison-native flex-native libattr" +PR = "r0" + +CFLAGS_append = " -I${S}/libcap/include" +LDFLAGS_prepend = "-L../libcap" + +SRC_URI = "${KERNELORG_MIRROR}/pub/linux/libs/security/linux-privs/libcap2/libcap-${PV}.tar.bz2 \ + file://make.patch;patch=1 \ + " + +S = "${WORKDIR}/libcap-${PV}" + +FILES_${PN} = "${libdir}" +FILES_${PN}-dev = "${includedir}" + +do_install() { + install -d ${D}${includedir}/sys + install -m 0644 libcap/include/sys/capability.h ${D}${includedir}/sys/ + install -d ${D}${libdir} + oe_libinstall -s -C libcap libcap ${D}${libdir} +} + +do_stage() { + install -d ${STAGING_INCDIR}/sys + install -m 0644 libcap/include/sys/capability.h ${STAGING_INCDIR}/sys/ + oe_libinstall -s -C libcap libcap ${STAGING_LIBDIR} +} |