2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-06 22:54:52 +00:00
|
|
|
|
|
|
|
class Wireshark <Formula
|
2010-06-10 23:55:20 +00:00
|
|
|
url 'http://media-2.cacetech.com/wireshark/src/wireshark-1.2.9.tar.bz2'
|
|
|
|
md5 'a4240c36f1e668d85b703eacb7c0a95e'
|
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
|