7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
34 lines
1.2 KiB
Ruby
34 lines
1.2 KiB
Ruby
require 'formula'
|
|
|
|
class Hping <Formula
|
|
url 'http://www.hping.org/hping3-20051105.tar.gz'
|
|
homepage 'http://www.hping.org/'
|
|
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
|
|
# 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
|
|
|
|
# Target folders need to exist before installing
|
|
sbin.mkpath
|
|
man8.mkpath
|
|
system "make install"
|
|
end
|
|
end
|