blob: 682f132b53177c8374614d65d549233e6649bfc3 [file] [log] [blame]
Patrick Williams12fc9392021-08-06 09:16:53 -05001FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
Brad Bishopf61a81a2019-02-04 14:28:33 -05002
3SRC_URI += " file://pam.d/common-password \
4 file://pam.d/common-account \
5 file://pam.d/common-auth \
Richard Marian Thomaiyar2b597052019-11-02 21:24:29 +05306 file://pam.d/common-session \
Brad Bishopf61a81a2019-02-04 14:28:33 -05007 "
8
Patrick Williams12fc9392021-08-06 09:16:53 -05009RDEPENDS:${PN}-runtime += "${MLPREFIX}pam-plugin-cracklib-${libpam_suffix} \
Brad Bishopf61a81a2019-02-04 14:28:33 -050010 ${MLPREFIX}pam-plugin-tally2-${libpam_suffix} \
11 ${MLPREFIX}pam-plugin-pwhistory-${libpam_suffix} \
Richard Marian Thomaiyar02292602020-01-28 15:02:37 +053012 ${MLPREFIX}pam-plugin-succeed-if-${libpam_suffix} \
Richard Marian Thomaiyar377204d2020-05-28 11:07:18 +053013 ${MLPREFIX}pam-plugin-localuser-${libpam_suffix} \
Brad Bishopf61a81a2019-02-04 14:28:33 -050014 "
15
Patrick Williams12fc9392021-08-06 09:16:53 -050016do_install:append() {
Matt Spinler31ab8e72018-10-16 11:32:13 -050017 # The libpam recipe will always add a pam_systemd.so line to
18 # common-session if systemd is enabled; however systemd only
19 # builds pam_systemd.so if logind is enabled, and we disable
20 # that package. So, remove the pam_systemd.so line here.
21 sed -i '/pam_systemd.so/d' ${D}${sysconfdir}/pam.d/common-session
22}