summaryrefslogtreecommitdiff
path: root/packages/libcap/libcap_1.10.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/libcap/libcap_1.10.bb')
-rw-r--r--packages/libcap/libcap_1.10.bb21
1 files changed, 11 insertions, 10 deletions
diff --git a/packages/libcap/libcap_1.10.bb b/packages/libcap/libcap_1.10.bb
index 7e3b89ae82..0526f63bb0 100644
--- a/packages/libcap/libcap_1.10.bb
+++ b/packages/libcap/libcap_1.10.bb
@@ -4,17 +4,15 @@ SECTION = "libs"
LICENSE = "GPL"
DEPENDS = "bison-native flex-native"
-SRC_URI = "http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/libcap-${PV}.tar.bz2 \
+CFLAGS_append = " -I${S}/libcap/include"
+
+SRC_URI = "http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/${PN}-${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}
-}
+FILES_${PN} = "${libdir}"
+FILES_${PN}-dev = "${includedir}"
+#S = "${WORKDIR}/libcap-${PV}"
do_install() {
install -d ${D}${includedir}/sys
@@ -23,5 +21,8 @@ do_install() {
oe_libinstall -s -C libcap libcap ${D}${libdir}
}
-FILES_${PN} = "${libdir}"
-FILES_${PN}-dev = "${includedir}"
+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}
+}