1menuconfig BR2_PACKAGE_SHADOW
2	bool "shadow"
3	depends on !BR2_STATIC_LIBS
4	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
5	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
6	help
7	  Utilities to deal with user accounts.
8
9	  https://github.com/shadow-maint/shadow
10
11if BR2_PACKAGE_SHADOW
12
13config BR2_PACKAGE_SHADOW_SHADOWGRP
14	bool "shadowgrp"
15	help
16	  Enable shadow group support.
17
18config BR2_PACKAGE_SHADOW_ACCOUNT_TOOLS_SETUID
19	bool "account-tools-setuid"
20	depends on BR2_USE_MMU  # linux-pam
21	depends on BR2_ENABLE_LOCALE  # linux-pam
22	depends on BR2_USE_WCHAR  # linux-pam
23	depends on !BR2_STATIC_LIBS  # linux-pam
24	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # linux-pam
25	select BR2_PACKAGE_LINUX_PAM
26	help
27	  Install the user and group management tools (e.g. groupadd)
28	  with setuid and authenticate the callers via PAM.
29
30comment "account-tools-setuid needs a toolchain w/ dynamic library, wchar, locale, gcc >= 4.9"
31	depends on BR2_USE_MMU
32	depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \
33		!BR2_ENABLE_LOCALE || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
34
35config BR2_PACKAGE_SHADOW_SUBORDINATE_IDS
36	bool "subordinate-ids"
37	help
38	  Support subordinate ids. Helpful to use container solution
39	  like podman without root.
40
41config BR2_PACKAGE_SHADOW_SHA_CRYPT
42	bool "sha-crypt"
43	default y
44	help
45	  Allow the SHA256 and SHA512 password encryption algorithms.
46
47config BR2_PACKAGE_SHADOW_BCRYPT
48	bool "bcrypt"
49	help
50	  Allow the bcrypt password encryption algorithm.
51
52config BR2_PACKAGE_SHADOW_YESCRYPT
53	bool "yescrypt"
54	help
55	  Allow the yescrypt password encryption algorithm.
56
57endif # BR2_PACKAGE_SHADOW
58
59comment "shadow needs a toolchain w/ headers >= 4.14, dynamic library"
60	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 || BR2_STATIC_LIBS
61