blob: 287dab7b1410940747046d3baf909a7882614f05 [file] [log] [blame]
# Remove cracklib from PAM, to avoid breaking PAM and further dependencies
# This allows cracklib to be neatly severed from the system.
EXTRA_OECONF:append:gbmc = " --disable-cracklib"
DEPENDS:remove:gbmc = "cracklib"
RDEPENDS:${PN}-runtime:remove:gbmc = "pam-plugin-cracklib-suffix"
RDEPENDS:${PN}-xtests:remove:gbmc = "${MLPREFIX}pam-plugin-cracklib-${libpam_suffix}"
do_install:append:gbmc() {
# Remove reference to cracklib library from PAM config file
sed -i '/pam_cracklib.so/d' ${D}${sysconfdir}/pam.d/common-password
}