blob: 287dab7b1410940747046d3baf909a7882614f05 [file] [log] [blame]
kasunath951f1aa2022-08-10 11:08:14 -07001# Remove cracklib from PAM, to avoid breaking PAM and further dependencies
2# This allows cracklib to be neatly severed from the system.
3
4EXTRA_OECONF:append:gbmc = " --disable-cracklib"
5
6DEPENDS:remove:gbmc = "cracklib"
7
8RDEPENDS:${PN}-runtime:remove:gbmc = "pam-plugin-cracklib-suffix"
9
10RDEPENDS:${PN}-xtests:remove:gbmc = "${MLPREFIX}pam-plugin-cracklib-${libpam_suffix}"
11
12do_install:append:gbmc() {
13 # Remove reference to cracklib library from PAM config file
14 sed -i '/pam_cracklib.so/d' ${D}${sysconfdir}/pam.d/common-password
15}