@@ -13,6 +13,8 @@ LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
CONFIGURE_DIRS= src

LDFLAGS+= -ldes

USE_TOOLS+= gmake

.include "../../archivers/bzip2/buildlink3.mk"
@@ -5,4 +5,11 @@ RMD160 (john-1.8.0-jumbo-1.tar.xz) = 2ed5b5b5e55eefadf2e2eb8d28d15cfc27c82655
SHA512 (john-1.8.0-jumbo-1.tar.xz) = 163cd71f634c2d1e9d0fa760984cc05001bfeef8300098d6b9cc8bf7e1719fec1d37142c39d7fd65ef37ee96c95681f01d7f0b1941058b7f9926442e2df5cd8e
Size (john-1.8.0-jumbo-1.tar.xz) = 23232492 bytes
SHA1 (patch-src_configure) = e55e49a45311bdcfc6270bac18b73caa6b8bec27
SHA1 (patch-src_efs__fmt__plug.c) = 44d88ce206274ba74130899b1291c1dbe490e5de
SHA1 (patch-src_escrypt_sysendian.h) = 226555f467e12f1de1fab2c3a21f3ab724faa213
SHA1 (patch-src_gpg__fmt__plug.c) = 7541d97b10013ce4813ff03fb2cb3855cc5373c7
SHA1 (patch-src_keychain__fmt__plug.c) = ccc8a7c29c8d73506692bd4723099ae70162e78c
SHA1 (patch-src_mozilla__ng__fmt__plug.c) = c2392b24a680026ece12ff259c23959e255bd1cc
SHA1 (patch-src_osx__as__wrapper.sh) = 7820903bb3b82dc8defe1ae028b452c361e1f169
SHA1 (patch-src_ssh__ng__fmt__plug.c) = eb6335bd0826dbcd3227c4109bd58457fc3a5c12
SHA1 (patch-src_sysendian.h) = 0a538e2b82b4b911a2da2222d073915a589ff763
@@ -0,0 +1,12 @@
$NetBSD$

--- src/efs_fmt_plug.c.orig 2014-12-18 07:59:02.000000000 +0000
+++ src/efs_fmt_plug.c
@@ -30,6 +30,7 @@ john_register_one(&fmt_efs);
#include "memory.h"
#include "options.h"
#include "unicode.h"
+#include "des.h"
#include "sha.h"
#include "gladman_hmac.h"
#include "sse-intrinsics.h"
@@ -0,0 +1,13 @@
$NetBSD$

--- src/escrypt/sysendian.h.orig 2014-09-19 16:40:51.000000000 +0000
+++ src/escrypt/sysendian.h
@@ -36,7 +36,7 @@
#undef HAVE_SYS_ENDIAN_H
#endif

-#ifdef HAVE_SYS_ENDIAN_H
+#if 1 /* def HAVE_SYS_ENDIAN_H */

#include <sys/endian.h>

@@ -0,0 +1,12 @@
$NetBSD$

--- src/gpg_fmt_plug.c.orig 2014-12-18 07:59:02.000000000 +0000
+++ src/gpg_fmt_plug.c
@@ -27,6 +27,7 @@ john_register_one(&fmt_gpg);
#else

#include <string.h>
+#include <des.h>
#include <openssl/aes.h>
#include <assert.h>
#include <openssl/blowfish.h>
@@ -0,0 +1,12 @@
$NetBSD$

--- src/keychain_fmt_plug.c.orig 2014-12-18 07:59:02.000000000 +0000
+++ src/keychain_fmt_plug.c
@@ -18,6 +18,7 @@ john_register_one(&fmt_keychain);
#include <string.h>
#include <assert.h>
#include <errno.h>
+#include <des.h>
#include "arch.h"
#include "misc.h"
#include "common.h"
@@ -0,0 +1,12 @@
$NetBSD$

--- src/mozilla_ng_fmt_plug.c.orig 2014-12-18 07:59:02.000000000 +0000
+++ src/mozilla_ng_fmt_plug.c
@@ -27,6 +27,7 @@ john_register_one(&fmt_mozilla);
#endif

#include "arch.h"
+#include "des.h"
#include "md5.h"
#include "misc.h"
#include "common.h"
@@ -0,0 +1,12 @@
$NetBSD$

--- src/ssh_ng_fmt_plug.c.orig 2014-12-18 07:59:02.000000000 +0000
+++ src/ssh_ng_fmt_plug.c
@@ -20,6 +20,7 @@ john_register_one(&fmt_sshng);
#else

#include <string.h>
+#include <des.h>
#include <openssl/aes.h>
#include <openssl/des.h>
#include <openssl/asn1.h>
@@ -0,0 +1,13 @@
$NetBSD$

--- src/sysendian.h.orig 2014-05-16 13:40:40.000000000 +0000
+++ src/sysendian.h
@@ -36,7 +36,7 @@
#undef HAVE_SYS_ENDIAN_H
#endif

-#ifdef HAVE_SYS_ENDIAN_H
+#if 1 /* def HAVE_SYS_ENDIAN_H */

#include <sys/endian.h>