diff -r 0bf572151f0d -r f341c75337f6 john/john.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/john/john.patch Wed Aug 29 19:12:02 2012 +0200 @@ -0,0 +1,35 @@ +Index: src/params.h +--- src/params.h.orig 2011-11-23 12:08:11.000000000 +0100 ++++ src/params.h 2011-11-24 09:04:33.000000000 +0100 +@@ -70,15 +70,15 @@ + * notes above. + */ + #ifndef JOHN_SYSTEMWIDE +-#define JOHN_SYSTEMWIDE 0 ++#define JOHN_SYSTEMWIDE 1 + #endif + + #if JOHN_SYSTEMWIDE + #ifndef JOHN_SYSTEMWIDE_EXEC /* please refer to the notes above */ +-#define JOHN_SYSTEMWIDE_EXEC "/usr/libexec/john" ++#define JOHN_SYSTEMWIDE_EXEC "@l_prefix@/libexec/john" + #endif + #ifndef JOHN_SYSTEMWIDE_HOME +-#define JOHN_SYSTEMWIDE_HOME "/usr/share/john" ++#define JOHN_SYSTEMWIDE_HOME "@l_prefix@/etc/john" + #endif + #define JOHN_PRIVATE_HOME "~/.john" + #endif +Index: src/recovery.c +--- src/recovery.c.orig 2011-03-20 16:02:41.000000000 +0100 ++++ src/recovery.c 2011-11-24 09:04:49.000000000 +0100 +@@ -3,7 +3,9 @@ + * Copyright (c) 1996-2003,2005,2006,2009,2010 by Solar Designer + */ + ++#ifndef __FreeBSD__ + #define _XOPEN_SOURCE 500 /* for fdopen(3), fileno(3), fsync(2), ftruncate(2) */ ++#endif + #include + #include + #include