mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-04 16:10:05 +00:00
Update to the latest stable release, 20140506. Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
101 lines
3.4 KiB
BlitzBasic
101 lines
3.4 KiB
BlitzBasic
SUMMARY = "Policy analysis tools for SELinux"
|
|
DESCRIPTION = "\
|
|
SETools is a collection of graphical tools, command-line tools, and \
|
|
libraries designed to facilitate SELinux policy analysis. \
|
|
\n\
|
|
This meta-package depends upon the main packages necessary to run \
|
|
SETools."
|
|
SECTION = "base"
|
|
LICENSE = "GPLv2 & LGPLv2.1"
|
|
|
|
SRC_URI = "https://raw.githubusercontent.com/wiki/TresysTechnology/setools3/files/dists/setools-${PV}/setools-${PV}.tar.bz2"
|
|
SRC_URI[md5sum] = "d68d0d4e4da0f01da0f208782ff04b91"
|
|
SRC_URI[sha256sum] = "44387ecc9a231ec536a937783440cd8960a72c51f14bffc1604b7525e341e999"
|
|
|
|
SRC_URI += "file://setools-neverallow-rules-all-always-fail.patch"
|
|
SRC_URI += "file://setools-Fix-sepol-calls-to-work-with-latest-libsepol.patch"
|
|
|
|
SRC_URI += "file://setools-Don-t-check-selinux-policies-if-disabled.patch"
|
|
SRC_URI += "file://setools-configure-ac.patch"
|
|
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-replcon-correct-invalid-prototype-for-lsetfilecon_ra.patch"
|
|
|
|
LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=26035c503c68ae1098177934ac0cc795 \
|
|
file://${S}/COPYING.GPL;md5=751419260aa954499f7abaabaa882bbe \
|
|
file://${S}/COPYING.LGPL;md5=fbc093901857fcd118f065f900982c24"
|
|
|
|
DEPENDS += "bison-native flex-native python libsepol libselinux libxml2"
|
|
|
|
PACKAGE_BEFORE_PN += "${PN}-libs"
|
|
|
|
RPROVIDES_${PN} += "${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} += "\
|
|
${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 pythonnative
|
|
|
|
# need to export these variables for python-config to work
|
|
export BUILD_SYS
|
|
export HOST_SYS
|
|
export STAGING_INCDIR
|
|
export STAGING_LIBDIR
|
|
|
|
EXTRA_OECONF = "-disable-bwidget-check --disable-selinux-check \
|
|
--disable-swig-python --disable-swig-java --disable-swig-tcl \
|
|
--disable-profiling --disable-gui --with-tk=no --with-tcl=no \
|
|
--with-sepol-devel=${STAGING_LIBDIR}/.. \
|
|
--with-selinux-devel=${STAGING_LIBDIR}/.."
|
|
|
|
do_configure_prepend() {
|
|
export ac_cv_policydb_version_max=26
|
|
export PYTHON=python
|
|
export PYLIBVER='python${PYTHON_BASEVERSION}'
|
|
export PYTHON_CPPFLAGS="-I${STAGING_INCDIR}/${PYLIBVER}"
|
|
export PYTHON_LDFLAGS="${STAGING_LIBDIR}/lib${PYLIBVER}.so"
|
|
export PYTHON_SITE_PKG="${libdir}/${PYLIBVER}/site-packages"
|
|
}
|
|
|
|
do_install_append() {
|
|
rm -f ${D}/${libdir}/*.a
|
|
}
|
|
|
|
BBCLASSEXTEND = "native"
|