diff options
Diffstat (limited to 'security/john/files')
-rw-r--r-- | security/john/files/patch-Makefile | 27 | ||||
-rw-r--r-- | security/john/files/patch-aa | 56 | ||||
-rw-r--r-- | security/john/files/patch-john.conf | 41 | ||||
-rw-r--r-- | security/john/files/patch-params.h | 33 |
4 files changed, 101 insertions, 56 deletions
diff --git a/security/john/files/patch-Makefile b/security/john/files/patch-Makefile new file mode 100644 index 000000000000..e525c3cdc364 --- /dev/null +++ b/security/john/files/patch-Makefile @@ -0,0 +1,27 @@ +--- Makefile Wed Apr 10 14:35:25 2002 ++++ Makefile Wed Jan 15 23:28:44 2003 +@@ -3,10 +3,10 @@ + # Copyright (c) 1996-2002 by Solar Designer + # + +-CPP = gcc +-CC = gcc +-AS = gcc +-LD = gcc ++CC ?= gcc ++CPP = $(CC) ++AS = $(CC) ++LD = $(CC) + CP = cp + LN = ln -sf + RM = rm -f +@@ -14,7 +14,8 @@ + SED = sed + NULL = /dev/null + CPPFLAGS = -E +-CFLAGS = -c -Wall -O2 -fomit-frame-pointer ++CFLAGS ?= -O2 ++CFLAGS += -c -Wall -fomit-frame-pointer + ASFLAGS = -c + LDFLAGS = -s + OPT_NORMAL = -funroll-loops diff --git a/security/john/files/patch-aa b/security/john/files/patch-aa deleted file mode 100644 index 1fdee295e7d7..000000000000 --- a/security/john/files/patch-aa +++ /dev/null @@ -1,56 +0,0 @@ ---- Makefile.orig Wed Dec 2 16:29:50 1998 -+++ Makefile Sun Feb 6 18:00:15 2000 -@@ -3,17 +3,18 @@ - # Copyright (c) 1996-98 by Solar Designer - # - --CPP = gcc --CC = gcc --AS = gcc --LD = gcc -+CC ?= gcc -+CPP = $(CC) -+AS = $(CC) -+LD = $(CC) - CP = cp - LN = ln -sf - RM = rm -f - SED = sed - NULL = /dev/null - CPPFLAGS = -E --CFLAGS = -c -Wall -O2 -fomit-frame-pointer -+CFLAGS ?= -O2 -+CFLAGS += -c -Wall -fomit-frame-pointer - ASFLAGS = -c - LDFLAGS = -s - OPT_NORMAL = -funroll-loops -@@ -89,6 +90,7 @@ - @echo "freebsd-x86-any-a.out FreeBSD, x86, a.out binaries" - @echo "freebsd-x86-k6-a.out FreeBSD, AMD K6, a.out binaries" - @echo "freebsd-x86-any-elf FreeBSD, x86, ELF binaries" -+ @echo "freebsd-alpha-any-elf FreeBSD, Alpha, ELF binaries" - @echo "freebsd-x86-mmx-elf FreeBSD, x86 with MMX, ELF binaries" - @echo "freebsd-x86-k6-elf FreeBSD, AMD K6, ELF binaries" - @echo "openbsd-x86-any OpenBSD, x86" -@@ -173,14 +175,19 @@ - $(LN) x86-any.h arch.h - $(MAKE) $(PROJ) \ - JOHN_OBJS="$(JOHN_OBJS) x86.o" \ -- CFLAGS="$(CFLAGS) -m486" \ -+ CFLAGS="$(CFLAGS)" \ - ASFLAGS="$(ASFLAGS) -DBSD" - -+freebsd-alpha-any-elf: -+ $(LN) alpha.h arch.h -+ $(MAKE) $(PROJ) \ -+ JOHN_OBJS="$(BITSLICE_OBJS) $(JOHN_OBJS) alpha.o" -+ - freebsd-x86-mmx-elf: - $(LN) x86-mmx.h arch.h - $(MAKE) $(PROJ) \ - JOHN_OBJS="$(JOHN_OBJS) x86.o" \ -- CFLAGS="$(CFLAGS) -m486" \ -+ CFLAGS="$(CFLAGS)" \ - ASFLAGS="$(ASFLAGS) -DBSD" - - freebsd-x86-k6-elf: diff --git a/security/john/files/patch-john.conf b/security/john/files/patch-john.conf new file mode 100644 index 000000000000..8703181c87c2 --- /dev/null +++ b/security/john/files/patch-john.conf @@ -0,0 +1,41 @@ +--- ../run/john.conf Fri May 10 19:16:35 2002 ++++ ../run/john.conf Wed Jan 15 23:18:43 2003 +@@ -5,7 +5,7 @@ + + [Options] + # Wordlist file name, to be used in batch mode +-Wordfile = $JOHN/password.lst ++Wordfile = %%PREFIX%%/share/john/password.lst + # Use idle cycles only + Idle = N + # Crash recovery file saving delay in seconds +@@ -316,25 +316,25 @@ + + # Incremental modes + [Incremental:All] +-File = $JOHN/all.chr ++File = %%PREFIX%%/share/john/all.chr + MinLen = 0 + MaxLen = 8 + CharCount = 95 + + [Incremental:Alpha] +-File = $JOHN/alpha.chr ++File = %%PREFIX%%/share/john/alpha.chr + MinLen = 1 + MaxLen = 8 + CharCount = 26 + + [Incremental:Digits] +-File = $JOHN/digits.chr ++File = %%PREFIX%%/share/john/digits.chr + MinLen = 1 + MaxLen = 8 + CharCount = 10 + + [Incremental:LanMan] +-File = $JOHN/lanman.chr ++File = %%PREFIX%%/share/john/lanman.chr + MinLen = 0 + MaxLen = 7 + CharCount = 69 diff --git a/security/john/files/patch-params.h b/security/john/files/patch-params.h new file mode 100644 index 000000000000..246739101933 --- /dev/null +++ b/security/john/files/patch-params.h @@ -0,0 +1,33 @@ +--- params.h Sun Sep 15 20:19:20 2002 ++++ params.h Wed Jan 15 23:50:29 2003 +@@ -26,8 +26,8 @@ + #endif + + #if JOHN_SYSTEMWIDE +-#define JOHN_SYSTEMWIDE_EXEC "/usr/libexec/john" +-#define JOHN_SYSTEMWIDE_HOME "/usr/share/john" ++#define JOHN_SYSTEMWIDE_EXEC "%%PREFIX%%/bin/john" ++#define JOHN_SYSTEMWIDE_HOME "%%PREFIX%%/share/john" + #define JOHN_PRIVATE_HOME "~/.john" + #endif + +@@ -67,8 +67,8 @@ + /* + * File names. + */ +-#define CFG_FULL_NAME "$JOHN/john.conf" +-#define CFG_ALT_NAME "$JOHN/john.ini" ++#define CFG_FULL_NAME "%%PREFIX%%/share/john/john.conf" ++#define CFG_ALT_NAME "%%PREFIX%%/share/john/john.ini" + #if JOHN_SYSTEMWIDE + #define CFG_PRIVATE_FULL_NAME JOHN_PRIVATE_HOME "/john.conf" + #define CFG_PRIVATE_ALT_NAME JOHN_PRIVATE_HOME "/john.ini" +@@ -78,7 +78,7 @@ + #define LOG_NAME "$JOHN/john.pot" + #define RECOVERY_NAME "$JOHN/restore" + #endif +-#define WORDLIST_NAME "$JOHN/password.lst" ++#define WORDLIST_NAME "%%PREFIX%%/share/john/password.lst" + + /* + * Configuration file section names. |