]> git.pld-linux.org Git - packages/john.git/blob - john.spec
- update source URL
[packages/john.git] / john.spec
1 Summary:        Password cracker
2 Summary(pl):    £amacz hase³
3 Name:           john
4 Version:        1.6
5 Release:        4
6 Copyright:      GPL
7 Group:          Utilities/System
8 Group(pl):      Narzêdzia/System
9 Source:         http://www.openwall.com/john//%{name}-%{version}.tar.gz
10 Patch0:         %{name}-%{version}.PLD.diff
11 Patch1:         %{name}-%{version}.ini.diff
12 Patch2:         %{name}-%{version}.makefile.diff
13 Buildroot:      /tmp/%{name}-%{version}-root
14
15 %description
16 John the Ripper is a password cracker, currently available for UNIX, DOS,
17 WinNT/Win95. Its primary purpose is to detect weak UNIX passwords. It has
18 been tested with Linux x86/Alpha/SPARC, FreeBSD x86, OpenBSD x86, Solaris
19 2.x SPARC and x86, Digital UNIX, AIX, HP-UX, and IRIX.
20   
21 %description -l pl
22 John The Ripper jest "³amaczem" hase³ dostêpnym dla systemów UNIX, DOS,
23 WinNT/Win95. G³ównym jego zadaniem jest wykrywanie "s³abych" hase³.
24   
25 %prep
26 %setup -q
27 %patch0 -p1
28 %patch1 -p1
29 %patch2 -p1
30
31 %build
32 cd src
33 # Hmm. I don't know what is in /proc/cpuinfo on other processors than Intel MMX
34 if grep -q "MMX" /proc/cpuinfo; then
35         make OPT="$RPM_OPT_FLAGS" linux-x86-mmx-elf
36 elif grep -q "K6" /proc/cpuinfo; then
37         make OPT="$RPM_OPT_FLAGS" linux-x86-k6-elf
38 elif grep -q "Alpha" /proc/cpuinfo; then
39         make OPT="$RPM_OPT_FLAGS" linux-alpha
40 elif grep -q "SPARC" /proc/cpuinfo; then
41         make OPT="$RPM_OPT_FLAGS" linux-sparc
42 else
43         make OPT="$RPM_OPT_FLAGS" linux-x86-any-elf
44 fi
45         
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/john}
49 install run/*.chr $RPM_BUILD_ROOT%{_libdir}/john
50 install run/john.ini $RPM_BUILD_ROOT%{_libdir}/john
51 install run/john $RPM_BUILD_ROOT%{_bindir}
52
53 gzip -9nf doc/* run/mailer
54
55 cd $RPM_BUILD_ROOT%{_bindir}
56 ln -s john unafs; ln -s john unique; ln -s john unshadow
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc doc/* run/mailer.gz
64 %attr(755,root,root) %{_bindir}/*
65
66 %dir %{_libdir}/john
67 %{_libdir}/john/*
This page took 0.057497 seconds and 3 git commands to generate.