2 %ifarch i586 i686 athlon pentium2 pentium3 pentium4
9 %define optmmxfb -DCPU_FALLBACK=1
14 Summary: Password cracker
15 Summary(pl): £amacz hase³
20 Group: Applications/System
21 Source0: http://www.openwall.com/john/d/%{name}-%{version}.tar.bz2
22 # Source0-md5: 615b912caa677eec790e28745a12b2ae
23 Patch0: %{name}-mailer.patch
24 URL: http://www.openwall.com/john/
25 BuildRequires: rpmbuild(macros) >= 1.213
26 BuildRequires: sed >= 4.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 John the Ripper is a fast password cracker, currently available for
32 many flavors of Unix (11 are officially supported, not counting
33 different architectures), DOS, Win32, BeOS, and OpenVMS (the latter
34 requires a contributed patch). Its primary purpose is to detect weak
35 Unix passwords. Besides several crypt(3) password hash types most
36 commonly found on various Unix flavors, supported out of the box are
37 Kerberos/AFS and Windows NT/2000/XP LM hashes, plus several more with
41 John The Ripper jest szybkim "³amaczem" hase³ dostêpnym dla wielu
42 rodzajów uniksów (oficjalnie obs³ugiwanych jest 11, nie licz±c ró¿nych
43 architektur), DOS-a, Win32, BeOS-a i OpenVMS-a (ten ostatni wymaga
44 ³aty). G³ównym zastosowaniem jest wykrywanie s³abych hase³ uniksowych.
45 Oprócz ró¿nych rodzajów skrótów hase³ crypt(3) najczê¶ciej u¿ywanych
46 na ró¿nych uniksach, obs³ugiwane s± tak¿e skróty Kerberos/AFS oraz
47 Windows NT/2000/XP LM, a tak¿e kilka innych przy u¿yciu ³at.
53 sed -i -e 's/CLK_TCK/CLOCKS_PER_SEC/g' src/*.c
59 %{__make} linux-x86-any \
60 CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1" \
62 mv ../run/john ../run/john-non-mmx
89 CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\"%{_libdir}/john\\\" %{?optmmxfb}" \
93 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/john}
96 install run/{*.conf,*.chr,*.lst} $RPM_BUILD_ROOT%{_datadir}/john
97 install run/john $RPM_BUILD_ROOT%{_bindir}
99 install -d $RPM_BUILD_ROOT%{_libdir}/john
100 install run/john-non-mmx $RPM_BUILD_ROOT%{_libdir}/john
105 cd $RPM_BUILD_ROOT%{_bindir}
111 rm -rf $RPM_BUILD_ROOT
114 %defattr(644,root,root,755)
115 %doc doc/* run/mailer
116 %attr(755,root,root) %{_bindir}/*
119 %attr(755,root,root) %{_libdir}/john/john-non-mmx