Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37402355
en ru br
ALT Linux repos
S:1.9-alt2
5.0: 1.7.2.1-alt1
4.1: 1.7.2.1-alt1
4.0: 1.7.2.1-alt1
3.0: 1.6.37.3-alt1

Group :: System/Base
RPM: john

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: john
%define basever 1.6
Version: %basever.37.3
Release: alt1

Summary: John the Ripper password cracker
License: GPL
Group: System/Base
Url: http://www.openwall.com/%name/

Source0: ftp://ftp.openwall.com/pub/projects/%name/%name-%version.tar.bz2
Source1: ftp://ftp.openwall.com/pub/projects/%name/%name-%basever.tar.gz

Summary(ru_RU.KOI8-R): Взломщик шифрованных паролей путём перебора

%description
John the Ripper is a fast password cracker (password security auditing
tool).  Its primary purpose is to detect weak Unix passwords, but a number
of other hash types are supported as well.

%description -l ru_RU.KOI8-R
Высокопроизводительный взломщик паролей, используемый для аудита защищённости.
Основное его назначение состоит в выявлении простых паролей в Юниксе,
хотя поддерживаются и некоторые другие алгоритмы хэширования паролей.

%prep
%setup -q -a1

%define cflags -c %optflags -DJOHN_SYSTEMWIDE=1
%define with_cpu_fallback 0

%build
cd src
%ifarch athlon i786 i886 i986
make linux-x86-mmx-elf CFLAGS='%cflags'
%else
%ifarch %ix86
%define with_cpu_fallback 1
make linux-x86-any-elf CFLAGS='%cflags'
mv ../run/john ../run/john-non-mmx
make clean
make linux-x86-mmx-elf CFLAGS='%cflags -DCPU_FALLBACK=1'
%endif
%endif
%ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
make linux-alpha CFLAGS='%cflags'
%endif
%ifarch sparc sparcv9
make linux-sparc CFLAGS='%cflags'
%endif
%ifarch ppc
make linux-ppc CFLAGS='%cflags'
%endif

%install
mkdir -p $RPM_BUILD_ROOT%_datadir/john
install -pD -m700 run/john $RPM_BUILD_ROOT%_bindir/john
cp -a run/un* $RPM_BUILD_ROOT%_bindir/
%if %with_cpu_fallback
mkdir -p $RPM_BUILD_ROOT%_libexecdir/john
install -m 700 run/john-* $RPM_BUILD_ROOT%_libexecdir/john/
%endif
install -m 644 run/{john.conf,password.lst} john-1.6/run/*.chr \
$RPM_BUILD_ROOT%_datadir/john/
install -m 644 -p run/mailer doc/
mkdir doc/john-1.6
cp -a john-1.6/doc/* doc/john-1.6/

%files
%doc doc/*
%attr(750,root,wheel) %_bindir/john
%_bindir/un*
%if %with_cpu_fallback
%dir %_libexecdir/john
%attr(750,root,wheel) %_libexecdir/john/*
%endif
%dir %_datadir/john
%attr(640,root,wheel) %config(noreplace) %_datadir/john/john.conf
%attr(644,root,root) %_datadir/john/password.lst
%attr(644,root,root) %_datadir/john/*.chr

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin