2c2af243fe
The --enable-debug configure-time option builds httperf with runtime support for the --debug=N or -d=N flags, which show details about the requests and responses. N is a number; the higher the number, the more detail you get. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
18 lines
511 B
Ruby
18 lines
511 B
Ruby
require 'formula'
|
|
|
|
class Httperf < Formula
|
|
url 'http://httperf.googlecode.com/files/httperf-0.9.0.tar.gz'
|
|
homepage 'http://code.google.com/p/httperf/'
|
|
md5 '2968c36b9ecf3d98fc1f2c1c9c0d9341'
|
|
|
|
def options
|
|
[['--enable-debug', 'build with support for the --debug=N option']]
|
|
end
|
|
|
|
def install
|
|
debug = ARGV.include?('--enable-debug') ? '--enable-debug' : '--disable-debug'
|
|
|
|
system "./configure", "--prefix=#{prefix}", debug, "--disable-dependency-tracking"
|
|
system "make install"
|
|
end
|
|
end
|