cvsextras 1f2811c
Summary:          John the Ripper password cracker
cvsextras 1f2811c
Name:             john
f68b1dc
Version:          1.7.0.2
b290e29
Release:          3%{?dist}
efa5c8c
cvsextras 1f2811c
URL:              http://www.openwall.com/john
cvsextras 1f2811c
License:          GPL
d8ec4e5
Group:            Applications/System
f68b1dc
Source0:          http://www.openwall.com/john/f/john-%{version}.tar.bz2
f68b1dc
#Patch1:           http://www.openwall.com/john/contrib/john-1.7-all-4.diff.gz
f68b1dc
#Patch2:           http://www.openwall.com/john/contrib/john-1.7.2-all-2.diff.gz
cvsextras 1f2811c
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root
cvsextras 1f2811c
cvsextras 1f2811c
%description
cvsextras 1f2811c
John the Ripper is a fast password cracker. Its primary purpose is to
cvsextras 1f2811c
detect weak Unix passwords, but a number of other hash types are
cvsextras 1f2811c
supported as well.
cvsextras 1f2811c
cvsextras 1f2811c
%prep
cvsextras 1f2811c
%setup -q
f68b1dc
#%patch2 -p0 -b .jumbo
f68b1dc
chmod 0644 doc/*
f68b1dc
rm doc/INSTALL
f68b1dc
sed -i 's#\$JOHN/john.conf#%{_sysconfdir}/john.conf#' src/params.h
f68b1dc
cp -a src src-mmx
cvsextras 1f2811c
cvsextras 1f2811c
%build
f68b1dc
f68b1dc
%define target_non_mmx generic
f68b1dc
cvsextras 1f2811c
%ifarch %{ix86}
f68b1dc
%define target_non_mmx linux-x86-any
f68b1dc
%define target_mmx linux-x86-mmx
f68b1dc
%endif
f68b1dc
%ifarch x86_64
f68b1dc
%define target_non_mmx linux-x86-64
f68b1dc
%endif
f68b1dc
%ifarch ppc
f68b1dc
%define target_non_mmx linux-ppc32
f68b1dc
%endif
f68b1dc
f68b1dc
export CFLAGS="-c ${RPM_OPT_FLAGS} -DJOHN_SYSTEMWIDE=1"
f68b1dc
f68b1dc
make -C src %{target_non_mmx} CFLAGS="${CFLAGS}" LDFLAGS=""
f68b1dc
b290e29
%if 0%{?target_mmx:1}
f68b1dc
mv run/john run/john-non-mmx
f68b1dc
f68b1dc
CFLAGS="${CFLAGS} -DCPU_FALLBACK=1"
f68b1dc
LDFLAGS="${CFLAGS}"
f68b1dc
f68b1dc
make -C src-mmx %{target_mmx}  CFLAGS="${CFLAGS}" LDFLAGS=""
cvsextras 1f2811c
%endif
cvsextras 1f2811c
cvsextras 1f2811c
%install
cvsextras 1f2811c
rm -rf %{buildroot}
cvsextras 1f2811c
install -d 755 %{buildroot}%{_sysconfdir}
cvsextras 1f2811c
install -d 755 %{buildroot}%{_bindir}
f68b1dc
install -d 755 %{buildroot}%{_datadir}/john
cvsextras 1f2811c
install -m 755 run/{john,mailer} %{buildroot}%{_bindir}
f68b1dc
install -m 644 run/{*.chr,password.lst} %{buildroot}%{_datadir}/john
f68b1dc
install -m 644 run/john.conf %{buildroot}%{_sysconfdir}
b290e29
%if 0%{?target_mmx:1}
f68b1dc
install -d 755 %{buildroot}%{_libexecdir}/john
f68b1dc
install -m 755 run/john-non-mmx %{buildroot}%{_libexecdir}/john/
f68b1dc
%endif
cvsextras 1f2811c
pushd %{buildroot}%{_bindir}
cvsextras 1f2811c
ln -s john unafs
cvsextras 1f2811c
ln -s john unique
cvsextras 1f2811c
ln -s john unshadow
cvsextras 1f2811c
popd
cvsextras 1f2811c
cvsextras 1f2811c
%clean
cvsextras 1f2811c
rm -rf %{buildroot}
cvsextras 1f2811c
cvsextras 1f2811c
%files
f68b1dc
%defattr(-,root,root,-)
cvsextras 1f2811c
%doc doc/*
f68b1dc
%config(noreplace) %{_sysconfdir}/john.conf
cvsextras 1f2811c
%{_bindir}/*
f68b1dc
%{_datadir}/john
b290e29
%if 0%{?target_mmx:1}
f68b1dc
%{_libexecdir}/john/
f68b1dc
%endif
cvsextras 1f2811c
cvsextras 1f2811c
%changelog
b290e29
* Tue Feb 27 2007 Till Maas <opensource till name> - 1.7.0.2-3
b290e29
- fixing wrong characters in specfile
b290e29
- https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=148873&action=view
b290e29
f68b1dc
* Wed Jan 10 2007 Till Maas <opensource till name> - 1.7.0.2-2
f68b1dc
- no mmx version for x86_64 since it is 32bit and does not build
f68b1dc
f68b1dc
* Tue Jan 09 2007 Till Maas <opensource till name> - 1.7.0.2-1
f68b1dc
- prevent stripping in Makefile to get non-empty debuginfo
f68b1dc
- version bump
f68b1dc
- build mmx and fallback version
Gavin Henry 65922d2
Gavin Henry ef871e1
* Mon Oct 09 2006 Jeremy Katz <katzj@redhat.com> - 1.6-5
Gavin Henry ef871e1
- FC6 Rebuild
Gavin Henry ef871e1
4b9964d
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.6-4
4b9964d
- rebuild on all arches
4b9964d
efa5c8c
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
efa5c8c
- rebuilt
efa5c8c
cvsextras 1f2811c
* Fri Apr 25 2003 Marius Johndal <mariuslj at ifi.uio.no> 0:1.6-0.fdr.2
cvsextras 1f2811c
- Added epoch.
f68b1dc
- Modified makefile patch to honour %%optflags.
cvsextras 1f2811c
- setup -q.
cvsextras 1f2811c
- Added full URL of source.
cvsextras 1f2811c
cvsextras 1f2811c
* Thu Mar  6 2003 Marius Johndal <mariuslj at ifi.uio.no> 1.6-0.fdr.1
cvsextras 1f2811c
- Initial Fedora RPM release.
cvsextras 1f2811c
cvsextras 1f2811c
* Sat Dec  7 2002 Marius Johndal <mariuslj at ifi.uio.no>
cvsextras 1f2811c
- Misc. RH 8.0 changes.
cvsextras 1f2811c
cvsextras 1f2811c
* Mon Dec  2 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.6-2mdk
cvsextras 1f2811c
- config file in /etc
cvsextras 1f2811c
- fix configuration problem
cvsextras 1f2811c
cvsextras 1f2811c
* Mon Sep 16 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.6-1mdk
cvsextras 1f2811c
- first mdk version