Cracklib
From CBLFS
Revision as of 21:15, 24 September 2006 by Cblfsadmin (talk | contribs)
Download Source: | http://prdownloads.sourceforge.net/cracklib/cracklib-2.8.9.tar.gz |
---|---|
Download Source: | http://prdownloads.sourceforge.net/cracklib/cracklib-words.gz |
Dependencies
Optional
Non-Multilib
Configure and compile the package:
./configure --prefix=/usr -with-default-dict=/lib/cracklib/pw_dict && make
Install the package:
make install && LIBNAME=`cat lib/libcrack.la | grep library_names | cut -f2 -d"'" | cut -f2 -d" "` && mv /usr/lib/$LIBNAME /lib && LIBNAME=`cat lib/libcrack.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && mv /usr/lib/$LIBNAME /lib && ln -sf ../../lib/$LIBNAME /usr/lib/libcrack.so
Install the dictionary:
install -m644 -D ../cracklib-words.gz /usr/share/dict/cracklib-words.gz gunzip -f /usr/share/dict/cracklib-words.gz ln -sf cracklib-words /usr/share/dict/words install -m755 -d /lib/cracklib create-cracklib-dict /usr/share/dict/cracklib-words /usr/share/dict/cracklib-extra-words
Multilib
32Bit
Configure and compile the package:
CC="gcc ${BUILD32}" USE_ARCH=32 ./configure --prefix=/usr -with-default-dict=/lib/cracklib/pw_dict && make
Install the package:
make install && LIBNAME=`cat lib/libcrack.la | grep library_names | cut -f2 -d"'" | cut -f2 -d" "` && mv /usr/lib/$LIBNAME /lib && LIBNAME=`cat lib/libcrack.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && mv /usr/lib/$LIBNAME /lib && ln -sf ../../lib/$LIBNAME /usr/lib/libcrack.so
N32
Configure and compile the package:
CC="gcc ${BUILDN32}" USE_ARCH=n32 ./configure --prefix=/usr \ --libdir=/usr/lib32 -with-default-dict=/lib/cracklib/pw_dict && make
Install the package:
make install && LIBNAME=`cat lib/libcrack.la | grep library_names | cut -f2 -d"'" | cut -f2 -d" "` && mv /usr/lib/$LIBNAME /lib32 && LIBNAME=`cat lib/libcrack.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && mv /usr/lib/$LIBNAME /lib32 && ln -sf ../../lib/$LIBNAME /usr/lib32/libcrack.so
64Bit
Configure and compile the package:
CC="gcc ${BUILDN64}" USE_ARCH=64 ./configure --prefix=/usr \ --libdir=/usr/lib64 -with-default-dict=/lib/cracklib/pw_dict && make
Install the package:
make install && LIBNAME=`cat lib/libcrack.la | grep library_names | cut -f2 -d"'" | cut -f2 -d" "` && mv /usr/lib/$LIBNAME /lib64 && LIBNAME=`cat lib/libcrack.la | grep library_names | cut -f2 -d"'" | cut -f1 -d" "` && mv /usr/lib/$LIBNAME /lib64 && ln -sf ../../lib/$LIBNAME /usr/lib64/libcrack.so
Install the dictionary:
install -m644 -D ../cracklib-words.gz /usr/share/dict/cracklib-words.gz gunzip -f /usr/share/dict/cracklib-words.gz ln -sf cracklib-words /usr/share/dict/words install -m755 -d /lib/cracklib create-cracklib-dict /usr/share/dict/cracklib-words /usr/share/dict/cracklib-extra-words