class Sntop < Formula desc "Curses-based utility that polls hosts to determine connectivity" homepage "https://sntop.sourceforge.io/" url "http://distcache.freebsd.org/ports-distfiles/sntop-1.4.3.tar.gz" sha256 "943a5af1905c3ae7ead064e531cde6e9b3dc82598bbda26ed4a43788d81d6d89" bottle do rebuild 1 sha256 "f15c15a4e2251e86e55c3bd2c75f660448e38efe9b0b57edd6d3e9301377929c" => :sierra sha256 "c3f19036cf2d42ce9fa07ed6db6264b3e52ba475827903972877a8131eae60e9" => :el_capitan end 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