blob: e77b3cac1f4d45a4884af30528178b123e943aa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require 'formula'
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"
end
def caveats
"Run mtr sudo'd in order to avoid the error: `unable to get raw sockets'"
end
end
|