From 1f2811c42d810c64cfab8898e2389bad4d7cd5af Mon Sep 17 00:00:00 2001 From: cvsextras Date: Nov 08 2004 04:38:27 +0000 Subject: auto-import changelog data from john-1.6-0.fdr.2.rh80.src.rpm 1.6-0.fdr.2 - Added epoch. - Modified makefile patch to honour -O2 -g -march=i386 -mcpu=i686. - setup -q. - Added full URL of source. Thu Mar 06 2003 Marius Johndal 1.6-0.fdr.1 - Initial Fedora RPM release. Sat Dec 07 2002 Marius Johndal - Misc. RH 8.0 changes. Mon Dec 02 2002 Guillaume Rousse 1.6-2mdk - config file in /etc - fix configuration problem Mon Sep 16 2002 Guillaume Rousse 1.6-1mdk - first mdk version --- diff --git a/.cvsignore b/.cvsignore index e69de29..47621e4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +john-1.6.tar.gz diff --git a/john-1.6-rh.patch b/john-1.6-rh.patch new file mode 100644 index 0000000..6b2b7e2 --- /dev/null +++ b/john-1.6-rh.patch @@ -0,0 +1,83 @@ +--- BUILD/john-1.6/src/params.h.orig 1998-12-03 01:29:50.000000000 +0100 ++++ BUILD/john-1.6/src/params.h 2003-04-25 20:29:54.000000000 +0200 +@@ -53,9 +53,9 @@ + * File names. + */ + #define LOG_NAME "~/john.pot" +-#define CFG_NAME "~/john.ini" ++#define CFG_NAME "/etc/john.ini" + #define RECOVERY_NAME "~/restore" +-#define WORDLIST_NAME "~/password.lst" ++#define WORDLIST_NAME "/usr/share/john/password.lst" + + /* + * Configuration file section names. +--- BUILD/john-1.6/src/Makefile.orig 2003-04-25 20:31:35.000000000 +0200 ++++ BUILD/john-1.6/src/Makefile 2003-04-25 20:32:03.000000000 +0200 +@@ -13,7 +13,7 @@ + SED = sed + NULL = /dev/null + CPPFLAGS = -E +-CFLAGS = -c -Wall -O2 -fomit-frame-pointer ++CFLAGS = -c -Wall $(RPM_OPT_FLAGS) + ASFLAGS = -c + LDFLAGS = -s + OPT_NORMAL = -funroll-loops +@@ -115,14 +115,12 @@ + linux-x86-any-elf: + $(LN) x86-any.h arch.h + $(MAKE) $(PROJ) \ +- JOHN_OBJS="$(JOHN_OBJS) x86.o" \ +- CFLAGS="$(CFLAGS) -m486" ++ JOHN_OBJS="$(JOHN_OBJS) x86.o" + + linux-x86-mmx-elf: + $(LN) x86-mmx.h arch.h + $(MAKE) $(PROJ) \ +- JOHN_OBJS="$(JOHN_OBJS) x86.o" \ +- CFLAGS="$(CFLAGS) -m486" ++ JOHN_OBJS="$(JOHN_OBJS) x86.o" + + linux-x86-k6-elf: + $(LN) x86-k6.h arch.h +--- BUILD/john-1.6/run/john.ini.orig 1998-12-03 01:29:50.000000000 +0100 ++++ BUILD/john-1.6/run/john.ini 2003-04-25 20:29:54.000000000 +0200 +@@ -5,7 +5,7 @@ + + [Options] + # Wordlist file name, to be used in batch mode +-Wordfile = ~/password.lst ++Wordfile = /usr/share/john/password.lst + # Use idle cycles only + Idle = N + # Crash recovery file saving delay in seconds +@@ -314,25 +314,25 @@ + + # Incremental modes + [Incremental:All] +-File = ~/all.chr ++File = /usr/share/john/all.chr + MinLen = 0 + MaxLen = 8 + CharCount = 95 + + [Incremental:Alpha] +-File = ~/alpha.chr ++File = /usr/share/john/alpha.chr + MinLen = 1 + MaxLen = 8 + CharCount = 26 + + [Incremental:Digits] +-File = ~/digits.chr ++File = /usr/share/john/digits.chr + MinLen = 1 + MaxLen = 8 + CharCount = 10 + + [Incremental:LanMan] +-File = ~/lanman.chr ++File = /usr/share/john/lanman.chr + MinLen = 0 + MaxLen = 7 + CharCount = 69 diff --git a/john.spec b/john.spec new file mode 100644 index 0000000..5ddd350 --- /dev/null +++ b/john.spec @@ -0,0 +1,75 @@ +Summary: John the Ripper password cracker +Name: john +Version: 1.6 +Release: 0.fdr.2.rh80 +Epoch: 0 +URL: http://www.openwall.com/john +License: GPL +Group: Applications/System +Source0: http://www.openwall.com/john/dl/john-1.6.tar.gz +Patch0: john-1.6-rh.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%description +John the Ripper is a fast password cracker. Its primary purpose is to +detect weak Unix passwords, but a number of other hash types are +supported as well. + +%prep +%setup -q +%patch0 -p2 -b .orig +chmod 644 doc/* + +%build +%ifarch %{ix86} +make -C src linux-x86-any-elf +# TODO: Find a nice way to determine if these are better choices. +#make -C src linux-x86-mmx-elf +#make -C src linux-x86-k6-elf +%else +make -C src generic +%endif + +%install +rm -rf %{buildroot} +install -d 755 %{buildroot}%{_sysconfdir} +install -d 755 %{buildroot}%{_bindir} +install -d 755 %{buildroot}%{_datadir}/%{name} +install -m 755 run/{john,mailer} %{buildroot}%{_bindir} +install -m 644 run/{*.chr,password.lst} %{buildroot}%{_datadir}/%{name} +install -m 644 run/john.ini %{buildroot}%{_sysconfdir} +pushd %{buildroot}%{_bindir} +ln -s john unafs +ln -s john unique +ln -s john unshadow +popd + +%clean +rm -rf %{buildroot} + +%files +%defattr(-, root, root, -) +%doc doc/* +%config(noreplace) %{_sysconfdir}/john.ini +%{_bindir}/* +%{_datadir}/%{name} + +%changelog +* Fri Apr 25 2003 Marius Johndal 0:1.6-0.fdr.2 +- Added epoch. +- Modified makefile patch to honour %optflags. +- setup -q. +- Added full URL of source. + +* Thu Mar 6 2003 Marius Johndal 1.6-0.fdr.1 +- Initial Fedora RPM release. + +* Sat Dec 7 2002 Marius Johndal +- Misc. RH 8.0 changes. + +* Mon Dec 2 2002 Guillaume Rousse 1.6-2mdk +- config file in /etc +- fix configuration problem + +* Mon Sep 16 2002 Guillaume Rousse 1.6-1mdk +- first mdk version diff --git a/sources b/sources index e69de29..c3b8d13 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +aae782f160041b2bdc624b0a84054e32 john-1.6.tar.gz