summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libcap-ng
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libcap-ng')
l---------meta/recipes-support/libcap-ng/libcap-ng1
-rw-r--r--meta/recipes-support/libcap-ng/libcap-ng-python/python.patch (renamed from meta/recipes-support/libcap-ng/libcap-ng/python.patch)0
-rw-r--r--meta/recipes-support/libcap-ng/libcap-ng-python_0.7.9.bb27
-rw-r--r--meta/recipes-support/libcap-ng/libcap-ng.inc17
-rw-r--r--meta/recipes-support/libcap-ng/libcap-ng_0.7.9.bb28
5 files changed, 49 insertions, 24 deletions
diff --git a/meta/recipes-support/libcap-ng/libcap-ng b/meta/recipes-support/libcap-ng/libcap-ng
new file mode 120000
index 0000000000..fb7744d293
--- /dev/null
+++ b/meta/recipes-support/libcap-ng/libcap-ng
@@ -0,0 +1 @@
libcap-ng-python \ No newline at end of file
diff --git a/meta/recipes-support/libcap-ng/libcap-ng/python.patch b/meta/recipes-support/libcap-ng/libcap-ng-python/python.patch
index d60a0a39b6..d60a0a39b6 100644
--- a/meta/recipes-support/libcap-ng/libcap-ng/python.patch
+++ b/meta/recipes-support/libcap-ng/libcap-ng-python/python.patch
diff --git a/meta/recipes-support/libcap-ng/libcap-ng-python_0.7.9.bb b/meta/recipes-support/libcap-ng/libcap-ng-python_0.7.9.bb
new file mode 100644
index 0000000000..e49b445f57
--- /dev/null
+++ b/meta/recipes-support/libcap-ng/libcap-ng-python_0.7.9.bb
@@ -0,0 +1,27 @@
1require libcap-ng.inc
2
3SUMMARY .= " - python"
4
5inherit lib_package autotools python3native
6
7DEPENDS += "libcap-ng python3 swig-native"
8
9S = "${WORKDIR}/libcap-ng-${PV}"
10
11EXTRA_OECONF += "--with-python --with-python3"
12EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' PYINC='${STAGING_INCDIR}/${PYLIBVER}'"
13
14do_install_append() {
15 rm -rf ${D}${bindir}
16 rm -rf ${D}${libdir}/.debug
17 rm -f ${D}${libdir}/lib*
18 rm -rf ${D}${libdir}/pkgconfig
19 rm -rf ${D}${datadir}
20 rm -rf ${D}${includedir}
21}
22
23# PACKAGES = "${PN}"
24
25FILES_${PN} = "${libdir}/python${PYTHON_BASEVERSION}"
26FILES_${PN}-dbg =+ "${PYTHON_SITEPACKAGES_DIR}/.debug/_capng.so"
27
diff --git a/meta/recipes-support/libcap-ng/libcap-ng.inc b/meta/recipes-support/libcap-ng/libcap-ng.inc
new file mode 100644
index 0000000000..739b91fd2e
--- /dev/null
+++ b/meta/recipes-support/libcap-ng/libcap-ng.inc
@@ -0,0 +1,17 @@
1SUMMARY = "An alternate posix capabilities library"
2DESCRIPTION = "The libcap-ng library is intended to make programming \
3with POSIX capabilities much easier than the traditional libcap library."
4HOMEPAGE = "http://freecode.com/projects/libcap-ng"
5SECTION = "base"
6LICENSE = "GPLv2+ & LGPLv2.1+"
7LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
8 file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06"
9
10SRC_URI = "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz \
11 file://python.patch \
12"
13
14SRC_URI[md5sum] = "2398d695508fab9ce33668c53a89b0e9"
15SRC_URI[sha256sum] = "4a1532bcf3731aade40936f6d6a586ed5a66ca4c7455e1338d1f6c3e09221328"
16
17BBCLASSEXTEND = "native nativesdk" \ No newline at end of file
diff --git a/meta/recipes-support/libcap-ng/libcap-ng_0.7.9.bb b/meta/recipes-support/libcap-ng/libcap-ng_0.7.9.bb
index aff6259db2..6e6de45494 100644
--- a/meta/recipes-support/libcap-ng/libcap-ng_0.7.9.bb
+++ b/meta/recipes-support/libcap-ng/libcap-ng_0.7.9.bb
@@ -1,30 +1,10 @@
1SUMMARY = "An alternate posix capabilities library" 1require libcap-ng.inc
2DESCRIPTION = "The libcap-ng library is intended to make programming \
3with POSIX capabilities much easier than the traditional libcap library."
4HOMEPAGE = "http://freecode.com/projects/libcap-ng"
5SECTION = "base"
6LICENSE = "GPLv2+ & LGPLv2.1+"
7LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
8 file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06"
9 2
10SRC_URI = "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz \ 3inherit lib_package autotools
11 file://python.patch"
12 4
13inherit lib_package autotools python3native 5EXTRA_OECONF += "--without-python --without-python3"
14 6
15SRC_URI[md5sum] = "2398d695508fab9ce33668c53a89b0e9" 7BBCLASSEXTEND = "native nativesdk"
16SRC_URI[sha256sum] = "4a1532bcf3731aade40936f6d6a586ed5a66ca4c7455e1338d1f6c3e09221328"
17
18DEPENDS += "swig-native python3"
19
20EXTRA_OECONF += "--with-python --with-python3"
21EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' PYINC='${STAGING_INCDIR}/${PYLIBVER}'"
22
23PACKAGES += "${PN}-python"
24
25FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}"
26
27BBCLASSEXTEND = "native"
28 8
29do_install_append() { 9do_install_append() {
30 # Moving libcap-ng to base_libdir 10 # Moving libcap-ng to base_libdir