# -*- 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
PortGroup           openssl 1.0
PortGroup           github 1.0

github.setup        shekyan slowhttptest 1.10.0 v
revision            0
checksums           rmd160  204e737d5926356881a710830fb71f82c53f5acb \
                    sha256  9e1e18e32c761b97eb92d4c3680bcbe60dc2fae852c1dc339460ac50c51be444 \
                    size    138700

categories          www
maintainers         {ryandesign @ryandesign} openmaintainer
license             Apache-2
installs_libs       no

description         a tool to test web servers for slow HTTP DoS vulnerabilities

long_description    SlowHTTPTest is a highly configurable tool that simulates \
                    some application layer denial of service attacks by \
                    prolonging HTTP connections in different ways. Use it to \
                    test your web server for DoS vulnerabilites or just to \
                    figure out how many concurrent connections it can handle.

github.tarball_from archive

configure.args-append \
                    --with-openssl=[openssl::install_area]

# Skip beta releases
github.livecheck.regex \
                    {(\d+(\.\d+)+)}

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}
}
