]> git.ipfire.org Git - ipfire-3.x.git/blame - pkgs/core/cracklib/cracklib.nm
coreutils: Update package to be built with the new version of the buildsystem.
[ipfire-3.x.git] / pkgs / core / cracklib / cracklib.nm
CommitLineData
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
25include $(PKGROOT)/Include
26
27PKG_NAME = cracklib
28PKG_VER = 2.8.12
29PKG_REL = 0
30
31PKG_MAINTAINER =
32PKG_GROUP = Security/Password
33PKG_URL = http://sourceforge.net/projects/cracklib/
34PKG_LICENSE = GPLv2
35PKG_SUMMARY = A password-checking library.
36
37PKG_DEPS += python
38
39define PKG_DESCRIPTION
40 CrackLib tests passwords to determine whether they match certain \
41 security-oriented characteristics, with the purpose of stopping users \
42 from choosing passwords that are easy to guess. CrackLib performs \
43 several tests on passwords: it tries to generate words from a username \
44 and gecos entry and checks those words against the password; it checks \
45 for simplistic patterns in passwords; and it checks for the password \
46 in a dictionary.
47endef
48
49PKG_TARBALL = $(THISAPP).tar.gz
50PKG_OBJECTS += cracklib-words-20080507.gz
51
80ed332f
SS
52CONFIGURE_OPTIONS += \
53 --with-default-dict=/lib/cracklib/pw_dict \
54 --with-python \
55 --disable-static
bfbb4b80 56
80ed332f 57define STAGE_INSTALL_CMDS
bfbb4b80
MT
58 -mkdir -pv $(BUILDROOT)/{,usr/}lib
59 mv -v $(BUILDROOT)/usr/lib/libcrack.so.2* $(BUILDROOT)/lib
60 ln -vsf ../../lib/libcrack.so.2.8.0 $(BUILDROOT)/usr/lib/libcrack.so
61
62 -mkdir -pv $(BUILDROOT)/usr/share/dict
63 install -v -m644 -D $(DIR_DL)/cracklib-words-20080507.gz \
64 $(BUILDROOT)/usr/share/dict/cracklib-words.gz
65 gunzip -v $(BUILDROOT)/usr/share/dict/cracklib-words.gz
66 ln -v -s cracklib-words $(BUILDROOT)/usr/share/dict/words
67 echo -ne "$(DISTRO_NAME)\n$(DISTRO_SNAME)\n" >> \
68 $(BUILDROOT)/usr/share/dict/cracklib-extra-words
69
70 -mkdir -pv $(BUILDROOT)/lib/cracklib
07bcbad2 71 cd $(DIR_APP) && chmod a+x util/cracklib-{format,packer}
bfbb4b80
MT
72 cd $(DIR_APP) && util/cracklib-format \
73 $(BUILDROOT)/usr/share/dict/cracklib-words \
74 $(BUILDROOT)/usr/share/dict/cracklib-extra-words | \
75 util/cracklib-packer \
76 $(BUILDROOT)/lib/cracklib/pw_dict
77endef