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"
|
2014-12-15 19:24:17 +00:00
|
|
|
url "https://github.com/tgraf/bmon/releases/download/v3.6/bmon-3.6.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "62c8c20d00572a7670891d4c112924786cb69ec4ca92d5052951566f000d1514"
|
2014-07-21 20:44:52 +00:00
|
|
|
|
2014-07-22 06:22:31 +00:00
|
|
|
bottle do
|
2014-12-15 19:33:10 +00:00
|
|
|
sha1 "a6288882c0c468f2d3d3c484c2f58c3ec2ec1856" => :yosemite
|
|
|
|
sha1 "b1735717a26afeb7e5d06172ba7ed0f14d2e70a0" => :mavericks
|
|
|
|
sha1 "70b7cb76fa2f1f3f53e0baaaf3b089276ca7a5db" => :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}"
|
2009-10-17 13:25:42 +00:00
|
|
|
system "make" # two steps to prevent blowing up
|
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
|