summaryrefslogtreecommitdiffstats
path: root/recipes-security/setools/setools_4.2.2.bb
blob: 6e5a950d096ec47dd6192eefed587e1db2cb449c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"

S = "${WORKDIR}/git"
SRC_URI = "git://github.com/SELinuxProject/${BPN}.git;branch=4.2 \
           file://setools4-fixes-for-cross-compiling.patch \
"

SRCREV = "15bffa7823b9a999f9d51533785ade18fe44df08"

LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=83a5eb6974c11f30785e90d0eeccf40c \
                    file://${S}/COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                    file://${S}/COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c"

DEPENDS += "bison-native flex-native swig-native python3 python3-cython-native libsepol"

RDEPENDS_${PN} += "python3-networkx python3-decorator python3-setuptools \
                   python3-logging python3-json libselinux-python"

RPROVIDES_${PN} += "${PN}-console"

inherit setuptools3

do_install_append() {
	# Need PyQt5 support, disable gui tools
	rm -f ${D}${bindir}/apol
	rm -rf ${D}${libdir}/${PYTHON_DIR}/site-packages/setoolsgui
}