2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-06 22:54:52 +00:00
|
|
|
|
|
|
|
class Wireshark <Formula
|
2010-08-30 23:28:57 +00:00
|
|
|
url 'http://media-2.cacetech.com/wireshark/src/wireshark-1.4.0.tar.bz2'
|
|
|
|
md5 '13b188baea23cdad40b7a55921384a77'
|
2010-04-27 15:32:57 +00:00
|
|
|
homepage 'http://www.wireshark.org'
|
2009-06-06 22:54:52 +00:00
|
|
|
|
2010-04-27 15:32:57 +00:00
|
|
|
depends_on 'gnutls' => :optional
|
|
|
|
depends_on 'pcre' => :optional
|
2010-01-13 13:50:24 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
|
2009-06-06 22:54:52 +00:00
|
|
|
def install
|
2010-04-27 15:32:57 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
2009-08-07 14:41:43 +00:00
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-wireshark" # actually just disables the GTK GUI
|
2010-04-27 15:32:57 +00:00
|
|
|
system "make"
|
|
|
|
ENV.j1 # Install failed otherwise.
|
2009-06-06 22:54:52 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-06-06 22:54:52 +00:00
|
|
|
def caveats
|
2010-04-07 05:58:35 +00:00
|
|
|
"We don't build the X11-enabled GUI by default"
|
2009-06-06 22:54:52 +00:00
|
|
|
end
|
|
|
|
end
|