class Sntop < Formula desc "Curses-based utility that polls hosts to determine connectivity" homepage "https://sntop.sourceforge.io/" url "https://pkg.freebsd.org/ports-distfiles/sntop-1.4.3.tar.gz" sha256 "943a5af1905c3ae7ead064e531cde6e9b3dc82598bbda26ed4a43788d81d6d89" bottle do rebuild 1 sha256 "886a981f2c95a8a17d4bfb44c27d99cde66faeb4f2942d1c43757e8d702509c6" => :catalina sha256 "d010bc2fa761320d0d0f4948d5f95392d892e7bd7815418e9881ec90049d4036" => :mojave sha256 "c22d769ddb8599acf3f03db2ef85eef5ee28e41f9ec3011e9b23f6168ceb0a76" => :high_sierra 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 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 test do system "#{bin}/sntop", "--version" end end