homebrew-core/Formula/sntop.rb
chdiza a44aba82e8 sntop: Ensure that the manpage is installed
Closes Homebrew/homebrew#29906.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-05 17:08:18 +01:00

28 lines
782 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. 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