homebrew-core/Formula/jnettop.rb

35 lines
1.4 KiB
Ruby

class Jnettop < Formula
desc "View hosts/ports taking up the most network traffic"
# http://jnettop.kubs.info/ is offline
homepage "https://packages.debian.org/sid/net/jnettop"
# http://jnettop.kubs.info/dist/jnettop-0.13.0.tar.gz is offline
url "https://mirrors.ocf.berkeley.edu/debian/pool/main/j/jnettop/jnettop_0.13.0.orig.tar.gz"
mirror "https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/j/jnettop/jnettop_0.13.0.orig.tar.gz"
sha256 "e987a1a9325595c8a0543ab61cf3b6d781b4faf72dd0e0e0c70b2cc2ceb5a5a0"
bottle do
cellar :any
sha256 "5916a94915266f06d9f375bd0adc8566fce9fb5f521e8a3649927ec57c920209" => :high_sierra
sha256 "1f1b2d92a71bef0abeffc34c88907cdd45ad778951868a4c1567ba4c01c94ea1" => :sierra
sha256 "f1c0898a53c14790da39524c03e17c666604076e0cfcb66bcd9a8f40f8d960bc" => :el_capitan
sha256 "871294088a51e4726a38b1fb3fc631d88176dbd7fbfd9e42adb2626f24c7499a" => :yosemite
sha256 "5a4ddf114a63d47ca767875f565f1838f75975f26e803889aed580a40fcb95c4" => :mavericks
sha256 "71e64877f2b989ec3eaffbe49e89c576cb14a42543bb37ad2218567f2200b3ff" => :mountain_lion
end
depends_on "pkg-config" => :build
depends_on "glib"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--man=#{man}"
system "make", "install"
end
test do
system "#{bin}/jnettop", "-h"
end
end