update to 2.8.1

This commit is contained in:
Nalin Dahyabhai 2005-03-16 19:45:16 +00:00
parent e675f09b61
commit 669a945692
3 changed files with 55 additions and 36 deletions

View File

@ -26,3 +26,5 @@ other-names.gz
sf.gz sf.gz
shakespeare.gz shakespeare.gz
surnames.finnish.gz surnames.finnish.gz
cracklib-words.gz
cracklib-2.8.1.tar.gz

View File

@ -1,10 +1,14 @@
# Reflects the values hard-coded in various Makefile.am's in the source tree.
%define dictpath %{_datadir}/cracklib/pw_dict
Summary: A password-checking library. Summary: A password-checking library.
Name: cracklib Name: cracklib
Version: 2.7 Version: 2.8.1
Release: 30 Release: 1
Group: System Environment/Libraries Group: System Environment/Libraries
Source0: http://www.crypticide.org/users/alecm/security/cracklib,%{version}.tgz Source0: http://prdownloads.sourceforge.net/cracklib/cracklib-%{version}.tar.gz
Source1: crack.h Source1: http://prdownloads.sourceforge.net/cracklib/cracklib-words.gz
Source10: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Domains.gz Source10: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Domains.gz
Source11: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Dosref.gz Source11: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Dosref.gz
Source12: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Ftpsites.gz Source12: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Ftpsites.gz
@ -32,16 +36,11 @@ Source33: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.french.gz
Source34: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.hp.gz Source34: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.hp.gz
Source35: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/other-names.gz Source35: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/other-names.gz
Source36: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/surnames.finnish.gz Source36: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/surnames.finnish.gz
Source37: cracklib.magic
Url: http://www.crypticide.org/users/alecm/ Url: http://www.crypticide.org/users/alecm/
License: Artistic License: Artistic
Patch0: cracklib-2.7-rh.patch Buildroot: %{_tmppath}/%{name}-%{version}-root
Patch1: cracklib-2.7-nss.patch
Patch2: cracklib-2.7-check.patch
Patch3: cracklib-2.7-64.patch
Buildroot: %{_tmppath}/%{name}-root
BuildPrereq: gzip, words BuildPrereq: gzip, words
Requires: cracklib-dicts@%{_arch} = %{version}-%{release} Conflicts: cracklib-dicts < 2.8
%description %description
CrackLib tests passwords to determine whether they match certain CrackLib tests passwords to determine whether they match certain
@ -65,8 +64,6 @@ CrackLib, you will also want to install the cracklib-dicts package.
Summary: The standard CrackLib dictionaries. Summary: The standard CrackLib dictionaries.
Group: System Environment/Libraries Group: System Environment/Libraries
BuildRequires: words >= 2-13 BuildRequires: words >= 2-13
# Note to other packagers: do NOT require this, it will eventually go away.
Provides: cracklib-dicts@%{_arch} = %{version}-%{release}
%description dicts %description dicts
The cracklib-dicts package includes the CrackLib dictionaries. The cracklib-dicts package includes the CrackLib dictionaries.
@ -77,41 +74,44 @@ contains the utilities necessary for the creation of new dictionaries.
If you are installing CrackLib, you should also install cracklib-dicts. If you are installing CrackLib, you should also install cracklib-dicts.
%prep %prep
%setup -n cracklib,%{version} -q %setup -q
%patch0 -p1 -b .rh
%patch1 -p1 -b .nss
%patch2 -p1 -b .check
%patch3 -p1 -b .64
cp %{SOURCE1} cracklib/crack.h
mkdir cracklib-dicts mkdir cracklib-dicts
for dict in %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} \ for dict in %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} \
%{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} \ %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} \
%{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE24} \ %{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE24} \
%{SOURCE25} %{SOURCE26} %{SOURCE27} %{SOURCE28} %{SOURCE29} \ %{SOURCE25} %{SOURCE26} %{SOURCE27} %{SOURCE28} %{SOURCE29} \
%{SOURCE30} %{SOURCE31} %{SOURCE32} %{SOURCE33} %{SOURCE34} \ %{SOURCE30} %{SOURCE31} %{SOURCE32} %{SOURCE33} %{SOURCE34} \
%{SOURCE35} %{SOURCE36} %{SOURCE35} %{SOURCE36} %{SOURCE1}
do do
cp -fv ${dict} cracklib-dicts/ cp -fv ${dict} cracklib-dicts/
done done
gunzip cracklib-dicts/*
%build %build
make all \ %configure --with-pic
DICTPATH=%{_libdir}/cracklib_dict \ make
libdir=%{_libdir}
%clean %clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%install %install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_sbindir}} make install DESTDIR=$RPM_BUILD_ROOT
make install \ ./util/cracklib-format cracklib-dicts/* | \
ROOT=$RPM_BUILD_ROOT \ ./util/cracklib-packer $RPM_BUILD_ROOT/%{dictpath}
includedir=%{_includedir} \ sed s,/usr/lib/cracklib_dict,%{dictpath},g lib/crack.h > $RPM_BUILD_ROOT/%{_includedir}/crack.h
DICTPATH=%{_libdir}/cracklib_dict \ ln -s cracklib-format $RPM_BUILD_ROOT/%{_sbindir}/mkdict
libdir=%{_libdir} \ ln -s cracklib-packer $RPM_BUILD_ROOT/%{_sbindir}/packer
sbindir=%{_sbindir} touch $RPM_BUILD_ROOT/top
toprelpath=..
touch $RPM_BUILD_ROOT/top
while ! test -f $RPM_BUILD_ROOT/%{_libdir}/$toprelpath/top ; do
toprelpath=../$toprelpath
done
rm -f $RPM_BUILD_ROOT/top
ln -s $toprelpath%{dictpath}.hwm $RPM_BUILD_ROOT/%{_libdir}/cracklib_dict.hwm
ln -s $toprelpath%{dictpath}.pwd $RPM_BUILD_ROOT/%{_libdir}/cracklib_dict.pwd
ln -s $toprelpath%{dictpath}.pwi $RPM_BUILD_ROOT/%{_libdir}/cracklib_dict.pwi
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
@ -122,16 +122,32 @@ make install \
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc README MANIFEST LICENCE HISTORY POSTER $RPM_SOURCE_DIR/cracklib.magic %doc README README-WORDS NEWS doc/LICENCE AUTHORS
%{_includedir}/* %{_includedir}/*
%{_libdir}/lib* %{_libdir}/libcrack.*
%dir %{_datadir}/cracklib
%{_datadir}/cracklib/cracklib.magic
%{_sbindir}/*cracklib*
%files dicts %files dicts
%defattr(-,root,root) %defattr(-,root,root)
%{_sbindir}/* %dir %{_datadir}/cracklib
%{_libdir}/cracklib_dict* %{_datadir}/cracklib/pw_dict.*
%{_libdir}/cracklib_dict.*
%{_sbindir}/mkdict
%{_sbindir}/packer
%changelog %changelog
* Wed Mar 16 2005 Nalin Dahyabhai <nalin@redhat.com> 2.8.1-1
- update to 2.8.1
- moves dictionary to new default location under %%{_datadir} -- the
dictionary format is the same across all architectures
- renames "packer" to "cracklib-packer"
- conflict with cracklib-dicts < 2.8, where the on-disk format was not
compatible on 64-bit arches due to now-fixed cleanliness bugs
- move binaries for manipulating and checking words against dictionaries
from -dicts into the main package
* Mon Jan 3 2005 Nalin Dahyabhai <nalin@redhat.com> 2.7-30 * Mon Jan 3 2005 Nalin Dahyabhai <nalin@redhat.com> 2.7-30
- rebuild - rebuild

View File

@ -13,7 +13,6 @@ c575d3302d3a6beb9daef6a492ba024a Python.gz
d2af1d5bfb80515129632a5d5cd106f7 Trek.gz d2af1d5bfb80515129632a5d5cd106f7 Trek.gz
c262148af56614d9b33946c4758e101b cartoon.gz c262148af56614d9b33946c4758e101b cartoon.gz
5e35a78582c233f8b703f1dabf264788 common-passwords.txt.gz 5e35a78582c233f8b703f1dabf264788 common-passwords.txt.gz
7f810e310c7f2df33d1eaa2b41ab2435 cracklib,2.7.tgz
9296e6866c48522d35440c921dfac538 etc-hosts.gz 9296e6866c48522d35440c921dfac538 etc-hosts.gz
056193ded99b178046e87e6fb4300ebf famous.gz 056193ded99b178046e87e6fb4300ebf famous.gz
5857e228e763eb8300a8f2d3a424d766 fast-names.gz 5857e228e763eb8300a8f2d3a424d766 fast-names.gz
@ -26,3 +25,5 @@ f70810a2ba08f95df6787afe0eba2907 other-names.gz
a2bd31ce25a3057b61d2e5a1182d93a9 sf.gz a2bd31ce25a3057b61d2e5a1182d93a9 sf.gz
15ec61296de799eaa8111cfabbcbb44f shakespeare.gz 15ec61296de799eaa8111cfabbcbb44f shakespeare.gz
c03b38448aefcde059e6fcfb20784f2c surnames.finnish.gz c03b38448aefcde059e6fcfb20784f2c surnames.finnish.gz
575a44add4db95b43c7abb46b307950f cracklib-words.gz
a9bbfaeb86a577ee8d2779a5a66f9245 cracklib-2.8.1.tar.gz