aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDaniel Fone2010-06-14 15:27:50 +1200
committerAdam Vandenberg2010-06-15 12:39:26 -0700
commit8a4c3b865acb6e7ad3fa3269030de2dc41dc6423 (patch)
treece7032638746a8977b997e6fa9e3801795ff4ea0 /Library/Formula
parentb5255849a83cb038478ef3a0ac02e158e5b3ee22 (diff)
downloadhomebrew-8a4c3b865acb6e7ad3fa3269030de2dc41dc6423.tar.bz2
Added formula for hping2
http://www.hping.org/ Required patches to recognise DARWIN ostype and honour INSTALL_PATH
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/hping.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/hping.rb b/Library/Formula/hping.rb
new file mode 100644
index 000000000..afc7a6deb
--- /dev/null
+++ b/Library/Formula/hping.rb
@@ -0,0 +1,27 @@
+require 'formula'
+
+class Hping <Formula
+ url 'http://www.hping.org/hping2.0.0-rc3.tar.gz'
+ homepage 'http://www.hping.org/'
+ md5 '029bf240f2e0545b664b2f8b9118d9e8'
+ version '2.0.0-rc3'
+
+ def install
+ ENV['MANPATH'] = man
+ system "./configure"
+ inreplace 'Makefile' do |contents|
+ contents.change_make_var! "INSTALL_PATH", prefix
+ end
+ system "make install"
+ end
+
+ def patches
+ [
+ # Added DARWIN os_type and 64 bit compatibility
+ "http://gist.github.com/raw/437115/hping2-darwin.patch",
+ # Added INSTALL_PATH into Makefile.in
+ "http://gist.github.com/raw/437122/hping2-installpath.patch"
+ ]
+ end
+
+end