2011-01-31 06:11:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Tcptraceroute < Formula
|
2013-11-30 10:52:39 +00:00
|
|
|
homepage 'https://github.com/mct/tcptraceroute'
|
2013-06-26 16:02:53 +00:00
|
|
|
url 'https://github.com/mct/tcptraceroute/archive/tcptraceroute-1.5beta7.tar.gz'
|
2011-01-31 06:11:09 +00:00
|
|
|
version '1.5beta7'
|
2013-06-26 16:02:53 +00:00
|
|
|
sha1 '36b325a73d814cd62932f0def43e7d8e952474c1'
|
2011-01-31 06:11:09 +00:00
|
|
|
|
|
|
|
depends_on 'libnet'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-libnet=#{HOMEBREW_PREFIX}",
|
|
|
|
"--mandir=#{man}"
|
|
|
|
system "make install"
|
|
|
|
end
|
2013-07-17 13:02:01 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
tcptraceroute requires superuser privileges. You can either run the program
|
|
|
|
via `sudo`, or change its ownership to root and set the setuid bit:
|
|
|
|
|
2013-07-18 07:50:33 +00:00
|
|
|
sudo chown root:wheel #{bin}/tcptraceroute
|
|
|
|
sudo chmod u+s #{bin}/tcptraceroute
|
2013-07-17 13:02:01 +00:00
|
|
|
|
|
|
|
In any case, you should be certain that you trust the software you
|
|
|
|
are executing with elevated privileges.
|
|
|
|
EOS
|
|
|
|
end
|
2011-01-31 06:11:09 +00:00
|
|
|
end
|