]>
Commit | Line | Data |
---|---|---|
94f3ed69 | 1 | # |
532ea34a JB |
2 | %ifarch i586 i686 athlon pentium2 pentium3 pentium4 |
3 | %define do_mmx 1 | |
4 | %else | |
5 | %define do_mmx 0 | |
6 | %endif | |
7 | %ifarch i586 i686 | |
8 | %define do_mmxfb 1 | |
9 | %define optmmxfb -DCPU_FALLBACK=1 | |
10 | %else | |
11 | %define do_mmxfb 0 | |
12 | %undefine optmmxfb | |
d940cdff | 13 | %endif |
00a4c442 | 14 | Summary: Password cracker |
25772a4c | 15 | Summary(pl.UTF-8): Łamacz haseł |
00a4c442 | 16 | Name: john |
5d62d856 | 17 | Version: 1.7.3.4 |
1871bd4b | 18 | Release: 1 |
e73a58f8 | 19 | License: GPL |
94f3ed69 | 20 | Group: Applications/System |
255a377d | 21 | Source0: http://www.openwall.com/john/g/%{name}-%{version}.tar.bz2 |
5d62d856 | 22 | # Source0-md5: 2f2310c49961c3edea6f92b8dcd45ff4 |
18fb1460 | 23 | Patch0: %{name}-mailer.patch |
ad326883 | 24 | URL: http://www.openwall.com/john/ |
4380352b | 25 | BuildRequires: rpmbuild(macros) >= 1.213 |
53d2a984 | 26 | Requires: words |
fbb20392 | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
00a4c442 | 28 | |
29 | %description | |
8e3a118d JB |
30 | John the Ripper is a fast password cracker, currently available for |
31 | many flavors of Unix (11 are officially supported, not counting | |
32 | different architectures), DOS, Win32, BeOS, and OpenVMS (the latter | |
33 | requires a contributed patch). Its primary purpose is to detect weak | |
34 | Unix passwords. Besides several crypt(3) password hash types most | |
35 | commonly found on various Unix flavors, supported out of the box are | |
36 | Kerberos/AFS and Windows NT/2000/XP LM hashes, plus several more with | |
37 | contributed patches. | |
e73a58f8 | 38 | |
15ea9c6b JR |
39 | %description -l pl.UTF-8 |
40 | John The Ripper jest szybkim "łamaczem" haseł dostępnym dla wielu | |
41 | rodzajów uniksów (oficjalnie obsługiwanych jest 11, nie licząc różnych | |
8e3a118d | 42 | architektur), DOS-a, Win32, BeOS-a i OpenVMS-a (ten ostatni wymaga |
15ea9c6b JR |
43 | łaty). Głównym zastosowaniem jest wykrywanie słabych haseł uniksowych. |
44 | Oprócz różnych rodzajów skrótów haseł crypt(3) najczęściej używanych | |
45 | na różnych uniksach, obsługiwane są także skróty Kerberos/AFS oraz | |
46 | Windows NT/2000/XP LM, a także kilka innych przy użyciu łat. | |
e73a58f8 | 47 | |
00a4c442 | 48 | %prep |
51da11ae | 49 | %setup -q |
00a4c442 | 50 | %patch0 -p1 |
18fb1460 | 51 | |
00a4c442 | 52 | %build |
53 | cd src | |
94f3ed69 | 54 | |
532ea34a JB |
55 | %if %{do_mmxfb} |
56 | %{__make} linux-x86-any \ | |
57 | CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1" \ | |
58 | CC="%{__cc}" | |
59 | mv ../run/john ../run/john-non-mmx | |
60 | %{__make} clean | |
61 | %endif | |
62 | ||
94f3ed69 | 63 | %ifarch %{ix86} |
532ea34a | 64 | %if %{do_mmx} |
1f693868 | 65 | TARG=linux-x86-mmx |
94f3ed69 | 66 | %else |
1f693868 | 67 | TARG=linux-x86-any |
94f3ed69 JB |
68 | %endif |
69 | %else | |
70 | %ifarch alpha | |
71 | TARG=linux-alpha | |
72 | %else | |
cd675709 | 73 | %ifarch sparc sparcv9 |
94f3ed69 JB |
74 | TARG=linux-sparc |
75 | %else | |
4380352b | 76 | %ifarch %{x8664} |
b2ee9acd | 77 | TARG=linux-x86-64 |
78 | %else | |
79 | TARG=generic | |
51da11ae | 80 | %endif |
94f3ed69 JB |
81 | %endif |
82 | %endif | |
83 | %endif | |
84 | ||
c4418ed8 | 85 | %{__make} $TARG \ |
532ea34a | 86 | CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\"%{_libdir}/john\\\" %{?optmmxfb}" \ |
c4418ed8 | 87 | CC="%{__cc}" |
94f3ed69 | 88 | |
00a4c442 | 89 | %install |
90 | rm -rf $RPM_BUILD_ROOT | |
18fb1460 | 91 | |
92 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/john} | |
93 | install run/{*.conf,*.chr,*.lst} $RPM_BUILD_ROOT%{_datadir}/john | |
90d33dbc | 94 | install run/john $RPM_BUILD_ROOT%{_bindir} |
532ea34a JB |
95 | %if %{do_mmxfb} |
96 | install -d $RPM_BUILD_ROOT%{_libdir}/john | |
97 | install run/john-non-mmx $RPM_BUILD_ROOT%{_libdir}/john | |
98 | %endif | |
d940cdff | 99 | |
368eb044 | 100 | rm -f doc/INSTALL |
00a4c442 | 101 | |
90d33dbc | 102 | cd $RPM_BUILD_ROOT%{_bindir} |
94f3ed69 JB |
103 | ln -sf john unafs |
104 | ln -sf john unique | |
105 | ln -sf john unshadow | |
00a4c442 | 106 | |
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
1f693868 | 112 | %doc doc/* run/mailer |
90d33dbc | 113 | %attr(755,root,root) %{_bindir}/* |
532ea34a JB |
114 | %if %{do_mmxfb} |
115 | %dir %{_libdir}/john | |
116 | %attr(755,root,root) %{_libdir}/john/john-non-mmx | |
117 | %endif | |
18fb1460 | 118 | %{_datadir}/john |