homebrew-core/Formula/sntop.rb

27 lines
747 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Sntop < Formula
homepage 'http://sntop.sourceforge.net/'
2012-03-22 04:22:14 +00:00
url 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/sntop-1.4.3.tar.gz'
md5 '0e99c64ea5a1bad6c1a32ac0dc2e9dd9'
2012-03-22 04:22:14 +00:00
depends_on 'fping'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--sysconfdir=#{etc}"
bin.mkpath
system "make install"
end
2012-03-22 04:22:14 +00:00
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