From 171760b17ac2726a7c650c01ff5f5413579e7ede Mon Sep 17 00:00:00 2001 From: Xin Ouyang Date: Tue, 27 Mar 2012 17:32:30 +0800 Subject: setools: Fix depends and file list. --- recipes-security/setools/setools_3.3.7.bb | 47 ++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/recipes-security/setools/setools_3.3.7.bb b/recipes-security/setools/setools_3.3.7.bb index 49cdd88..f12cc56 100644 --- a/recipes-security/setools/setools_3.3.7.bb +++ b/recipes-security/setools/setools_3.3.7.bb @@ -27,16 +27,61 @@ SRC_URI += "file://setools-cross-ar.patch" SRC_URI += "file://setools-Fix-test-bug-for-unary-operator.patch" SRC_URI += "file://setools-Fix-python-setools-Makefile.am-for-cross.patch" + SRC_URI += "file://setools-Don-t-build-python-bindings-if-disabled.patch" LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=26035c503c68ae1098177934ac0cc795 \ file://${S}/COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe \ file://${S}/COPYING.LGPL;md5=fbc093901857fcd118f065f900982c24" -DEPENDS += "python python-native libsepol libselinux refpolicy" +DEPENDS += "python python-native libsepol libselinux" + +PACKAGES += "${PN}-libs ${PN}-console" + +FILES_${PN}-dbg += "\ + ${libdir}/python${PYTHON_BASEVERSION}/site-packages/setools/.debug \ + " + +FILES_${PN}-libs = "\ + ${libdir}/libqpol.so.* \ + ${libdir}/libapol.so.* \ + ${libdir}/libpoldiff.so.* \ + ${libdir}/libsefs.so.* \ + ${libdir}/libseaudit.so.* \ + ${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.egg-info \ + ${libdir}/python${PYTHON_BASEVERSION}/site-packages/setools/*.so* \ + ${libdir}/python${PYTHON_BASEVERSION}/site-packages/setools/*.py* \ + " + +FILES_${PN}-console = "\ + ${bindir}/seinfo \ + ${bindir}/sesearch \ + ${bindir}/indexcon \ + ${bindir}/findcon \ + ${bindir}/replcon \ + ${bindir}/sechecker \ + ${bindir}/sediff \ + ${datadir}/setools-3.3/sechecker-profiles/* \ + ${datadir}/setools-3.3/sechecker_help.txt \ + ${datadir}/setools-3.3/sediff_help.txt \ + ${datadir}/setools-3.3/sediffx* \ + ${mandir}/man1/findcon.1.gz \ + ${mandir}/man1/indexcon.1.gz \ + ${mandir}/man1/replcon.1.gz \ + ${mandir}/man1/sechecker.1.gz \ + ${mandir}/man1/sediff.1.gz \ + ${mandir}/man1/seinfo.1.gz \ + ${mandir}/man1/sesearch.1.gz \ + " inherit autotools +# need to export these variables for python-config to work +export BUILD_SYS +export HOST_SYS +export STAGING_INCDIR +export STAGING_LIBDIR + do_configure() { autoreconf --force --install export ac_cv_policydb_version_max=26 -- cgit v1.2.3-54-g00ecf