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