9aabea6b0b
bumped mtr to v0.82 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
28 lines
761 B
Ruby
28 lines
761 B
Ruby
require 'formula'
|
|
|
|
class Mtr < Formula
|
|
url 'ftp://ftp.bitwizard.nl/mtr/mtr-0.82.tar.gz'
|
|
homepage 'http://www.bitwizard.nl/mtr/'
|
|
sha1 'f1319de27324d85898a9df0a293a438bbaaa12b5'
|
|
|
|
depends_on 'gtk+' unless ARGV.include? "--no-gtk"
|
|
|
|
def options
|
|
[
|
|
['--no-gtk', "Don't build with Gtk+ support"]
|
|
]
|
|
end
|
|
|
|
def install
|
|
# We need to add this because nameserver8_compat.h has been removed in Snow Leopard
|
|
ENV['LIBS'] = "-lresolv"
|
|
args = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"]
|
|
args << "--without-gtk" if ARGV.include? "--no-gtk"
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
|
|
def caveats
|
|
"Run mtr sudo'd in order to avoid the error: `unable to get raw sockets'"
|
|
end
|
|
end
|