homebrew-core/Formula/sntop.rb
2012-09-03 11:36:42 -07:00

26 lines
756 B
Ruby

require 'formula'
class Sntop < Formula
homepage 'http://sntop.sourceforge.net/'
url 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/sntop-1.4.3.tar.gz'
sha1 '8a96bb453a83262e30215a31be508c16dbd71e27'
depends_on 'fping'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--sysconfdir=#{etc}"
bin.mkpath
system "make install"
end
def caveats; <<-EOS.undent
sntop uses fping by default. fping can only be run by root by default so
either use sudo to run sntop or setuid root fping.
Alternatively, run sntop using standard ping (sntop -p).
EOS
end
end