]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = cracklib | |
7 | version = 2.8.12 | |
8 | release = 2 | |
9 | ||
10 | groups = Security/Password | |
11 | url = http://sourceforge.net/projects/cracklib/ | |
12 | license = GPLv2 | |
13 | summary = A password-checking library. | |
14 | ||
15 | description | |
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 \ | |
22 | in a dictionary. | |
23 | end | |
24 | ||
25 | source_dl = | |
26 | sources += cracklib-words-20080507.gz | |
27 | ||
28 | build | |
29 | requires | |
30 | python-devel | |
31 | end | |
32 | ||
33 | configure_options += \ | |
34 | --with-default-dict=/lib/cracklib/pw_dict \ | |
35 | --with-python \ | |
36 | --disable-static | |
37 | ||
38 | # Only extract the source tarball. | |
39 | prepare | |
40 | cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/%{thisapp}.tar.gz | |
41 | ||
42 | # Apply all patches. | |
43 | %{MACRO_PATCHES} | |
44 | end | |
45 | ||
46 | install_cmds | |
47 | mkdir -pv %{BUILDROOT}/{,usr/}%{lib} | |
48 | mv -v %{BUILDROOT}%{libdir}/libcrack.so.2* %{BUILDROOT}/%{lib} | |
49 | ln -vsf ../../%{lib}/libcrack.so.2.8.0 %{BUILDROOT}%{libdir}/libcrack.so | |
50 | ||
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 | |
58 | ||
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 | |
66 | end | |
67 | end | |
68 | ||
69 | packages | |
70 | package %{name} | |
71 | requires = %{name}-dicts | |
72 | end | |
73 | ||
74 | package %{name}-devel | |
75 | template DEVEL | |
76 | end | |
77 | ||
78 | # We build an extra package with the dictionaries. | |
79 | package %{name}-dicts | |
80 | summary = Dictionaries for %{thisapp}. | |
81 | description = %{summary} | |
82 | ||
83 | files | |
84 | /lib/cracklib | |
85 | /usr/share/dict* | |
86 | end | |
87 | end | |
88 | ||
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} | |
93 | ||
94 | files = /usr/lib*/python* | |
95 | end | |
96 | ||
97 | package %{name}-debuginfo | |
98 | template DEBUGINFO | |
99 | end | |
100 | end |