summaryrefslogtreecommitdiffstats
path: root/package/linux-pam
diff options
context:
space:
mode:
authorStefan Sørensen <stefan.sorensen@spectralink.com>2017-05-11 23:04:47 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-05-11 23:16:18 +0200
commitd8d5f3c7e017e7b82083d0e050e5a0e8ddabb97d (patch)
tree988a077b7055ff399b4a233a53dd75616e4832ec /package/linux-pam
parentd4718319b73a97ee11b043bdde80b1e05017cf48 (diff)
downloadbuildroot-d8d5f3c7e017e7b82083d0e050e5a0e8ddabb97d.tar.gz
buildroot-d8d5f3c7e017e7b82083d0e050e5a0e8ddabb97d.zip
linux-pam: add optional support for cracklib
Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/linux-pam')
-rw-r--r--package/linux-pam/linux-pam.mk7
1 files changed, 7 insertions, 0 deletions
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 \
OpenPOWER on IntegriCloud