homebrew-core/Formula/tcptraceroute.rb
Guillaume Hain ad9fe37c3b tcptraceroute: update homepage
Closes Homebrew/homebrew#24798.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-12-18 20:05:41 -08:00

30 lines
963 B
Ruby

require 'formula'
class Tcptraceroute < Formula
homepage 'https://github.com/mct/tcptraceroute'
url 'https://github.com/mct/tcptraceroute/archive/tcptraceroute-1.5beta7.tar.gz'
version '1.5beta7'
sha1 '36b325a73d814cd62932f0def43e7d8e952474c1'
depends_on 'libnet'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-libnet=#{HOMEBREW_PREFIX}",
"--mandir=#{man}"
system "make install"
end
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:
sudo chown root:wheel #{bin}/tcptraceroute
sudo chmod u+s #{bin}/tcptraceroute
In any case, you should be certain that you trust the software you
are executing with elevated privileges.
EOS
end
end