27 lines
818 B
Ruby
27 lines
818 B
Ruby
require 'formula'
|
|
|
|
class Sntop < Formula
|
|
homepage 'http://sntop.sourceforge.net/'
|
|
url 'http://distcache.freebsd.org/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}"
|
|
etc.mkpath
|
|
bin.mkpath
|
|
man1.mkpath
|
|
system "make install"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
sntop uses fping by default and fping can only be run by root by default.
|
|
You can run `sudo sntop` (or `sntop -p` which uses standard ping).
|
|
You should be certain that you trust any software you grant root privileges.
|
|
EOS
|
|
end
|
|
end
|