27 lines
858 B
Ruby
27 lines
858 B
Ruby
class Nethogs < Formula
|
|
desc "Net top tool grouping bandwidth per process"
|
|
homepage "https://raboof.github.io/nethogs/"
|
|
url "https://github.com/raboof/nethogs/archive/v0.8.6.tar.gz"
|
|
sha256 "317c1d5235d4be677e494e931c41d063a783ac0ac51e35e345e621d261c2e5a0"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "6f6124fdf95847d5a49d15733e1bebb0b7060995f7ad672863fcd89bb985ef1d" => :catalina
|
|
sha256 "e61f5ad80657ad381414c992a391d454689f6845965387c7b803f115b5fd72b4" => :mojave
|
|
sha256 "f994c61fe07025f7c18de9a15be44c3de107e12c19cde6e3cd53a892cc61b7b4" => :high_sierra
|
|
end
|
|
|
|
uses_from_macos "libpcap"
|
|
uses_from_macos "ncurses"
|
|
|
|
def install
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
# Using -V because other nethogs commands need to be run as root
|
|
system sbin/"nethogs", "-V"
|
|
end
|
|
end
|