]>
Commit | Line | Data |
---|---|---|
bfbb4b80 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
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 $(PKGROOT)/Include | |
26 | ||
27 | PKG_NAME = cracklib | |
28 | PKG_VER = 2.8.12 | |
9d7631c2 | 29 | PKG_REL = 1 |
bfbb4b80 MT |
30 | |
31 | PKG_MAINTAINER = | |
bb7d617c | 32 | PKG_GROUPS = Security/Password |
bfbb4b80 MT |
33 | PKG_URL = http://sourceforge.net/projects/cracklib/ |
34 | PKG_LICENSE = GPLv2 | |
35 | PKG_SUMMARY = A password-checking library. | |
36 | ||
9d7631c2 | 37 | PKG_BUILD_DEPS+= python-devel |
6ecc8c00 | 38 | PKG_DEPS += cracklib-dicts |
bfbb4b80 MT |
39 | |
40 | define PKG_DESCRIPTION | |
41 | CrackLib tests passwords to determine whether they match certain \ | |
42 | security-oriented characteristics, with the purpose of stopping users \ | |
43 | from choosing passwords that are easy to guess. CrackLib performs \ | |
44 | several tests on passwords: it tries to generate words from a username \ | |
45 | and gecos entry and checks those words against the password; it checks \ | |
46 | for simplistic patterns in passwords; and it checks for the password \ | |
47 | in a dictionary. | |
48 | endef | |
49 | ||
50 | PKG_TARBALL = $(THISAPP).tar.gz | |
51 | PKG_OBJECTS += cracklib-words-20080507.gz | |
52 | ||
6ecc8c00 MT |
53 | PKG_PACKAGES += $(PKG_NAME)-dicts $(PKG_NAME)-devel python-$(PKG_NAME) |
54 | ||
55 | ### We build an extra python package with the bindings for it. | |
56 | PKG_DESCRIPTION-python-cracklib = Python bindings for $(THISAPP). | |
57 | PKG_SUMMARY-python-cracklib = Python bindings for $(THISAPP). | |
58 | PKG_FILES-python-cracklib = /usr/lib/python* | |
59 | ||
60 | ### We build an extra package with the dictionaries. | |
61 | PKG_DESCRIPTION-cracklib-dicts = Dictionaries for $(THISAPP). | |
62 | PKG_SUMMARY-cracklib-dicts = Dictionaries for $(THISAPP). | |
63 | PKG_FILES-cracklib-dicts = /lib/cracklib /usr/share/dict* | |
64 | ||
80ed332f SS |
65 | CONFIGURE_OPTIONS += \ |
66 | --with-default-dict=/lib/cracklib/pw_dict \ | |
67 | --with-python \ | |
68 | --disable-static | |
bfbb4b80 | 69 | |
80ed332f | 70 | define STAGE_INSTALL_CMDS |
bfbb4b80 MT |
71 | -mkdir -pv $(BUILDROOT)/{,usr/}lib |
72 | mv -v $(BUILDROOT)/usr/lib/libcrack.so.2* $(BUILDROOT)/lib | |
73 | ln -vsf ../../lib/libcrack.so.2.8.0 $(BUILDROOT)/usr/lib/libcrack.so | |
74 | ||
75 | -mkdir -pv $(BUILDROOT)/usr/share/dict | |
76 | install -v -m644 -D $(DIR_DL)/cracklib-words-20080507.gz \ | |
77 | $(BUILDROOT)/usr/share/dict/cracklib-words.gz | |
78 | gunzip -v $(BUILDROOT)/usr/share/dict/cracklib-words.gz | |
79 | ln -v -s cracklib-words $(BUILDROOT)/usr/share/dict/words | |
80 | echo -ne "$(DISTRO_NAME)\n$(DISTRO_SNAME)\n" >> \ | |
81 | $(BUILDROOT)/usr/share/dict/cracklib-extra-words | |
82 | ||
83 | -mkdir -pv $(BUILDROOT)/lib/cracklib | |
07bcbad2 | 84 | cd $(DIR_APP) && chmod a+x util/cracklib-{format,packer} |
bfbb4b80 MT |
85 | cd $(DIR_APP) && util/cracklib-format \ |
86 | $(BUILDROOT)/usr/share/dict/cracklib-words \ | |
87 | $(BUILDROOT)/usr/share/dict/cracklib-extra-words | \ | |
88 | util/cracklib-packer \ | |
89 | $(BUILDROOT)/lib/cracklib/pw_dict | |
90 | endef |