From d8d5f3c7e017e7b82083d0e050e5a0e8ddabb97d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20S=C3=B8rensen?= Date: Thu, 11 May 2017 23:04:47 +0200 Subject: [PATCH] linux-pam: add optional support for cracklib MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Sørensen Signed-off-by: Thomas Petazzoni --- package/linux-pam/linux-pam.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/linux-pam/linux-pam.mk b/package/linux-pam/linux-pam.mk index 3522415268..fb2f99cb1f 100644 --- a/package/linux-pam/linux-pam.mk +++ b/package/linux-pam/linux-pam.mk @@ -44,6 +44,13 @@ else LINUX_PAM_CONF_OPTS += --disable-audit endif +ifeq ($(BR2_PACKAGE_CRACKLIB),y) +LINUX_PAM_CONF_OPTS += --enable-cracklib +LINUX_PAM_DEPENDENCIES += cracklib +else +LINUX_PAM_CONF_OPTS += --disable-cracklib +endif + # Install default pam config (deny everything except login) define LINUX_PAM_INSTALL_CONFIG $(INSTALL) -m 0644 -D package/linux-pam/login.pam \ -- 2.30.2