homebrew-core/Formula/slowhttptest.rb
2015-06-05 14:47:57 +01:00

25 lines
773 B
Ruby

class Slowhttptest < Formula
desc "Simulates application layer denial of service attacks"
homepage "https://code.google.com/p/slowhttptest/"
url "https://slowhttptest.googlecode.com/files/slowhttptest-1.6.tar.gz"
sha1 "f5a64365b987083015ac98f6c20746021176292e"
revision 1
bottle do
cellar :any
sha1 "63fd25cdb3657c05d2d9f011b57a9b03d7652e26" => :yosemite
sha1 "afeb4f03c6fcd4c529c116f13f69ccad63d531f1" => :mavericks
sha1 "b2888913b6c2064ca85881847b700fbdb946dc58" => :mountain_lion
end
depends_on "openssl"
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/slowhttptest", *%w{-u http://google.com -p 1 -r 1 -l 1 -i 1}
end
end