# -*- 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                thttpd
version             2.29
revision            1
categories          net
license             BSD
maintainers         nomaintainer

description         simple, small, portable, fast, and secure HTTP server

long_description    Thttpd handles only the minimum necessary to implement \
                    HTTP/1.1, has a very small run-time size, supports CGI, \
                    IPv6, and bandwidth throttling.

homepage            http://acme.com/software/thttpd/
master_sites        ${homepage}

checksums           rmd160  e474907d4cf5400a91701eaf02057bae36d444aa \
                    sha256  99c09f47da326b1e7b5295c45549d2b65534dce27c44812cf7eef1441681a397 \
                    size    133967

depends_build       port:libtool

universal_variant   no

patchfiles          implicit.patch \
                    CFLAGS.patch \
                    patch-Makefile.in.diff \
                    patch-cgi-src-Makefile.in.diff \
                    patch-extras-Makefile.in.diff

configure.args-append --mandir=${prefix}/share/man

pre-configure {
    xinstall -m 644 -W ${prefix}/share/libtool/build-aux config.guess config.sub ${worksrcpath}
}

use_parallel_build  no

conflicts           apache22

livecheck.type      regex
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
