2011-03-10 05:11:03 +00:00
|
|
|
class Bmon < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Interface bandwidth monitor"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://github.com/tgraf/bmon"
|
2015-08-07 19:14:19 +00:00
|
|
|
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
|
|
|
|
2014-07-22 06:22:31 +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
|
2014-07-22 06:22:31 +00:00
|
|
|
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
|
2009-10-17 13:25:42 +00:00
|
|
|
|
|
|
|
def install
|
2014-07-21 20:44:52 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2011-03-11 04:34:57 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2009-10-17 13:25:42 +00:00
|
|
|
end
|
2014-12-15 19:24:17 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/bmon", "-o", "ascii:quitafter=1"
|
|
|
|
end
|
2009-10-17 13:25:42 +00:00
|
|
|
end
|