]> git.ipfire.org Git - ipfire-3.x.git/blame - lfs/cracklib
Updated htop to 0.8.1.
[ipfire-3.x.git] / lfs / cracklib
CommitLineData
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
25include Config
26
27PKG_NAME = cracklib
8985a698
MT
28PKG_VER = 2.8.12
29PKG_REL = 0
6dbdc4dc 30
8985a698 31THISAPP = $(PKG_NAME)-$(PKG_VER)
6dbdc4dc
MT
32DL_FILE = $(THISAPP).tar.gz
33DIR_APP = $(DIR_SRC)/$(THISAPP)
34
6679675b 35OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
6dbdc4dc 36
ca4c785e
MT
37MAINTAINER =
38GROUP = Security/Password
39EXTRA = no
40DEBUG = no
47815f74 41DEPS = python
ca4c785e
MT
42
43URL = http://sourceforge.net/projects/cracklib/
44LICENSE = GPLv2
45SHORT_DESC = A password-checking library.
46
47define 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.
55endef
56
6dbdc4dc
MT
57###############################################################################
58# Top-level Rules
59###############################################################################
60
ca4c785e
MT
61objects = $(DL_FILE) \
62 cracklib-words-20080507.gz
63
64download: $(objects)
6dbdc4dc 65
28dfff92
MT
66info:
67 $(DO_PKG_INFO)
68
6679675b 69install: $(OBJECT)
6dbdc4dc 70
ca4c785e
MT
71package:
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)