blob: 38e1fc622d6166a31d06e0761f9bd213ca226085 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
require 'formula'
class Mtr < Formula
url 'ftp://ftp.bitwizard.nl/mtr/mtr-0.80.tar.gz'
homepage 'http://www.bitwizard.nl/mtr/'
md5 'fa68528eaec1757f52bacf9fea8c68a9'
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
|