]>
Commit | Line | Data |
---|---|---|
6dbdc4dc MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
ca4c785e | 4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # |
6dbdc4dc MT |
5 | # # |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
27 | PKG_NAME = cracklib | |
28 | VER = 2.8.12 | |
ca4c785e | 29 | PKG_VER = 0 |
6dbdc4dc MT |
30 | |
31 | THISAPP = $(PKG_NAME)-$(VER) | |
32 | DL_FILE = $(THISAPP).tar.gz | |
33 | DIR_APP = $(DIR_SRC)/$(THISAPP) | |
34 | ||
6679675b | 35 | OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) |
6dbdc4dc | 36 | |
ca4c785e MT |
37 | MAINTAINER = |
38 | GROUP = Security/Password | |
39 | EXTRA = no | |
40 | DEBUG = no | |
41 | DEPS = | |
42 | ||
43 | URL = http://sourceforge.net/projects/cracklib/ | |
44 | LICENSE = GPLv2 | |
45 | SHORT_DESC = A password-checking library. | |
46 | ||
47 | define LONG_DESC | |
48 | CrackLib tests passwords to determine whether they match certain \ | |
49 | security-oriented characteristics, with the purpose of stopping users \ | |
50 | from choosing passwords that are easy to guess. CrackLib performs \ | |
51 | several tests on passwords: it tries to generate words from a username \ | |
52 | and gecos entry and checks those words against the password; it checks \ | |
53 | for simplistic patterns in passwords; and it checks for the password \ | |
54 | in a dictionary. | |
55 | endef | |
56 | ||
6dbdc4dc MT |
57 | ############################################################################### |
58 | # Top-level Rules | |
59 | ############################################################################### | |
60 | ||
ca4c785e MT |
61 | objects = $(DL_FILE) \ |
62 | cracklib-words-20080507.gz | |
63 | ||
64 | download: $(objects) | |
6dbdc4dc | 65 | |
28dfff92 MT |
66 | info: |
67 | $(DO_PKG_INFO) | |
68 | ||
6679675b | 69 | install: $(OBJECT) |
6dbdc4dc | 70 | |
ca4c785e MT |
71 | package: |
72 | @$(DO_PACKAGE) | |
6dbdc4dc | 73 | |
ca4c785e | 74 | $(objects): |
6dbdc4dc MT |
75 | @$(LOAD) |
76 | ||
77 | ############################################################################### | |
78 | # Installation Details | |
79 | ############################################################################### | |
80 | ||
ca4c785e | 81 | $(OBJECT): $(objects) |
6dbdc4dc | 82 | @$(PREBUILD) |
ca4c785e | 83 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE) |
3f3679c3 | 84 | -rm -rf /usr/share/dict |
6dbdc4dc | 85 | cd $(DIR_APP) && \ |
ca4c785e | 86 | ./configure \ |
f51c142c | 87 | $(CONFIGURE_ARCH) \ |
ca4c785e | 88 | --prefix=/usr \ |
6dbdc4dc MT |
89 | --disable-static \ |
90 | --with-default-dict=/lib/cracklib/pw_dict | |
91 | cd $(DIR_APP) && make $(PARALLELISMFLAGS) | |
92 | cd $(DIR_APP) && make install | |
93 | mv -v /usr/lib/libcrack.so.2* /lib | |
94 | ln -v -sf ../../lib/libcrack.so.2.8.0 /usr/lib/libcrack.so | |
95 | ||
ca4c785e MT |
96 | install -v -m644 -D $(DIR_DL)/cracklib-words-20080507.gz \ |
97 | /usr/share/dict/cracklib-words.gz | |
6dbdc4dc MT |
98 | gunzip -v /usr/share/dict/cracklib-words.gz |
99 | ln -v -s cracklib-words /usr/share/dict/words | |
100 | install -v -m755 -d /lib/cracklib | |
ca4c785e MT |
101 | echo -ne "$(NAME)\n$(SNAME)\n" >> /usr/share/dict/cracklib-extra-words |
102 | create-cracklib-dict /usr/share/dict/cracklib-words \ | |
103 | /usr/share/dict/cracklib-extra-words | |
6dbdc4dc MT |
104 | @rm -rf $(DIR_APP) |
105 | @$(POSTBUILD) |