Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37041756
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
Version: 1.7.2.1
Release: alt1
%define charsets_version 20051216

Summary: John the Ripper password cracker
License: GPL
Group: System/Base
Url: http://www.openwall.com/john/
Packager: Dmitry V. Levin <ldv at altlinux.org>

Source0: ftp://ftp.openwall.com/pub/projects/john/john-%version.tar
Source1: ftp://ftp.openwall.com/pub/projects/john/john-charsets-%charsets_version.tar

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

%ifarch x86_64
%define cflags -c %optflags -Wall -DJOHN_SYSTEMWIDE=1
%else
%define cflags -c %optflags -finline-limit=2000 --param inline-unit-growth=2000 -Wall -DJOHN_SYSTEMWIDE=1
%endif
%define with_cpu_fallback 0

%build
cd src
%ifarch %ix86
%define with_cpu_fallback 1
%ifarch athlon athlon_xp i786 i886 i986
make linux-x86-mmx CFLAGS='%cflags'
%else
make linux-x86-any CFLAGS='%cflags'
mv ../run/john ../run/john-non-mmx
make clean
make linux-x86-mmx CFLAGS='%cflags -DCPU_FALLBACK=1'
%endif #athlon athlon_xp i786 i886 i986
mv ../run/john ../run/john-non-sse
make clean
make linux-x86-sse2 CFLAGS='%cflags -DCPU_FALLBACK=1'
%endif #%ix86
%ifarch x86_64
make linux-x86-64 CFLAGS='%cflags'
%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-ppc32 CFLAGS='%cflags'
%endif

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

%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