diff options
author | Dirk Opfer <dirk@opfer-online.de> | 2006-03-22 22:22:22 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-03-22 22:22:22 +0000 |
commit | b823b49470515182cb6f7a536d6a63fac53948aa (patch) | |
tree | 276d48cc6d966ad1d8c9b56d85b8d7671ae51be1 | |
parent | bab5441263d488b4ea7d2b4688e20532f1e022e7 (diff) |
libcap: add 1.10
-rw-r--r-- | packages/libcap/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/libcap/libcap-1.10/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/libcap/libcap-1.10/make.patch | 20 | ||||
-rw-r--r-- | packages/libcap/libcap-1.10/makenames.patch | 13 | ||||
-rw-r--r-- | packages/libcap/libcap_1.10.bb | 26 |
5 files changed, 59 insertions, 0 deletions
diff --git a/packages/libcap/.mtn2git_empty b/packages/libcap/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/libcap/.mtn2git_empty diff --git a/packages/libcap/libcap-1.10/.mtn2git_empty b/packages/libcap/libcap-1.10/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/libcap/libcap-1.10/.mtn2git_empty diff --git a/packages/libcap/libcap-1.10/make.patch b/packages/libcap/libcap-1.10/make.patch new file mode 100644 index 0000000000..5788099f08 --- /dev/null +++ b/packages/libcap/libcap-1.10/make.patch @@ -0,0 +1,20 @@ +Index: libcap-1.10.orig/Make.Rules +=================================================================== +--- libcap-1.10.orig.orig/Make.Rules 1999-11-18 07:06:02.000000000 +0100 ++++ libcap-1.10.orig/Make.Rules 2006-03-20 23:05:56.083854920 +0100 +@@ -41,15 +41,11 @@ + + # Compilation specifics + +-CC=gcc +-COPTFLAGS=-O2 + DEBUG=-g #-DDEBUG + WARNINGS=-ansi -D_POSIX_SOURCE -Wall -Wwrite-strings \ + -Wpointer-arith -Wcast-qual -Wcast-align \ + -Wtraditional -Wstrict-prototypes -Wmissing-prototypes \ + -Wnested-externs -Winline -Wshadow -pedantic +-LD=ld +-LDFLAGS=-s #-g + + IPATH=-I$(topdir)/libcap/include + INCS=$(topdir)/libcap/include/sys/capability.h diff --git a/packages/libcap/libcap-1.10/makenames.patch b/packages/libcap/libcap-1.10/makenames.patch new file mode 100644 index 0000000000..445f2116ec --- /dev/null +++ b/packages/libcap/libcap-1.10/makenames.patch @@ -0,0 +1,13 @@ +Index: libcap-1.10.orig/libcap/Makefile +=================================================================== +--- libcap-1.10.orig.orig/libcap/Makefile 2006-03-20 23:11:05.696786600 +0100 ++++ libcap-1.10.orig/libcap/Makefile 2006-03-20 23:14:29.527799576 +0100 +@@ -45,7 +45,7 @@ + all: $(MINLIBNAME) + + _makenames: _makenames.c cap_names.sed +- $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ ++ $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $< -o $@ + + cap_names.h: _makenames + ./_makenames > cap_names.h diff --git a/packages/libcap/libcap_1.10.bb b/packages/libcap/libcap_1.10.bb new file mode 100644 index 0000000000..886248c5ad --- /dev/null +++ b/packages/libcap/libcap_1.10.bb @@ -0,0 +1,26 @@ +DESCRIPTION = "Libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities." +PRIORITY = "optional" +SECTION = "libs" +LICENSE = "GPL" + +SRC_URI = "http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/libcap-${PV}.tar.bz2 \ + file://makenames.patch;patch=1 \ + file://make.patch;patch=1 " + +S = "${WORKDIR}/libcap-${PV}" + +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} +} + +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} +} + +FILES_${PN} = "${libdir}" +FILES_${PN}-dev = "${includedir}"
\ No newline at end of file |