aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/john.rb
diff options
context:
space:
mode:
authortstevens2010-01-01 23:13:16 -0500
committerDavid Höppner2010-01-30 14:11:29 +0100
commit5a802938cf832d0365bf639a4eec8cf53fffe0d7 (patch)
treeeabeec946fb5ce499ed242e0b718f27a8a55ca71 /Library/Formula/john.rb
parentacac7224ab695accae3e3b6e567135f130b6db46 (diff)
downloadhomebrew-5a802938cf832d0365bf639a4eec8cf53fffe0d7.tar.bz2
Add John 1.7.3.4 formula
Diffstat (limited to 'Library/Formula/john.rb')
-rw-r--r--Library/Formula/john.rb40
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/john.rb b/Library/Formula/john.rb
new file mode 100644
index 000000000..e84e2190d
--- /dev/null
+++ b/Library/Formula/john.rb
@@ -0,0 +1,40 @@
+require 'formula'
+
+class John <Formula
+ url 'http://www.openwall.com/john/g/john-1.7.3.4.tar.bz2'
+ homepage 'http://www.openwall.com/john/'
+ md5 '2f2310c49961c3edea6f92b8dcd45ff4'
+
+ def patches
+ { :p0 => DATA }
+ end
+
+ def install
+ ENV.deparallelize
+ ENV.gcc_4_2
+ arch = Hardware.is_64_bit? ? '64' : 'sse2'
+
+ Dir.chdir 'src' do
+ system "make clean macosx-x86-#{arch}"
+ end
+
+ FileUtils.rm 'README'
+ # using mv over bin.install due to problem moving sym links
+ FileUtils.mv 'run', "#{bin}"
+ FileUtils.chmod_R 0755, "#{bin}"
+ 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);