Initial commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
require libcap-ng.inc
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/libcap-ng:"
|
||||
|
||||
SUMMARY .= " - python"
|
||||
|
||||
inherit lib_package autotools python3targetconfig
|
||||
|
||||
DEPENDS += "libcap-ng python3 swig-native"
|
||||
|
||||
S = "${WORKDIR}/libcap-ng-${PV}"
|
||||
|
||||
EXTRA_OECONF += "--with-python --with-python3"
|
||||
|
||||
do_install:append() {
|
||||
rm -rf ${D}${bindir}
|
||||
rm -rf ${D}${libdir}/.debug
|
||||
rm -f ${D}${libdir}/lib*
|
||||
rm -rf ${D}${libdir}/pkgconfig
|
||||
rm -rf ${D}${datadir}
|
||||
rm -rf ${D}${includedir}
|
||||
}
|
||||
|
||||
# PACKAGES = "${PN}"
|
||||
|
||||
FILES:${PN} = "${libdir}/python${PYTHON_BASEVERSION}"
|
||||
FILES:${PN}-dbg =+ "${PYTHON_SITEPACKAGES_DIR}/.debug/_capng.so"
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
SUMMARY = "An alternate posix capabilities library"
|
||||
DESCRIPTION = "The libcap-ng library is intended to make programming \
|
||||
with POSIX capabilities much easier than the traditional libcap library."
|
||||
HOMEPAGE = "http://freecode.com/projects/libcap-ng"
|
||||
SECTION = "base"
|
||||
LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
|
||||
file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06"
|
||||
|
||||
SRC_URI = "https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz"
|
||||
|
||||
SRC_URI[sha256sum] = "bed6f6848e22bb2f83b5f764b2aef0ed393054e803a8e3a8711cb2a39e6b492d"
|
||||
|
||||
EXTRA_OECONF:append:class-target = " --with-capability_header=${STAGING_INCDIR}/linux/capability.h"
|
||||
EXTRA_OECONF:append:class-nativesdk = " --with-capability_header=${STAGING_INCDIR}/linux/capability.h"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,17 @@
|
||||
require libcap-ng.inc
|
||||
|
||||
inherit lib_package autotools
|
||||
|
||||
EXTRA_OECONF += "--without-python --without-python3"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
do_install:append() {
|
||||
# Moving libcap-ng to base_libdir
|
||||
if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
|
||||
mkdir -p ${D}/${base_libdir}/
|
||||
mv -f ${D}${libdir}/libcap-ng.so.* ${D}${base_libdir}/
|
||||
relpath=${@os.path.relpath("${base_libdir}", "${libdir}")}
|
||||
ln -sf ${relpath}/libcap-ng.so.0.0.0 ${D}${libdir}/libcap-ng.so
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user