cvsdist 78c162
Summary: A password-checking library.
cvsdist 78c162
Name: cracklib
cvsdist 78c162
Version: 2.7
cvsdist 78c162
Release: 8
cvsdist 78c162
Group: System Environment/Libraries
cvsdist 78c162
Source0: http://www.users.dircon.co.uk/~crypto/download/cracklib,%{version}.tgz
cvsdist 78c162
Source1: crack.h
cvsdist 78c162
Source10: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Domains.gz
cvsdist 78c162
Source11: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Dosref.gz
cvsdist 78c162
Source12: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Ftpsites.gz
cvsdist 78c162
Source13: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Jargon.gz
cvsdist 78c162
Source14: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/common-passwords.txt.gz
cvsdist 78c162
Source15: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/etc-hosts.gz
cvsdist 78c162
Source16: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Movies.gz
cvsdist 78c162
Source17: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Python.gz
cvsdist 78c162
Source18: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Trek.gz
cvsdist 78c162
Source19: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/LCarrol.gz
cvsdist 78c162
Source20: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/Paradise.Lost.gz
cvsdist 78c162
Source21: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/cartoon.gz
cvsdist 78c162
Source22: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/myths-legends.gz
cvsdist 78c162
Source23: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/sf.gz
cvsdist 78c162
Source24: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/shakespeare.gz
cvsdist 78c162
Source25: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/ASSurnames.gz
cvsdist 78c162
Source26: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Congress.gz
cvsdist 78c162
Source27: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Family-Names.gz
cvsdist 78c162
Source28: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Given-Names.gz
cvsdist 78c162
Source29: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/famous.gz
cvsdist 78c162
Source30: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/fast-names.gz
cvsdist 78c162
Source31: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/female-names.gz
cvsdist 78c162
Source32: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/male-names.gz
cvsdist 78c162
Source33: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.french.gz
cvsdist 78c162
Source34: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.hp.gz
cvsdist 78c162
Source35: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/other-names.gz
cvsdist 78c162
Source36: ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/names/surnames.finnish.gz
cvsdist 78c162
Url: http://www.users.dircon.co.uk/~crypto/
cvsdist 78c162
Copyright: Artistic
cvsdist 78c162
Patch: cracklib-2.7-2-redhat.patch
cvsdist 78c162
Buildroot: %{_tmppath}/%{name}-root
cvsdist 78c162
BuildPrereq: gzip
cvsdist 78c162
cvsdist 78c162
%description
cvsdist 78c162
CrackLib tests passwords to determine whether they match certain
cvsdist 78c162
security-oriented characteristics. You can use CrackLib to stop
cvsdist 78c162
users from choosing passwords which would be easy to guess. CrackLib
cvsdist 78c162
performs certain tests: 
cvsdist 78c162
cvsdist 78c162
* It tries to generate words from a username and gecos entry and 
cvsdist 78c162
  checks those words against the password;
cvsdist 78c162
* It checks for simplistic patterns in passwords;
cvsdist 78c162
* It checks for the password in a dictionary.
cvsdist 78c162
cvsdist 78c162
CrackLib is actually a library containing a particular
cvsdist 78c162
C function which is used to check the password, as well as
cvsdist 78c162
other C functions. CrackLib is not a replacement for a passwd
cvsdist 78c162
program; it must be used in conjunction with an existing passwd
cvsdist 78c162
program.
cvsdist 78c162
cvsdist 78c162
Install the cracklib package if you need a program to check users'
cvsdist 78c162
passwords to see if they are at least minimally secure. If you
cvsdist 78c162
install CrackLib, you'll also want to install the cracklib-dicts
cvsdist 78c162
package.
cvsdist 78c162
cvsdist 78c162
%package dicts
cvsdist 78c162
Summary: The standard CrackLib dictionaries.
cvsdist 78c162
Group: System Environment/Libraries
cvsdist 78c162
Requires: words >= 2-13
cvsdist 78c162
cvsdist 78c162
%description dicts
cvsdist 78c162
The cracklib-dicts package includes the CrackLib dictionaries.
cvsdist 78c162
CrackLib will need to use the dictionary appropriate to your system,
cvsdist 78c162
which is normally put in /usr/share/dict/words.  Cracklib-dicts also contains
cvsdist 78c162
the utilities necessary for the creation of new dictionaries.
cvsdist 78c162
cvsdist 78c162
If you are installing CrackLib, you should also install cracklib-dicts.
cvsdist 78c162
cvsdist 78c162
%prep
cvsdist 78c162
%setup -n cracklib,%{version} -q
cvsdist 78c162
%patch -p1 -b .rh
cvsdist 78c162
cp %{SOURCE1} cracklib/crack.h
cvsdist 78c162
mkdir cracklib-dicts
cvsdist 78c162
for dict in %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} \
cvsdist 78c162
            %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} \
cvsdist 78c162
            %{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE24} \
cvsdist 78c162
            %{SOURCE25} %{SOURCE26} %{SOURCE27} %{SOURCE28} %{SOURCE29} \
cvsdist 78c162
            %{SOURCE30} %{SOURCE31} %{SOURCE32} %{SOURCE33} %{SOURCE34} \
cvsdist 78c162
            %{SOURCE35} %{SOURCE36}
cvsdist 78c162
do
cvsdist 78c162
	cp -fv ${dict} cracklib-dicts/
cvsdist 78c162
done
cvsdist 78c162
gunzip cracklib-dicts/*
cvsdist 78c162
cvsdist 78c162
%build
cvsdist 78c162
make all
cvsdist 78c162
cvsdist 78c162
%clean
cvsdist 78c162
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
cvsdist 78c162
cvsdist 78c162
%install
cvsdist 78c162
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
cvsdist 78c162
mkdir -p $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_sbindir}}
cvsdist 78c162
make install \
cvsdist 78c162
	ROOT=$RPM_BUILD_ROOT \
cvsdist 78c162
	includedir=%{_includedir} \
cvsdist 78c162
	libdir=%{_libdir} \
cvsdist 78c162
	sbindir=%{_sbindir}
cvsdist 78c162
strip $RPM_BUILD_ROOT%{_sbindir}/packer
cvsdist 78c162
cvsdist 78c162
%post -p /sbin/ldconfig
cvsdist 78c162
cvsdist 78c162
%postun -p /sbin/ldconfig
cvsdist 78c162
cvsdist 78c162
%files
cvsdist 78c162
%defattr(-,root,root)
cvsdist 78c162
%doc README MANIFEST LICENCE HISTORY POSTER
cvsdist 78c162
%{_includedir}/*
cvsdist 78c162
%{_libdir}/lib*
cvsdist 78c162
cvsdist 78c162
%files dicts
cvsdist 78c162
%defattr(-,root,root)
cvsdist 78c162
%{_sbindir}/*
cvsdist 78c162
%{_libdir}/cracklib_dict*
cvsdist 78c162
cvsdist 78c162
%changelog
cvsdist 78c162
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist 78c162
- automatic rebuild
cvsdist 78c162
cvsdist 78c162
* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 78c162
- FHS fixes
cvsdist 78c162
- fix undeclared function warnings from the new compiler
cvsdist 78c162
- fix URL
cvsdist 78c162
cvsdist 78c162
* Fri Apr 07 2000 Trond Eivind Glomsrød <teg@redhat.com>
cvsdist 78c162
- switched to use /usr/share/dict/words
cvsdist 78c162
cvsdist 78c162
* Tue Apr 06 1999 Preston Brown <pbrown@redhat.com>
cvsdist 78c162
- strip binaries
cvsdist 78c162
cvsdist 78c162
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist 78c162
- auto rebuild in the new build environment (release 4)
cvsdist 78c162
cvsdist 78c162
* Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
cvsdist 78c162
- build for glibc 2.1
cvsdist 78c162
cvsdist 78c162
* Sat May 09 1998 Prospector System <bugs@redhat.com>
cvsdist 78c162
- translations modified for de, fr, tr
cvsdist 78c162
cvsdist 78c162
* Tue Mar 10 1998 Cristian Gafton <gafton@redhat.com>
cvsdist 78c162
- updated to 2.7
cvsdist 78c162
- build shared libraries
cvsdist 78c162
cvsdist 78c162
* Mon Nov 03 1997 Donnie Barnes <djb@redhat.com>
cvsdist 78c162
- added -fPIC
cvsdist 78c162
cvsdist 78c162
* Mon Oct 13 1997 Donnie Barnes <djb@redhat.com>
cvsdist 78c162
- basic spec file cleanups
cvsdist 78c162
cvsdist 78c162
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
cvsdist 78c162
- built against glibc
cvsdist 78c162