d770081479
mtr combines the functionality of the 'traceroute' and 'ping' programs in a single network diagnostic tool.
15 lines
463 B
Ruby
15 lines
463 B
Ruby
require 'brewkit'
|
|
|
|
class Mtr <Formula
|
|
@url='ftp://ftp.bitwizard.nl/mtr/mtr-0.75.tar.gz'
|
|
@homepage='http://www.bitwizard.nl/mtr/'
|
|
@md5='23baca52d0922c2ecba7eba05317868c'
|
|
|
|
def install
|
|
# We need to add this because nameserver8_compat.h has been removed in Snow Leopard
|
|
ENV['LIBS']= "-lresolv"
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
system "make install"
|
|
bin.install "mtr"
|
|
end
|
|
end
|