]>
Commit | Line | Data |
---|---|---|
bfbb4b80 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
bfbb4b80 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = cracklib |
7 | version = 2.8.12 | |
8 | release = 1 | |
bfbb4b80 | 9 | |
802ea3af MT |
10 | groups = Security/Password |
11 | url = http://sourceforge.net/projects/cracklib/ | |
12 | license = GPLv2 | |
13 | summary = A password-checking library. | |
bfbb4b80 | 14 | |
802ea3af | 15 | description |
bfbb4b80 MT |
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. | |
802ea3af MT |
23 | end |
24 | ||
25 | source_dl = | |
26 | sources += cracklib-words-20080507.gz | |
bfbb4b80 | 27 | |
802ea3af MT |
28 | build |
29 | requires | |
30 | python-devel | |
31 | end | |
bfbb4b80 | 32 | |
802ea3af MT |
33 | configure_options += \ |
34 | --with-default-dict=/lib/cracklib/pw_dict \ | |
35 | --with-python \ | |
36 | --disable-static | |
6ecc8c00 | 37 | |
802ea3af MT |
38 | # Only extract the source tarball. |
39 | prepare | |
40 | cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/%{thisapp}.tar.gz | |
6ecc8c00 | 41 | |
802ea3af MT |
42 | # Apply all patches. |
43 | %{MACRO_PATCHES} | |
44 | end | |
6ecc8c00 | 45 | |
802ea3af MT |
46 | install_cmds |
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 | |
bfbb4b80 | 50 | |
802ea3af MT |
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 | |
bfbb4b80 | 58 | |
802ea3af MT |
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 | |
bfbb4b80 | 68 | |
802ea3af MT |
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 | end |