homebrew-core/Formula/john.rb

42 lines
887 B
Ruby
Raw Normal View History

2010-01-02 04:13:16 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class John < Formula
url 'http://www.openwall.com/john/g/john-1.7.8.tar.bz2'
2010-01-02 04:13:16 +00:00
homepage 'http://www.openwall.com/john/'
md5 'e6d7f261829610d6949c706ebac0517c'
2010-01-02 04:13:16 +00:00
def patches
{ :p0 => DATA }
end
fails_with_llvm :build => 2334
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'
cd 'src' do
2010-01-02 04:13:16 +00:00
system "make clean macosx-x86-#{arch}"
end
rm 'README'
2010-01-02 04:13:16 +00:00
# using mv over bin.install due to problem moving sym links
mv 'run', bin
chmod_R 0755, bin
2010-01-02 04:13:16 +00:00
end
end
__END__
--- src/john.c.orig 2010-01-01 22:58:55.000000000 -0500
+++ src/john.c 2010-01-01 22:59:11.000000000 -0500
@@ -249,7 +249,7 @@ static void john_init(char *name, int ar
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);