1config BR2_PACKAGE_LIBSEMANAGE
2	bool "libsemanage"
3	depends on BR2_PACKAGE_AUDIT_ARCH_SUPPORTS
4	depends on BR2_TOOLCHAIN_HAS_THREADS
5	depends on !BR2_STATIC_LIBS
6	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libselinux -> libsepol
7	select BR2_PACKAGE_AUDIT
8	select BR2_PACKAGE_LIBSELINUX
9	select BR2_PACKAGE_BZIP2
10	help
11	  libsemanage is the policy management library. It uses
12	  libsepol for binary policy manipulation and libselinux for
13	  interacting with the SELinux system. It also exec's helper
14	  programs for loading policy and for checking whether the
15	  file_contexts configuration is valid (load_policy and
16	  setfiles from policycoreutils) presently, although this may
17	  change at least for the bootstrapping case (for rpm).
18
19	  http://selinuxproject.org/page/Main_Page
20
21comment "libsemanage needs a toolchain w/ threads, dynamic library, gcc >= 5"
22	depends on BR2_PACKAGE_AUDIT_ARCH_SUPPORTS
23	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
24		!BR2_TOOLCHAIN_GCC_AT_LEAST_5
25