2015-02-09 13:22:22 +00:00
|
|
|
class RiemannClient < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "C client library for the Riemann monitoring system"
|
2015-02-09 13:22:22 +00:00
|
|
|
homepage "https://github.com/algernon/riemann-c-client"
|
|
|
|
url "https://github.com/algernon/riemann-c-client/archive/riemann-c-client-1.3.0.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "64bb7ccdb6d7267110932feddcd8c3149588baf3227b05c330bfef97347be995"
|
2015-02-09 13:22:22 +00:00
|
|
|
|
2015-02-10 12:34:59 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "348a16b5fb7d400481de3109f147cfe198cf2717" => :yosemite
|
|
|
|
sha1 "12cd20d92512f4fb1f8b559da06fa88f78e267e5" => :mavericks
|
|
|
|
sha1 "9c3e0cf990883eec78f9cc51f42407cc80f832cc" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-02-09 13:22:22 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
|
|
|
|
depends_on "json-c"
|
|
|
|
depends_on "protobuf-c"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "autoreconf", "-i"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make", "check"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/riemann-client", "send", "-h"
|
|
|
|
end
|
|
|
|
end
|