1config BR2_PACKAGE_SETOOLS
2	bool "setools"
3	depends on !BR2_STATIC_LIBS
4	depends on BR2_TOOLCHAIN_HAS_THREADS
5	depends on BR2_USE_WCHAR
6	depends on BR2_USE_MMU
7	depends on BR2_PACKAGE_PYTHON3
8	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libselinux -> libsepol
9	select BR2_PACKAGE_PYTHON_NETWORKX # runtime
10	select BR2_PACKAGE_PYTHON_SETUPTOOLS
11	select BR2_PACKAGE_LIBSELINUX
12	help
13	  SETools is an open source project designed to facilitate
14	  SELinux policy analysis. The primary tools are:
15	   * apol - analyze a SELinux policy. (requires python-qt5)
16	   * sediff - semantic policy difference tool for SELinux.
17	   * sedta - Perform domain transition analyses
18	   * seinfoflow - information flow analysis for SELinux
19	   * sesearch - Search rules (allow, type_transition, etc.)
20
21	  https://github.com/SELinuxProject/setools/
22
23comment "setools needs a toolchain w/ threads, wchar, dynamic library, gcc >= 5"
24	depends on BR2_USE_MMU
25	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
26		!BR2_USE_WCHAR || !BR2_TOOLCHAIN_GCC_AT_LEAST_5
27
28comment "setools needs python3"
29	depends on BR2_USE_MMU
30	depends on !BR2_PACKAGE_PYTHON3
31