@@ -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 += "\
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(-)