2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-11 19:13:26 +00:00
|
|
|
|
|
|
|
class Mtr <Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
url 'ftp://ftp.bitwizard.nl/mtr/mtr-0.75.tar.gz'
|
|
|
|
homepage 'http://www.bitwizard.nl/mtr/'
|
|
|
|
md5 '23baca52d0922c2ecba7eba05317868c'
|
2009-09-11 19:13:26 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# We need to add this because nameserver8_compat.h has been removed in Snow Leopard
|
2010-04-07 05:58:35 +00:00
|
|
|
ENV['LIBS'] = "-lresolv"
|
2009-09-11 19:13:26 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
|
|
|
end
|
2009-12-02 10:53:00 +00:00
|
|
|
|
|
|
|
def caveats
|
|
|
|
"Run mtr sudo'd in order to avoid the error: `unable to get raw sockets'"
|
|
|
|
end
|
2009-09-11 19:13:26 +00:00
|
|
|
end
|