1config BR2_PACKAGE_RESTORECOND
2	bool "restorecond"
3	depends on BR2_USE_MMU # libglib2
4	depends on BR2_USE_WCHAR # libglib2
5	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
6	depends on !BR2_STATIC_LIBS # libselinux
7	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsepol
8	select BR2_PACKAGE_DBUS
9	select BR2_PACKAGE_DBUS_GLIB
10	select BR2_PACKAGE_LIBGLIB2
11	select BR2_PACKAGE_LIBSELINUX
12	select BR2_PACKAGE_LIBSEPOL
13	help
14	  restorecond is a daemon that watches for file creation and
15	  then sets the default SELinux file context for that file.
16
17	  https://github.com/SELinuxProject/selinux/wiki/Releases
18
19comment "restorecond needs a toolchain w/ wchar, threads, dynamic library, gcc >= 5"
20	depends on BR2_USE_MMU
21	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
22		BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_5
23