homebrew-core/Formula/bmon.rb

35 lines
1.1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Bmon < Formula
desc "Interface bandwidth monitor"
homepage "https://github.com/tgraf/bmon"
url "https://github.com/tgraf/bmon/releases/download/v3.8/bmon-3.8.tar.gz"
sha256 "da3e9f5f82f6e65bf08d912cc1e6ba450e488c543151f4b37791da03373054ff"
2014-07-21 20:44:52 +00:00
bottle do
2015-09-24 05:04:39 +00:00
sha256 "7215050b89d4cbf877365c7a66885ca80be97f94b0cace93dc51cc1b29c2108e" => :el_capitan
2015-08-07 22:39:27 +00:00
sha256 "576b5d70844675bcf7dfa15df9e7b69065e2c951dbb52e1b156215e8a8ddd93c" => :yosemite
sha256 "1f170230b89afb2a9761cb30283a7cfdc18468e6df7e4744fc882d60bb67852d" => :mavericks
sha256 "84e9754b63dd5133669d7194ceab9ae36b90f4af5e05f77a9f1ed9e744121802" => :mountain_lion
end
2014-07-21 20:44:52 +00:00
head do
url "https://github.com/tgraf/bmon.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
end
depends_on "confuse" => :build
depends_on "pkg-config" => :build
def install
2014-07-21 20:44:52 +00:00
system "./autogen.sh" if build.head?
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
test do
system "#{bin}/bmon", "-o", "ascii:quitafter=1"
end
end