Libcrack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a multi-part message in MIME format.

------=_NextPart_000_002E_01C1C068.682F0BD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Is there a reason that the libcrack rpm is so different from the libcrack
sources?  I've been trying to compile php with libcrack support, and had to
build a new rpm of libcrack to do it.  Attached is my spec file and patch
for cracklib which lets me compile it.  Feel free to use it as needed.  I
understand that packer.h is not a great name for the main header file for
cracklib, but if everything that links to cracklib includes it, it should be
there.  Perhaps we could ask the cracklib maintainer nicely to change the
name of his header file to crack.h to make our lives easier.

Joseph

------=_NextPart_000_002E_01C1C068.682F0BD0
Content-Type: application/octet-stream;
	name="cracklib.spec"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="cracklib.spec"

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

------=_NextPart_000_002E_01C1C068.682F0BD0
Content-Type: application/octet-stream;
	name="cracklib-2.7-mico.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="cracklib-2.7-mico.patch"

diff -uNr cracklib,2.7/cracklib/Makefile =
cracklib,2.7-changed/cracklib/Makefile=0A=
--- cracklib,2.7/cracklib/Makefile	Thu Jan  3 14:37:25 2002=0A=
+++ cracklib,2.7-changed/cracklib/Makefile	Thu Jan  3 14:15:23 2002=0A=
@@ -22,7 +22,8 @@=0A=
 clean:=0A=
 	-rm -f $(OBJ) $(LIB) $(LIB).$(VERSION) *~=0A=
 =0A=
-install: $(LIB) crack.h=0A=
+install: $(LIB) crack.h packer.h=0A=
 	install -m 755 $(LIB).$(VERSION) $(ROOT)$(libdir)=0A=
 	ln -sf $(LIB).$(VERSION) $(ROOT)$(libdir)/$(LIB)=0A=
 	install -m 644 crack.h $(ROOT)$(includedir)=0A=
+	install -m 644 packer.h $(ROOT)$(includedir)=0A=

------=_NextPart_000_002E_01C1C068.682F0BD0--





[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux