373731b1cd
Closes Homebrew/homebrew#28704. Closes Homebrew/homebrew#28703. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
36 lines
1.2 KiB
Ruby
36 lines
1.2 KiB
Ruby
require 'formula'
|
|
|
|
class Siege < Formula
|
|
homepage 'http://www.joedog.org/index/siege-home'
|
|
url 'http://www.joedog.org/pub/siege/siege-3.0.5.tar.gz'
|
|
mirror 'http://ftp.de.debian.org/debian/pool/main/s/siege/siege_3.0.5.orig.tar.gz'
|
|
sha256 '283e624fd802775bf6eb8832c4f76dad6692aa1f3efa98db1ae2ddaba651ca99'
|
|
|
|
def install
|
|
# To avoid unnecessary warning due to hardcoded path, create the folder first
|
|
(prefix+'etc').mkdir
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--mandir=#{man}",
|
|
"--localstatedir=#{var}",
|
|
"--with-ssl"
|
|
system "make install"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
Mac OS X has only 16K ports available that won't be released until socket
|
|
TIME_WAIT is passed. The default timeout for TIME_WAIT is 15 seconds.
|
|
Consider reducing in case of available port bottleneck.
|
|
|
|
You can check whether this is a problem with netstat:
|
|
|
|
# sysctl net.inet.tcp.msl
|
|
net.inet.tcp.msl: 15000
|
|
|
|
# sudo sysctl -w net.inet.tcp.msl=1000
|
|
net.inet.tcp.msl: 15000 -> 1000
|
|
|
|
Run siege.config to create the ~/.siegerc config file.
|
|
EOS
|
|
end
|
|
end
|