Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > 6975828e00013a1441f966bf63ed3032 > files > 3

john-1.6-1mdk.src.rpm

%define name	john
%define version	1.6
%define release	1mdk

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	John the Ripper password cracker
License:	GPL
Group:		Monitoring
Source:		%{name}-%{version}.tar.bz2
Patch:		%{name}.makefile.patch.bz2
URL:		http://www.openwall.com/john
BuildRoot:	%{_tmppath}/%{name}-buildroot

%description
John the Ripper is a fast password cracker, currently available for many
flavors of Unix (11 are officially supported, not counting different
architectures), DOS, Win32, and BeOS. Its primary purpose is to detect
weak Unix passwords, but a number of other hash types are supported as
well.

%prep
rm -rf $RPM_BUILD_ROOT
%setup
%patch
chmod 644 doc/*

%build
cd src && %make linux-x86-any-elf

%install
install -d 755 $RPM_BUILD_ROOT%{_bindir}
install -d 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 755 run/{john,mailer} $RPM_BUILD_ROOT%{_bindir}
install -m 644 run/{*.chr,john.ini,password.lst} $RPM_BUILD_ROOT%{_datadir}/%{name}
cd $RPM_BUILD_ROOT%{_bindir} \
	&& ln -s john unafs \
	&& ln -s john unique \
	&& ln -s john unshadow \

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc doc/*
%{_bindir}/*
%{_datadir}/%{name}

%changelog
* Mon Sep 16 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.6-1mdk
- first mdk version