39 lines
1.2 KiB
Ruby
39 lines
1.2 KiB
Ruby
class HttpLoad < Formula
|
|
desc "Test throughput of a web server by running parallel fetches"
|
|
homepage "https://www.acme.com/software/http_load/"
|
|
url "https://www.acme.com/software/http_load/http_load-09Mar2016.tar.gz"
|
|
version "20160309"
|
|
sha256 "5a7b00688680e3fca8726dc836fd3f94f403fde831c71d73d9a1537f215b4587"
|
|
revision 2
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "36fada1e1b8cbe35a9eb1fb2374c175a003d750f0560565c6bfaf6b90a17f748" => :catalina
|
|
sha256 "d0d672723564b758fc3ef0721239e108ec063a395e183db033071200d5d9ee48" => :mojave
|
|
sha256 "22e21275c49121c174024104f9b99c5f55d37e032ff7cae42bba89746c26bd88" => :high_sierra
|
|
sha256 "a949ed2040faf49c7cdb6bf0110dfbbff465641c811e78a035998a4160170a05" => :sierra
|
|
end
|
|
|
|
depends_on "openssl@1.1"
|
|
|
|
def install
|
|
bin.mkpath
|
|
man1.mkpath
|
|
|
|
args = %W[
|
|
BINDIR=#{bin}
|
|
LIBDIR=#{lib}
|
|
MANDIR=#{man1}
|
|
CC=#{ENV.cc}
|
|
SSL_TREE=#{Formula["openssl@1.1"].opt_prefix}
|
|
]
|
|
|
|
inreplace "Makefile", "#SSL_", "SSL_"
|
|
system "make", "install", *args
|
|
end
|
|
|
|
test do
|
|
(testpath/"urls").write "https://brew.sh/"
|
|
system "#{bin}/http_load", "-rate", "1", "-fetches", "1", "urls"
|
|
end
|
|
end
|