package/openrc: add linux-pam support

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Adam Duskett 2023-10-17 13:08:07 +02:00 committed by Thomas Petazzoni
parent 730c90faa3
commit 3f986eaeb2

View File

@ -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