All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/linux-pam: add menuconfig option to build pam_lastlog.so
@ 2024-08-04  9:50 Joachim Wiberg
  2024-08-04 20:46 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Joachim Wiberg @ 2024-08-04  9:50 UTC (permalink / raw)
  To: buildroot; +Cc: Joachim Wiberg

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
---
 package/linux-pam/Config.in    | 9 +++++++++
 package/linux-pam/linux-pam.mk | 6 ++++++
 2 files changed, 15 insertions(+)

diff --git a/package/linux-pam/Config.in b/package/linux-pam/Config.in
index c8aca97ac6..1aa9045333 100644
--- a/package/linux-pam/Config.in
+++ b/package/linux-pam/Config.in
@@ -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 \
diff --git a/package/linux-pam/linux-pam.mk b/package/linux-pam/linux-pam.mk
index a205d67c54..1433eb00b3 100644
--- a/package/linux-pam/linux-pam.mk
+++ b/package/linux-pam/linux-pam.mk
@@ -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 \
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-04 20:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-04  9:50 [Buildroot] [PATCH 1/1] package/linux-pam: add menuconfig option to build pam_lastlog.so Joachim Wiberg
2024-08-04 20:46 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.