From 7f61baf0da0a485016dc1a3023a3ced06a218a11 Mon Sep 17 00:00:00 2001 From: Baptiste Durand Date: Thu, 12 Mar 2015 14:21:18 +0100 Subject: [PATCH] libcap : Provides a pkgconfig file for libcap to fix security-manager package Change-Id: Ifc6cc9d6745cfb2ca295a12adc6fb9f5accb82da Signed-off-by: Baptiste Durand --- meta/recipes-support/libcap/libcap.inc | 11 ++++++++--- meta/recipes-support/libcap/libcap/libcap.pc | 11 +++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 meta/recipes-support/libcap/libcap/libcap.pc diff --git a/meta/recipes-support/libcap/libcap.inc b/meta/recipes-support/libcap/libcap.inc index 0e28ea0..d412494 100644 --- a/meta/recipes-support/libcap/libcap.inc +++ b/meta/recipes-support/libcap/libcap.inc @@ -8,7 +8,8 @@ LIC_FILES_CHKSUM = "file://License;md5=3f84fd6f29d453a56514cb7e4ead25f1" DEPENDS = "perl-native-runtime" SRC_URI = "${DEBIAN_MIRROR}/main/libc/libcap2/${BPN}2_${PV}.orig.tar.gz \ - file://fix-CAP_LAST_CAP.patch" + file://fix-CAP_LAST_CAP.patch \ + file://libcap.pc" PR = "r1" @@ -60,8 +61,12 @@ do_install_append() { rmdir ${D}${libdir} fi } - -FILES_${PN}-dev += "${base_libdir}/*.so" +do_install_append_class-target() { + mkdir -p ${D}${libdir}/pkgconfig + cp ${WORKDIR}/libcap.pc ${D}${libdir}/pkgconfig +} +FILES_${PN}-dev += " ${base_libdir}/*.so " +FILES_${PN}-dev_append_class-target = " ${libdir}/pkgconfig/libcap.pc " # pam files FILES_${PN} += "${base_libdir}/security/*.so" diff --git a/meta/recipes-support/libcap/libcap/libcap.pc b/meta/recipes-support/libcap/libcap/libcap.pc new file mode 100644 index 0000000..bf4d51e --- /dev/null +++ b/meta/recipes-support/libcap/libcap/libcap.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix= +libdir=/lib +includedir=/usr/include + +Name: libcap +Description: libcap +Version: 2.24 +Libs: -L${libdir} -lcap +Libs.private: -lattr +Cflags: -I${includedir} -- 2.7.4