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