From 3f986eaeb2e952121c8e2b257384ba1df83d6d2b Mon Sep 17 00:00:00 2001 From: Adam Duskett Date: Tue, 17 Oct 2023 13:08:07 +0200 Subject: [PATCH] package/openrc: add linux-pam support Signed-off-by: Adam Duskett Signed-off-by: Thomas Petazzoni --- package/openrc/openrc.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/openrc/openrc.mk b/package/openrc/openrc.mk index 8cc488a081..908b44190a 100644 --- a/package/openrc/openrc.mk +++ b/package/openrc/openrc.mk @@ -14,7 +14,6 @@ OPENRC_DEPENDENCIES = ncurses OPENRC_CONF_OPTS = \ -Dos=Linux \ - -Dpam=false \ -Dlibrcdir=/usr/libexec/rc \ -Dpkgconfig=false \ -Dsysvinit=true \ @@ -28,6 +27,13 @@ else OPENRC_CONF_OPTS += -Dselinux=disabled endif +ifeq ($(BR2_PACKAGE_LINUX_PAM),y) +OPENRC_CONF_OPTS += -Dpam=true +OPENRC_DEPENDENCIES += linux-pam +else +OPENRC_CONF_OPTS += -Dpam=false +endif + define OPENRC_INSTALL_SYSV_RCS_SCRIPT $(INSTALL) -D -m 0755 $(OPENRC_PKGDIR)/sysv-rcs \ $(TARGET_DIR)/etc/init.d/sysv-rcs