homebrew-core/Formula/fq.rb

37 lines
1.2 KiB
Ruby

class Fq < Formula
desc "Brokered message queue optimized for performance"
homepage "https://github.com/circonus-labs/fq"
url "https://github.com/circonus-labs/fq/archive/v0.10.5.tar.gz"
sha256 "e56c690c2fd391b11f7d5466c2964e42db720154b07288274ef526f0c827efcd"
head "https://github.com/circonus-labs/fq.git"
bottle do
sha256 "3703eaf59778ef9cc3466e7532a50831a4cb9c7a8d68ad2ec703e2916e7efadd" => :high_sierra
sha256 "5f0a3d0263c80f8f623b201103cf4262213a21f355ace7037b02145a0d0d3242" => :sierra
sha256 "cf379add9665e48776c6083ec15f8e7d7c0e2036a072d9a04dae109550eb7242" => :el_capitan
sha256 "508d82d68e29891fbcc027761f9cdea6e157822460c8ba5bbcf8819b15679acb" => :yosemite
end
depends_on "concurrencykit"
depends_on "jlog"
depends_on "openssl"
def install
inreplace "Makefile", "/usr/lib/dtrace", "#{lib}/dtrace"
system "make", "PREFIX=#{prefix}"
system "make", "install", "PREFIX=#{prefix}"
bin.install "fqc", "fq_sndr", "fq_rcvr"
end
test do
pid = fork { exec sbin/"fqd", "-D", "-c", testpath/"test.sqlite" }
sleep 1
begin
assert_match /Circonus Fq Operational Dashboard/, shell_output("curl 127.0.0.1:8765")
ensure
Process.kill 9, pid
Process.wait pid
end
end
end