summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Ouyang <Xin.Ouyang@windriver.com>2013-03-15 15:19:28 +0800
committerXin Ouyang <Xin.Ouyang@windriver.com>2013-03-19 10:15:45 +0800
commit16e416914bddfd44768ffd0a8301cba80ff59dfc (patch)
tree176f98da8be44c86b3431146880db5389027bf07
parent47562b06a32d974b0fad9d67e8e8205b31f3ceb8 (diff)
downloadmeta-selinux-16e416914bddfd44768ffd0a8301cba80ff59dfc.tar.gz
libcap-ng: fix the QA issue for libcap-ng.so*
Some binaries in base_sbindir have libcap-ng.so* depends, so move libcap-ng.so* to avoid QA warnings. Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r--recipes-security/libcap-ng/libcap-ng_0.6.6.bb12
1 files changed, 11 insertions, 1 deletions
diff --git a/recipes-security/libcap-ng/libcap-ng_0.6.6.bb b/recipes-security/libcap-ng/libcap-ng_0.6.6.bb
index 807ae41..4908ca1 100644
--- a/recipes-security/libcap-ng/libcap-ng_0.6.6.bb
+++ b/recipes-security/libcap-ng/libcap-ng_0.6.6.bb
@@ -5,7 +5,7 @@ It includes utilities that can analyze all currently running \
5applications to locate applications that may have too many privileges." 5applications to locate applications that may have too many privileges."
6HOMEPAGE = "http://freecode.com/projects/libcap-ng" 6HOMEPAGE = "http://freecode.com/projects/libcap-ng"
7SECTION = "base" 7SECTION = "base"
8PR = "r2" 8PR = "r3"
9LICENSE = "GPLv2+ & LGPLv2.1+" 9LICENSE = "GPLv2+ & LGPLv2.1+"
10LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ 10LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
11 file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" 11 file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06"
@@ -28,3 +28,13 @@ FILES_${PN}-dbg += "${libdir}/python${PYTHON_BASEVERSION}/*/.debug"
28FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}" 28FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}"
29 29
30BBCLASSEXTEND = "native" 30BBCLASSEXTEND = "native"
31
32do_install_append() {
33 # Moving libcap-ng to base_libdir
34 if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
35 mkdir -p ${D}/${base_libdir}/
36 mv -f ${D}${libdir}/libcap-ng.so.* ${D}${base_libdir}/
37 relpath=${@os.path.relpath("${base_libdir}", "${libdir}")}
38 ln -sf ${relpath}/libcap-ng.so.0.0.0 ${D}${libdir}/libcap-ng.so
39 fi
40}