2010-11-25 16:56:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Sntop < Formula
|
2010-11-25 16:56:49 +00:00
|
|
|
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'
|
2010-11-25 16:56:49 +00:00
|
|
|
md5 '0e99c64ea5a1bad6c1a32ac0dc2e9dd9'
|
2012-03-22 04:22:14 +00:00
|
|
|
|
2010-11-25 16:56:49 +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
|
2010-11-29 22:57:09 +00:00
|
|
|
|
2012-03-22 04:22:14 +00:00
|
|
|
def caveats; <<-EOS.undent
|
2010-11-29 22:57:09 +00:00
|
|
|
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
|
2010-11-25 16:56:49 +00:00
|
|
|
end
|