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
|
|
|
url 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/sntop-1.4.3.tar.gz'
|
|
|
|
homepage 'http://sntop.sourceforge.net/'
|
|
|
|
md5 '0e99c64ea5a1bad6c1a32ac0dc2e9dd9'
|
|
|
|
version 'v1.4.3'
|
|
|
|
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
|
|
|
|
|
|
|
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
|
2010-11-25 16:56:49 +00:00
|
|
|
end
|