2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-06 22:54:52 +00:00
|
|
|
|
|
|
|
class Wireshark <Formula
|
2010-11-25 00:26:47 +00:00
|
|
|
url 'http://media-2.cacetech.com/wireshark/src/wireshark-1.4.2.tar.bz2'
|
|
|
|
md5 '5429561935ea0d1ee572793b55446918'
|
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'
|
2010-11-03 06:16:44 +00:00
|
|
|
depends_on 'gtk+' if ARGV.include? "--with-x"
|
|
|
|
|
|
|
|
def options
|
|
|
|
[["--with-x", "Include X11 support"]]
|
|
|
|
end
|
2010-11-04 04:32:25 +00:00
|
|
|
|
2009-06-06 22:54:52 +00:00
|
|
|
def install
|
2010-11-03 06:16:44 +00:00
|
|
|
args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
|
|
|
|
|
|
|
|
# actually just disables the GTK GUI
|
|
|
|
args << "--disable-wireshark" if not ARGV.include? "--with-x"
|
|
|
|
|
|
|
|
system "./configure", *args
|
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
|
|
|
|
end
|
2010-11-03 06:16:44 +00:00
|
|
|
|