aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-27 08:55:13 -0700
committerAdam Vandenberg2010-07-27 09:06:44 -0700
commit1b21924e159a3041e78c27e7162df6e00a4e361a (patch)
tree55ae1dc3d7cb0651906fa63389e350228a2cc1bd
parent5629414aebbcba7ed274722991c9f27685650866 (diff)
downloadhomebrew-1b21924e159a3041e78c27e7162df6e00a4e361a.tar.bz2
Update hping to version 3.
Note: built without TCL support, because TCL on OS X is 32-bit only and we prefer building 64-bit. Patches to enable TCL support are welcome.
-rw-r--r--Library/Formula/hping.rb41
1 files changed, 24 insertions, 17 deletions
diff --git a/Library/Formula/hping.rb b/Library/Formula/hping.rb
index afc7a6deb..e8314df6c 100644
--- a/Library/Formula/hping.rb
+++ b/Library/Formula/hping.rb
@@ -1,27 +1,34 @@
require 'formula'
class Hping <Formula
- url 'http://www.hping.org/hping2.0.0-rc3.tar.gz'
+ url 'http://www.hping.org/hping3-20051105.tar.gz'
homepage 'http://www.hping.org/'
- md5 '029bf240f2e0545b664b2f8b9118d9e8'
- version '2.0.0-rc3'
+ md5 'ca4ea4e34bcc2162aedf25df8b2d1747'
+ version '3.20051105'
+
+ def patches
+ {:p0 => [
+ # MacPorts patches: http://trac.macports.org/browser/trunk/dports/net/hping3
+ "http://trac.macports.org/export/70033/trunk/dports/net/hping3/files/patch-libpcap_stuff.c.diff",
+ "http://trac.macports.org/export/70033/trunk/dports/net/hping3/files/patch-ars.c.diff",
+ "http://trac.macports.org/export/70033/trunk/dports/net/hping3/files/patch-sendip.c.diff",
+ "http://trac.macports.org/export/70033/trunk/dports/net/hping3/files/patch-Makefile.in.diff",
+ "http://trac.macports.org/export/70033/trunk/dports/net/hping3/files/patch-bytesex.h.diff"
+ ]}
+ end
def install
- ENV['MANPATH'] = man
- system "./configure"
- inreplace 'Makefile' do |contents|
- contents.change_make_var! "INSTALL_PATH", prefix
+ # Compile fails with tcl support; TCL on OS X is 32-bit only
+ system "./configure", "--no-tcl"
+
+ inreplace 'Makefile' do |s|
+ s.change_make_var! "INSTALL_PATH", prefix
+ s.change_make_var! "INSTALL_MANPATH", man
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"
- ]
+ # Target folders need to exist before installing
+ sbin.mkpath
+ (man+"man8").mkpath
+ system "make install"
end
-
end