# $Id$

PortSystem       1.0

name             autobench
version          2.1.2
revision         2
categories       www benchmarks
license          GPL-2+
maintainers      nomaintainer
description      automatic webserver benchmark tool
long_description \
    Autobench is a simple Perl script for automating the process \
    of benchmarking a web server (or for conducting a comparative \
    test of two different web servers). The script is a wrapper \
    around httperf. Autobench runs httperf a number of times \
    against each host, increasing the number of requested \
    connections per second on each iteration, and extracts the \
    significant data from the httperf output, delivering a CSV or \
    TSV format file which can be imported directly into a \
    spreadsheet for analysis/graphing.
homepage         http://www.xenoclast.org/autobench/
platforms        darwin
master_sites     ${homepage}downloads/
checksums        md5 dbd00818840ed8d3c3d35734f0353cff

depends_run      bin:httperf:httperf port:gawk

patchfiles       Makefile.diff patch-bench2graph.diff

configure {
	reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/Makefile
}

universal_variant no

livecheck.type   regex
livecheck.url    [lindex ${master_sites} 0]
livecheck.regex  ${name}-(\[0-9.\]+)\\.tar