2010-01-02 04:13:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class John < Formula
|
2010-01-02 04:13:16 +00:00
|
|
|
homepage 'http://www.openwall.com/john/'
|
2012-03-18 03:34:48 +00:00
|
|
|
url 'http://www.openwall.com/john/g/john-1.7.9.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '8f77bdd42b7cf94ec176f55ea69c4da9b2b8fe3b'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2334
|
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
def patches; DATA; end
|
2011-03-21 21:24:22 +00:00
|
|
|
|
2010-01-02 04:13:16 +00:00
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
|
|
|
arch = Hardware.is_64_bit? ? '64' : 'sse2'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'src' do
|
2012-05-15 18:31:21 +00:00
|
|
|
system "make", "clean", "macosx-x86-#{arch}"
|
2010-01-02 04:13:16 +00:00
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
|
|
|
rm 'README'
|
2010-01-02 04:13:16 +00:00
|
|
|
# using mv over bin.install due to problem moving sym links
|
2010-04-07 05:58:35 +00:00
|
|
|
mv 'run', bin
|
|
|
|
chmod_R 0755, bin
|
2010-01-02 04:13:16 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
__END__
|
2012-03-18 03:34:48 +00:00
|
|
|
--- a/src/john.c 2010-01-01 22:58:55.000000000 -0500
|
|
|
|
+++ b/src/john.c 2010-01-01 22:59:11.000000000 -0500
|
|
|
|
@@ -290,7 +290,7 @@ static void john_init(char *name, int ar
|
2010-01-02 04:13:16 +00:00
|
|
|
cfg_init(CFG_PRIVATE_ALT_NAME, 1);
|
|
|
|
#endif
|
|
|
|
cfg_init(CFG_FULL_NAME, 1);
|
|
|
|
- cfg_init(CFG_ALT_NAME, 0);
|
|
|
|
+ cfg_init(CFG_ALT_NAME, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
status_init(NULL, 1);
|