nixpkgs/pkgs/os-specific/linux/pam/pam-cracklib.patch
Armijn Hemel c82afd131d add a patch to use the cracklib dictionairy we built (cracklib package)
svn path=/nixpkgs/trunk/; revision=4130
2005-10-25 17:39:55 +00:00

35 lines
1.4 KiB
Diff

diff -ruN Linux-PAM-0.80/configure Linux-PAM-0.80.new/configure
--- Linux-PAM-0.80/configure 2005-07-04 14:09:55.000000000 +0200
+++ Linux-PAM-0.80.new/configure 2005-10-25 19:30:29.000000000 +0200
@@ -6090,18 +6090,18 @@
DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
/usr/local/lib /usr/local/share/lib /usr/share/cracklib"
DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
-CRACKLIB_DICTPATH=""
-for d in $DICT_DIR_CANDIDATES ; do
- for f in $DICT_FILE_CANDIDATES ; do
- if test -r $d/$f.hwm ; then
- CRACKLIB_DICTPATH=$d/$f
- break 2
- elif test -r $d/dict/$f.hwm ; then
- CRACKLIB_DICTPATH=$d/dict/$f
- break 2
- fi
- done
-done
+#CRACKLIB_DICTPATH=""
+#for d in $DICT_DIR_CANDIDATES ; do
+# for f in $DICT_FILE_CANDIDATES ; do
+# if test -r $d/$f.hwm ; then
+# CRACKLIB_DICTPATH=$d/$f
+# break 2
+# elif test -r $d/dict/$f.hwm ; then
+# CRACKLIB_DICTPATH=$d/dict/$f
+# break 2
+# fi
+# done
+#done
if test -z "$CRACKLIB_DICTPATH" ; then
{ echo "$as_me:$LINENO: WARNING: none found - pam_cracklib will not be built" >&5
echo "$as_me: WARNING: none found - pam_cracklib will not be built" >&2;}