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 /packages/libcap | |
parent | 101860728efdad5e79c0c92b9e9cabde1280cc18 (diff) |
libcap2: libcap 2.16; created as separate package to allow both .so.1 and .so.2 to coexist
Diffstat (limited to 'packages/libcap')
-rw-r--r-- | packages/libcap/libcap2-2.16/make.patch | 23 | ||||
-rw-r--r-- | packages/libcap/libcap2_2.16.bb | 31 |
2 files changed, 54 insertions, 0 deletions
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} +} |