95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
25 lines
799 B
Ruby
25 lines
799 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"
|
|
sha256 "77c54a64cfa5f12a84729833d9b98d5f27f828f51a5e42ad5914482d0b2bd0d6"
|
|
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
|