source: scripts/blfs-scripts/blfs-cracklib.sh@ 873009c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 873009c was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.0 KB
Line 
1#!/bin/sh
2
3### cracklib ###
4
5cd ${SRC}
6LOG=cracklib-blfs.log
7SELF=`basename ${0}`
8set_buildenv
9set_libdirname
10setup_multiarch
11
12# Install the wordlist
13WORDLIST=cracklib_wordlist
14install -d -m755 /usr/share/dict
15install -m644 ${CONFIGS}/cracklib/${WORDLIST} /usr/share/dict
16ln -sf ${WORDLIST} /usr/share/dict/words
17echo `hostname` >> /usr/share/dict/extra.words
18
19unpack_tarball cracklib,${CRACKLIB_VER}
20cd ${PKGDIR}
21apply_patch cracklib,2.7-blfs-1
22
23if [ ! "${libdirname}" = "lib" ]; then
24 sed -i -e "s@/lib@/${libdirname}@g" Makefile
25 sed -i -e "s@/lib@/${libdirname}@g" cracklib/Makefile
26fi
27
28max_log_init cracklib ${CRACKLIB_VER} "blfs (shared)" ${BUILDLOGS} ${LOG}
29make CC="${CC-gcc} ${ARCH_CFLAGS}" \
30 LD="${LD-ld} ${ARCH_LDFLAGS}" \
31 DICTPATH=/${libdirname}/cracklib_dict all \
32 >> ${LOGFILE} 2>&1 &&
33echo " o Build OK" &&
34
35min_log_init ${INSTLOGS} &&
36make CC="${CC-gcc} ${ARCH_CFLAGS}" \
37 LD="${LD-ld} ${ARCH_LDFLAGS}" \
38 DICTPATH=/${libdirname}/cracklib_dict install \
39 >> ${LOGFILE} 2>&1 &&
40echo " o ALL OK" || barf
41
Note: See TracBrowser for help on using the repository browser.