blob: 358319419d6db3e450fee6cd572a3ca1c742b7fa [file] [log] [blame]
Patrick Williamsc0f7c042017-02-23 20:41:17 -06001SUMMARY = "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
13inherit lib_package autotools python3native
14
15SRC_URI[md5sum] = "0dece96644bd798020e170fbf7663802"
16SRC_URI[sha256sum] = "c21af997445cd4107a55d386f955c5ea6f6e96ead693e9151277c0ab5f97d05f"
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
29do_install_append() {
30 # Moving libcap-ng to base_libdir
31 if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
32 mkdir -p ${D}/${base_libdir}/
33 mv -f ${D}${libdir}/libcap-ng.so.* ${D}${base_libdir}/
34 relpath=${@os.path.relpath("${base_libdir}", "${libdir}")}
35 ln -sf ${relpath}/libcap-ng.so.0.0.0 ${D}${libdir}/libcap-ng.so
36 fi
37}