7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
18 lines
538 B
Ruby
18 lines
538 B
Ruby
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
|