mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
package/linux-pam: add menuconfig option to build pam_lastlog.so
Signed-off-by: Joachim Wiberg <troglobit@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
069a933894
commit
9b9532a665
@@ -13,6 +13,15 @@ config BR2_PACKAGE_LINUX_PAM
|
||||
|
||||
http://linux-pam.org
|
||||
|
||||
if BR2_PACKAGE_LINUX_PAM
|
||||
|
||||
config BR2_PACKAGE_LINUX_PAM_LASTLOG
|
||||
bool "pam_lastlog.so"
|
||||
help
|
||||
Build pam_lastlog.so module.
|
||||
|
||||
endif
|
||||
|
||||
comment "linux-pam needs a toolchain w/ wchar, locale, dynamic library, gcc >= 4.9"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR \
|
||||
|
||||
@@ -54,6 +54,12 @@ else
|
||||
LINUX_PAM_CONF_OPTS += --disable-openssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LINUX_PAM_LASTLOG),y)
|
||||
LINUX_PAM_CONF_OPTS += --enable-lastlog
|
||||
else
|
||||
LINUX_PAM_CONF_OPTS += --disable-lastlog
|
||||
endif
|
||||
|
||||
# Install default pam config (deny everything except login)
|
||||
define LINUX_PAM_INSTALL_CONFIG
|
||||
$(INSTALL) -m 0644 -D package/linux-pam/login.pam \
|
||||
|
||||
Reference in New Issue
Block a user