# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                siege
version             3.0.8
revision            1
categories          www benchmarks
platforms           darwin
maintainers         nomaintainer
license             GPL-2+

description         http regression testing and benchmarking utility

long_description    Siege is an http regression testing and benchmarking \
                    utility. It was designed to let web developers measure the \
                    performance of their code under duress, to see how it will \
                    stand up to load on the internet. It lets the user hit a \
                    web server with a configurable number of concurrent \
                    simulated users.

homepage            http://www.joedog.org/siege-home/
master_sites        http://download.joedog.org/siege/

checksums           rmd160  f63d87b886caa9eb3599a50fbf850f7a3867b6d1 \
                    sha256  b8b5e3e722b75ab2c8a1a51ca25fc58ae599cf78d84e096242ee57622803b297

depends_lib         path:lib/libssl.dylib:openssl

patchfiles          patch-doc-Makefile.in.diff

configure.args      --mandir=${prefix}/share/man \
                    --with-ssl=${prefix}

set docdir ${prefix}/share/doc/${name}

post-destroot {
    # copy an example siegerc to ${prefix}share/doc so an updater can see
    # possible changes to siegerc:
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 ${worksrcpath}/doc/siegerc ${destroot}${docdir}
}

notes "
To use siege you have to run 'siege.config'. This generates a default\
configuration file.
If you are updating have a look at a possible new '.siegerc' file in\
${docdir}/siegerc.
"

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