2007-01-15 23:19:04 +00:00
|
|
|
#
|
2008-09-13 01:56:16 +00:00
|
|
|
# spec file for package john (Version 1.7.3.1)
|
2007-01-15 23:19:04 +00:00
|
|
|
#
|
2008-09-13 01:56:16 +00:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:19:04 +00:00
|
|
|
#
|
2008-09-13 01:56:16 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:19:04 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-09-13 01:56:16 +00:00
|
|
|
|
2007-01-15 23:19:04 +00:00
|
|
|
Name: john
|
2008-09-13 01:56:16 +00:00
|
|
|
Url: http://www.openwall.com/john/
|
|
|
|
License: GPL v2 or later
|
2007-01-15 23:19:04 +00:00
|
|
|
Group: Productivity/Security
|
2008-09-13 01:56:16 +00:00
|
|
|
AutoReqProv: on
|
|
|
|
Version: 1.7.3.1
|
|
|
|
Release: 1
|
2007-01-15 23:19:04 +00:00
|
|
|
Summary: Detects Weak Passwords
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
Source2: %{name}.8.gz
|
2008-09-13 01:56:16 +00:00
|
|
|
Source3: %{name}-rpmlintrc
|
2007-01-15 23:19:04 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-09-13 01:56:16 +00:00
|
|
|
%define johndir /var/lib/john
|
|
|
|
%define cflags CFLAGS="-c $RPM_OPT_FLAGS -DJOHN_SYSTEMWIDE=1 -finline-limit=2000 --param inline-unit-growth=2000" LDFLAGS=""
|
2007-01-15 23:19:04 +00:00
|
|
|
%ifarch x86_64
|
2008-09-13 01:56:16 +00:00
|
|
|
%define cflags CFLAGS="-c $RPM_OPT_FLAGS -DJOHN_SYSTEMWIDE=1" LDFLAGS=""
|
2007-01-15 23:19:04 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
John the Ripper is a fast password cracker (password security auditing
|
2008-09-13 01:56:16 +00:00
|
|
|
tool). Its primary purpose is to detect weak Unix passwords, but a
|
2007-01-15 23:19:04 +00:00
|
|
|
number of other hash types are supported as well.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Solar Designer <solar@false.com>
|
|
|
|
|
|
|
|
%prep
|
2008-09-13 01:56:16 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
# adapt the configs
|
2007-01-15 23:19:04 +00:00
|
|
|
perl -pi -e "s#Wordlist = (.*)#Wordlist = %{johndir}/password.lst#g" $RPM_BUILD_DIR/%{name}-%{version}/run/john.conf
|
|
|
|
perl -pi -e 's#^(\#define JOHN_SYSTEMWIDE_EXEC)\s.+$#$1\t\"%{johndir}\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
|
|
|
|
perl -pi -e 's#^(\#define CFG_FULL_NAME)\s.+$#$1\t\"%_sysconfdir/john.conf\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
|
|
|
|
perl -pi -e 's#^(\#define CFG_ALT_NAME)\s.+$#$1\t\"%_sysconfdir/john.conf\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
|
|
|
|
perl -pi -e 's#^(\#define WORDLIST_NAME)\s.+$#$1\t\"%{johndir}/password.lst\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
|
|
|
|
perl -pi -e 's#^(\#define LOG_NAME)\s.+$#$1\t\"/var/log/john.log\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
|
|
|
|
perl -pi -e 's#^(\#define JOHN_SYSTEMWIDE_HOME)\s.+$#$1\t\"%{johndir}\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ifarch alpha
|
2008-09-13 01:56:16 +00:00
|
|
|
TARGET=linux-alpha
|
2007-01-15 23:19:04 +00:00
|
|
|
%endif
|
2008-09-13 01:56:16 +00:00
|
|
|
%ifarch ia64
|
|
|
|
TARGET=linux-ia64
|
2007-01-15 23:19:04 +00:00
|
|
|
%endif
|
2008-09-13 01:56:16 +00:00
|
|
|
%ifarch %ix86
|
|
|
|
TARGET=linux-x86-mmx
|
2007-01-15 23:19:04 +00:00
|
|
|
%endif
|
|
|
|
%ifarch ppc
|
2008-09-13 01:56:16 +00:00
|
|
|
TARGET=linux-ppc32
|
2007-01-15 23:19:04 +00:00
|
|
|
%endif
|
|
|
|
%ifarch ppc64
|
2008-09-13 01:56:16 +00:00
|
|
|
TARGET=linux-ppc64
|
2007-01-15 23:19:04 +00:00
|
|
|
%endif
|
2008-09-13 01:56:16 +00:00
|
|
|
%ifarch sparc
|
|
|
|
TARGET=linux-sparc
|
2007-01-15 23:19:04 +00:00
|
|
|
%endif
|
2008-09-13 01:56:16 +00:00
|
|
|
%ifarch sparc64
|
|
|
|
TARGET=solaris-sparc64-gcc
|
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
|
|
|
TARGET=linux-x86-64
|
2007-01-15 23:19:04 +00:00
|
|
|
%endif
|
2008-09-13 01:56:16 +00:00
|
|
|
if test -z "$TARGET"; then
|
|
|
|
TARGET=linux-x86-any
|
|
|
|
fi
|
|
|
|
export TARGET
|
|
|
|
pushd src
|
|
|
|
make $TARGET %{cflags}
|
|
|
|
popd
|
2007-01-15 23:19:04 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %buildroot{%_bindir,%johndir,%_sysconfdir,%_mandir/man8}
|
2008-09-13 01:56:16 +00:00
|
|
|
install -m 755 run/john %buildroot%_bindir/
|
|
|
|
cp -r run/un* %buildroot%_bindir/
|
|
|
|
install -m 644 -p run/{password.lst,*.chr} %buildroot%johndir/
|
|
|
|
install -m 644 -p run/john.conf %buildroot%_sysconfdir/
|
|
|
|
install -m 755 -p run/mailer %buildroot%_bindir/
|
|
|
|
install -m 644 -p %{SOURCE2} %buildroot%_mandir/man8/
|
2007-01-15 23:19:04 +00:00
|
|
|
|
|
|
|
%clean
|
2008-09-13 01:56:16 +00:00
|
|
|
#rm -rf $RPM_BUILD_ROOT
|
2007-01-15 23:19:04 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/*
|
|
|
|
%doc %{_mandir}/man8/john.8.gz
|
|
|
|
%_bindir/un*
|
|
|
|
%dir %{johndir}
|
|
|
|
%attr(750,root,wheel) %_bindir/john
|
2008-09-13 01:56:16 +00:00
|
|
|
%_bindir/mailer
|
2007-01-15 23:19:04 +00:00
|
|
|
%attr(644,root,root) %johndir/password.lst
|
|
|
|
%attr(644,root,root) %johndir/*.chr
|
|
|
|
%config (noreplace) %_sysconfdir/john.conf
|
|
|
|
|
2008-09-13 01:56:16 +00:00
|
|
|
%changelog
|
|
|
|
* Tue Sep 09 2008 lrupp@suse.de
|
|
|
|
- update to 1.7.3.1:
|
|
|
|
+ Two Blowfish-based crypt(3) hashes may now be computed in
|
|
|
|
parallel for much better performance on modern multi-issue CPUs
|
|
|
|
with a sufficient number of registers (e.g., x86_64).
|
|
|
|
+ New make targets: macosx-universal, macosx-x86-64, solaris-x86-64-cc,
|
|
|
|
solaris-x86-64-gcc, solaris-x86-sse2-cc, solaris-x86-sse2-gcc,
|
|
|
|
solaris-x86-mmx-cc, solaris-x86-mmx-gcc, solaris-x86-any-cc,
|
|
|
|
linux-ia64;
|
|
|
|
+ Minor bug fixes.
|
|
|
|
+ "DumbForce" and "KnownForce" external mode samples have been
|
|
|
|
added to the default john.conf.
|
|
|
|
- removed the outdated patchset (needs to be re-integrated)
|
|
|
|
* Mon Sep 25 2006 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- remove double cflags definition
|
2008-09-13 01:56:16 +00:00
|
|
|
* Fri Jun 09 2006 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- new version 1.7.2
|
|
|
|
- moved john.conf to /etc
|
|
|
|
- moved john binary to /usr/bin
|
|
|
|
- enabled some opt flags (must be tested)
|
2008-09-13 01:56:16 +00:00
|
|
|
* Wed May 17 2006 schwab@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- Use RPM_OPT_FLAGS.
|
|
|
|
- Don't strip binaries.
|
|
|
|
- Fix last change.
|
2008-09-13 01:56:16 +00:00
|
|
|
* Mon Mar 27 2006 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- use CFLAGS instead of params.h.patch
|
2008-09-13 01:56:16 +00:00
|
|
|
* Fri Mar 24 2006 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- charset.tar.bz2 is included upstream
|
|
|
|
- reduce build requires
|
|
|
|
- new version 1.7.0.2
|
2008-09-13 01:56:16 +00:00
|
|
|
* Tue Mar 14 2006 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- new version 1.7.0.1
|
|
|
|
- adapt patches to new version
|
|
|
|
- disabled some compiler fixes
|
|
|
|
- removed RPM_OPT_FLAGS => performance issue atm
|
2008-09-13 01:56:16 +00:00
|
|
|
* Mon Mar 13 2006 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- split off worlists to an extra package
|
2008-09-13 01:56:16 +00:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-09-13 01:56:16 +00:00
|
|
|
* Sun Jan 15 2006 schwab@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- Don't strip binaries.
|
|
|
|
- Fix ia64 configuration.
|
2008-09-13 01:56:16 +00:00
|
|
|
* Mon Dec 19 2005 aosthof@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- Fixed .spec file for all architectures besides x86
|
|
|
|
- Added targets for ia64 / s390 / s390x
|
2008-09-13 01:56:16 +00:00
|
|
|
* Fri Nov 11 2005 kukuk@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- Fix compiling with glibc 2.4 snapshot
|
2008-09-13 01:56:16 +00:00
|
|
|
* Wed Sep 14 2005 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- new version 1.6.39
|
|
|
|
- use noreplace for config
|
2008-09-13 01:56:16 +00:00
|
|
|
* Wed Jun 15 2005 meissner@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- use RPM_OPT_FLAGS.
|
2008-09-13 01:56:16 +00:00
|
|
|
* Mon Jun 06 2005 ro@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- added directory to filelist
|
2008-09-13 01:56:16 +00:00
|
|
|
* Fri Jun 03 2005 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- changed manpage
|
|
|
|
- added patches from ftp.openwall.com again:
|
|
|
|
+ blowfish (Eggdrop blowfish)
|
|
|
|
+ md5 (work with md5 hash of apache; faster)
|
|
|
|
+ rawMD5
|
|
|
|
+ MySQL (about 75%% faster than mysqlpassword.c)
|
|
|
|
- enabled global mode in params.g again
|
2008-09-13 01:56:16 +00:00
|
|
|
* Mon May 30 2005 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- added "all" wordlist from openwall
|
|
|
|
- enabled arch-support for sparc and ppc
|
|
|
|
- added old doc-files from 1.6
|
2008-09-13 01:56:16 +00:00
|
|
|
* Wed May 25 2005 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- new package, version 1.6.38
|
2008-09-13 01:56:16 +00:00
|
|
|
* Tue Jan 25 2005 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- added some wordlists to get more options ;-)
|
|
|
|
- added patches from ftp.openwall.com to provide support for
|
|
|
|
additiional password formats:
|
|
|
|
+ blowfish
|
|
|
|
+ md5
|
|
|
|
+ rawMD5
|
2008-09-13 01:56:16 +00:00
|
|
|
* Mon Aug 02 2004 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- - fixed BugTraq-ID: 43287
|
|
|
|
- enabled global-mode in params.h
|
|
|
|
- fix misspelling in manpage
|
2008-09-13 01:56:16 +00:00
|
|
|
* Fri Feb 27 2004 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- use devel version: no segfault on x86-64
|
|
|
|
- included documentation and charsets from old version
|
|
|
|
- renamed new john.conf in john.ini
|
|
|
|
- created a short manpage for john
|
|
|
|
- created symlink /var/lib/john/john
|
2008-09-13 01:56:16 +00:00
|
|
|
* Mon Nov 10 2003 ro@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- use defattr
|
2008-09-13 01:56:16 +00:00
|
|
|
* Fri Nov 07 2003 lrupp@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- added '# norootforbuild' in the spec-file
|
2008-09-13 01:56:16 +00:00
|
|
|
* Thu Jun 12 2003 poeml@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- add /var/lib/john to the filelist
|
2008-09-13 01:56:16 +00:00
|
|
|
* Fri May 23 2003 coolo@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- use BuildRoot
|
2008-09-13 01:56:16 +00:00
|
|
|
* Tue Sep 17 2002 ro@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- removed bogus self-provides
|
2008-09-13 01:56:16 +00:00
|
|
|
* Fri Jul 05 2002 kukuk@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- use %%ix86
|
2008-09-13 01:56:16 +00:00
|
|
|
* Thu Mar 29 2001 uli@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- fixed for gcc >2.95
|
|
|
|
- replaced config.guess stuff with %%ifarch
|
2008-09-13 01:56:16 +00:00
|
|
|
* Wed Mar 01 2000 werner@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- Fix config.guess selection
|
2008-09-13 01:56:16 +00:00
|
|
|
* Mon Sep 13 1999 bs@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
2008-09-13 01:56:16 +00:00
|
|
|
* Thu Mar 18 1999 uli@suse.de
|
2007-01-15 23:19:04 +00:00
|
|
|
- new package, version 1.6
|