diff mbox series

[meta-filesystems,5/5] zfs: enable packageconfig pam for pam distro feature

Message ID 20250106082152.882222-5-yi.zhao@windriver.com
State Accepted
Headers show
Series [meta-oe,1/5] snapper: set pam module path to ${base_libdir}/security | expand

Commit Message

Yi Zhao Jan. 6, 2025, 8:21 a.m. UTC
Enable pam packageconfig if pam is in DISTRO_FEATURES. Also set pam
module path to ${base_libdir}/security as this is the default path in
libpam.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 meta-filesystems/recipes-filesystems/zfs/zfs_2.2.5.bb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-filesystems/recipes-filesystems/zfs/zfs_2.2.5.bb b/meta-filesystems/recipes-filesystems/zfs/zfs_2.2.5.bb
index 1b41deb099..b24774311d 100644
--- a/meta-filesystems/recipes-filesystems/zfs/zfs_2.2.5.bb
+++ b/meta-filesystems/recipes-filesystems/zfs/zfs_2.2.5.bb
@@ -20,9 +20,11 @@  inherit module-base pkgconfig autotools bash-completion
 
 DEPENDS = "virtual/kernel zlib util-linux libtirpc openssl curl"
 
-PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd sysvinit', d)}"
+PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd sysvinit', d)} \
+                  ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
+                 "
 
-PACKAGECONFIG[pam] = "--enable-pam --with-pamconfigsdir=${datadir}/pam-configs --with-pammoduledir=${libdir}/security, --disable-pam"
+PACKAGECONFIG[pam] = "--enable-pam --with-pamconfigsdir=${datadir}/pam-configs --with-pammoduledir=${base_libdir}/security, --disable-pam"
 PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,"
 PACKAGECONFIG[sysvinit] = "--enable-sysvinit,--disable-sysvinit,"
 
@@ -69,6 +71,8 @@  FILES:${PN} += "\
     ${bindir} \
     ${libexecdir}/${BPN} \
     ${libdir} \
+    ${datadir}/pam-configs \
+    ${base_libdir}/security \
 "
 
 FILES:${PN}-dev += "\