homebrew-core/Formula/wireshark.rb

48 lines
1.4 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Wireshark < Formula
url 'http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-1.6.2.tar.bz2'
md5 '301677b5f8150265315632fb6247e06e'
2010-04-27 15:32:57 +00:00
homepage 'http://www.wireshark.org'
2010-04-27 15:32:57 +00:00
depends_on 'gnutls' => :optional
depends_on 'pcre' => :optional
depends_on 'glib'
depends_on 'gtk+' if ARGV.include? "--with-x"
def options
[["--with-x", "Include X11 support"]]
end
2010-11-04 04:32:25 +00:00
def install
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.
system "make install"
end
def caveats; <<-EOS.undent
If your list of available capture interfaces is empty
(default OS X behavior), try the following commands:
wget https://bugs.wireshark.org/bugzilla/attachment.cgi?id=3373 -O ChmodBPF.tar.gz
tar zxvf ChmodBPF.tar.gz
open ChmodBPF/Install\\ ChmodBPF.app
This adds a launch daemon that changes the permissions of your BPF
devices so that all users in the 'admin' group - all users with
'Allow user to administer this computer' turned on - have both read
and write access to those devices.
See bug report:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3760
EOS
end
end