3 %bcond_with jumbopatch # This patch integrates lots of contributed
4 # patches adding support for over 30
5 # of additional hash types, and more.
7 %ifarch i586 i686 athlon pentium2 pentium3 pentium4
14 %define optmmxfb -DCPU_FALLBACK=1
19 Summary: Password cracker
20 Summary(pl.UTF-8): Łamacz haseł
25 Group: Applications/System
26 Source0: http://www.openwall.com/john/g/%{name}-%{version}.tar.bz2
27 # Source0-md5: 321ac0793f1aa4f0603b33a393133756
28 Patch0: %{name}-mailer.patch
29 Patch1: optflags.patch
30 %{?with_jumbopatch:Patch1: http://www.openwall.com/john/contrib/%{name}-%{version}-jumbo-2.diff.gz}
31 URL: http://www.openwall.com/john/
32 %{?with_jumbopatch:BuildRequires: openssl-devel >= 0.9.7}
33 BuildRequires: rpmbuild(macros) >= 1.213
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 John the Ripper is a fast password cracker, currently available for
39 many flavors of Unix (11 are officially supported, not counting
40 different architectures), DOS, Win32, BeOS, and OpenVMS (the latter
41 requires a contributed patch). Its primary purpose is to detect weak
42 Unix passwords. Besides several crypt(3) password hash types most
43 commonly found on various Unix flavors, supported out of the box are
44 Kerberos/AFS and Windows NT/2000/XP LM hashes, plus several more with
47 %description -l pl.UTF-8
48 John The Ripper jest szybkim "łamaczem" haseł dostępnym dla wielu
49 rodzajów uniksów (oficjalnie obsługiwanych jest 11, nie licząc różnych
50 architektur), DOS-a, Win32, BeOS-a i OpenVMS-a (ten ostatni wymaga
51 łaty). Głównym zastosowaniem jest wykrywanie słabych haseł uniksowych.
52 Oprócz różnych rodzajów skrótów haseł crypt(3) najczęściej używanych
53 na różnych uniksach, obsługiwane są także skróty Kerberos/AFS oraz
54 Windows NT/2000/XP LM, a także kilka innych przy użyciu łat.
60 %{?with_jumbopatch:%patch1 -p1}
68 %{__make} linux-x86-any \
70 OPTFLAGS="%{rpmcflags} -DJOHN_SYSTEMWIDE=1"
71 mv ../run/john ../run/john-non-mmx
95 OPTFLAGS="%{rpmcflags} -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\"%{_libdir}/john\\\" %{?optmmxfb}"
98 rm -rf $RPM_BUILD_ROOT
99 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/john}
100 cp -a run/{*.conf,*.chr,*.lst} $RPM_BUILD_ROOT%{_datadir}/john
101 install -p run/john $RPM_BUILD_ROOT%{_bindir}
103 install -d $RPM_BUILD_ROOT%{_libdir}/john
104 install -p run/john-non-mmx $RPM_BUILD_ROOT%{_libdir}/john
107 ln -sf john $RPM_BUILD_ROOT%{_bindir}/unafs
108 ln -sf john $RPM_BUILD_ROOT%{_bindir}/unique
109 ln -sf john $RPM_BUILD_ROOT%{_bindir}/unshadow
112 rm -rf $RPM_BUILD_ROOT
115 %defattr(644,root,root,755)
116 %doc doc/* run/mailer
117 %attr(755,root,root) %{_bindir}/john
118 %attr(755,root,root) %{_bindir}/unafs
119 %attr(755,root,root) %{_bindir}/unique
120 %attr(755,root,root) %{_bindir}/unshadow
123 %attr(755,root,root) %{_libdir}/john/john-non-mmx