1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Security/Password
11 url = http://sourceforge.net/projects/cracklib/
13 summary = A password-checking library.
16 CrackLib tests passwords to determine whether they match certain \
17 security-oriented characteristics, with the purpose of stopping users \
18 from choosing passwords that are easy to guess. CrackLib performs \
19 several tests on passwords: it tries to generate words from a username \
20 and gecos entry and checks those words against the password; it checks \
21 for simplistic patterns in passwords; and it checks for the password \
26 sources += cracklib-words-20080507.gz
33 configure_options += \
34 --with-default-dict=/lib/cracklib/pw_dict \
38 # Only extract the source tarball.
40 cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/%{thisapp}.tar.gz
47 mkdir -pv %{BUILDROOT}/{,usr/}lib
48 mv -v %{BUILDROOT}/usr/lib/libcrack.so.2* %{BUILDROOT}/lib
49 ln -vsf ../../lib/libcrack.so.2.8.0 %{BUILDROOT}/usr/lib/libcrack.so
51 mkdir -pv %{BUILDROOT}/usr/share/dict
52 install -v -m644 -D %{DIR_DL}/cracklib-words-20080507.gz \
53 %{BUILDROOT}/usr/share/dict/cracklib-words.gz
54 gunzip -v %{BUILDROOT}/usr/share/dict/cracklib-words.gz
55 ln -v -s cracklib-words %{BUILDROOT}/usr/share/dict/words
56 echo -ne "%{DISTRO_NAME}\n%{DISTRO_SNAME}\n" >> \
57 %{BUILDROOT}/usr/share/dict/cracklib-extra-words
59 mkdir -pv %{BUILDROOT}/lib/cracklib
60 chmod a+x util/cracklib-{format,packer}
61 util/cracklib-format \
62 %{BUILDROOT}/usr/share/dict/cracklib-words \
63 %{BUILDROOT}/usr/share/dict/cracklib-extra-words | \
64 util/cracklib-packer \
65 %{BUILDROOT}/lib/cracklib/pw_dict
71 requires = %{name}-dicts
78 # We build an extra package with the dictionaries.
80 summary = Dictionaries for %{thisapp}.
81 description = %{summary}
89 # We build an extra python package with the bindings for it.
90 package python-cracklib
91 summary = Python bindings for ${thisapp}.
92 description = %{summary}
94 files = /usr/lib*/python*