meta-selinux/recipes-security/setools/setools_4.6.0.bb
Yi Zhao 6b87622198 setools: upgrade 4.5.1 -> 4.6.0
ChangeLog:
https://github.com/SELinuxProject/setools/releases/tag/4.6.0

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
2025-09-23 14:19:38 +08:00

34 lines
1.2 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."
SECTION = "base"
LICENSE = "GPL-2.0-only & LGPL-2.1-only"
SRC_URI = "git://github.com/SELinuxProject/${BPN}.git;branch=4.6;protocol=https \
file://setools4-fixes-for-cross-compiling.patch \
"
SRCREV = "dfb95f338264f2d7ecab46b39479e4c29e44c09e"
LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=69a7b68f0a4a570d7c0c43465333ecbc \
file://${S}/COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://${S}/COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c"
DEPENDS = "libsepol libselinux"
RDEPENDS:${PN} = "python3-networkx python3-logging libselinux-python"
RPROVIDES:${PN} = "${PN}-console"
inherit python_setuptools_build_meta cython
do_install:append() {
# Need PyQt6 support, disable gui tools
rm -f ${D}${bindir}/apol
rm -rf ${D}${libdir}/${PYTHON_DIR}/site-packages/setoolsgui
rm -rf ${D}${libdir}/${PYTHON_DIR}/site-packages/setools/__pycache__
rm -rf ${D}${libdir}/${PYTHON_DIR}/site-packages/setools/*/__pycache__
}
BBCLASSEXTEND += "native"