From: Michael Tremer Date: Wed, 24 Sep 2008 18:04:50 +0000 (+0000) Subject: Added cracklib. X-Git-Tag: v3.0-alpha1~651 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6dbdc4dc5fca5fb4f72e5499f10e1bb4686ffe40;p=ipfire-3.x.git Added cracklib. --- diff --git a/lfs/cracklib b/lfs/cracklib new file mode 100644 index 000000000..4ae686329 --- /dev/null +++ b/lfs/cracklib @@ -0,0 +1,73 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2008 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +PKG_NAME = cracklib +VER = 2.8.12 + +THISAPP = $(PKG_NAME)-$(VER) +DL_FILE = $(THISAPP).tar.gz +DIR_APP = $(DIR_SRC)/$(THISAPP) + +TARGET = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) cracklib-words-20080507.gz + +install: $(TARGET) + +download : $(objects) + +$(objects) : + @$(LOAD) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : + @$(PREBUILD) + @rm -rf $(DIR_APP) + @cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && \ + ./configure --prefix=/usr \ + --disable-static \ + --with-default-dict=/lib/cracklib/pw_dict + cd $(DIR_APP) && make $(PARALLELISMFLAGS) + cd $(DIR_APP) && make install + mv -v /usr/lib/libcrack.so.2* /lib + ln -v -sf ../../lib/libcrack.so.2.8.0 /usr/lib/libcrack.so + + install -v -m644 -D $(DIR_DL)/cracklib-words-20080507.gz /usr/share/dict/cracklib-words.gz + gunzip -v /usr/share/dict/cracklib-words.gz + ln -v -s cracklib-words /usr/share/dict/words + install -v -m755 -d /lib/cracklib + echo -ne "$(NAME)\n$(SNAME)\n" >>/usr/share/dict/cracklib-extra-words + create-cracklib-dict /usr/share/dict/cracklib-words /usr/share/dict/cracklib-extra-words + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index d5876cf62..59db0e586 100755 --- a/make.sh +++ b/make.sh @@ -223,6 +223,7 @@ ipfire_build() { ### Building some general stuff # STAGE 2 + ipfire_make cracklib ipfire_make pam PASS=1 ipfire_make shadow ipfire_make pam PASS=2 diff --git a/src/rootfiles/core/03.cracklib b/src/rootfiles/core/03.cracklib new file mode 100644 index 000000000..f11b169fe --- /dev/null +++ b/src/rootfiles/core/03.cracklib @@ -0,0 +1,49 @@ +lib/cracklib +lib/cracklib/pw_dict.hwm +lib/cracklib/pw_dict.pwd +lib/cracklib/pw_dict.pwi +lib/libcrack.so.2 +lib/libcrack.so.2.8.0 +#usr/include/crack.h +#usr/include/packer.h +#usr/lib/libcrack.a +#usr/lib/libcrack.la +usr/lib/libcrack.so +#usr/lib/python2.5/site-packages/cracklibmodule.a +#usr/lib/python2.5/site-packages/cracklibmodule.la +usr/lib/python2.5/site-packages/cracklibmodule.so +usr/sbin/cracklib-check +usr/sbin/cracklib-format +usr/sbin/cracklib-packer +usr/sbin/cracklib-unpacker +usr/sbin/create-cracklib-dict +usr/share/cracklib +usr/share/cracklib/cracklib-small +usr/share/cracklib/cracklib.magic +usr/share/dict +usr/share/dict/cracklib-extra-words +usr/share/dict/cracklib-words +usr/share/dict/words +#usr/share/locale/cs/LC_MESSAGES/cracklib.mo +#usr/share/locale/da/LC_MESSAGES/cracklib.mo +#usr/share/locale/de/LC_MESSAGES/cracklib.mo +#usr/share/locale/el/LC_MESSAGES/cracklib.mo +#usr/share/locale/es/LC_MESSAGES/cracklib.mo +#usr/share/locale/fi/LC_MESSAGES/cracklib.mo +#usr/share/locale/fr/LC_MESSAGES/cracklib.mo +#usr/share/locale/hu/LC_MESSAGES/cracklib.mo +#usr/share/locale/it/LC_MESSAGES/cracklib.mo +#usr/share/locale/ja/LC_MESSAGES/cracklib.mo +#usr/share/locale/lt/LC_MESSAGES/cracklib.mo +#usr/share/locale/nb/LC_MESSAGES/cracklib.mo +#usr/share/locale/nl/LC_MESSAGES/cracklib.mo +#usr/share/locale/pa/LC_MESSAGES/cracklib.mo +#usr/share/locale/pl/LC_MESSAGES/cracklib.mo +#usr/share/locale/pt/LC_MESSAGES/cracklib.mo +#usr/share/locale/pt_BR/LC_MESSAGES/cracklib.mo +#usr/share/locale/sk/LC_MESSAGES/cracklib.mo +#usr/share/locale/sl_SI +#usr/share/locale/sl_SI/LC_MESSAGES +#usr/share/locale/sl_SI/LC_MESSAGES/cracklib.mo +#usr/share/locale/zh_CN/LC_MESSAGES/cracklib.mo +#usr/share/locale/zh_TW/LC_MESSAGES/cracklib.mo