# -*- 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
set branch [join [lrange [split ${version} .] 0 1] .]
description A secure, fast, compliant and flexible web-server
long_description lighttpd is a secure, fast, compliant and very \
flexible web server which has been optimized for \
high-performance environments. It has a very low \
memory footprint compared to other web servers \
and takes care of CPU load.
homepage http://www.lighttpd.net/
master_sites http://download.lighttpd.net/lighttpd/releases-${branch}.x/
checksums rmd160 3d54d76c8530c556e13bf189ba85ecf6a0e8e38d \
sha256 0d795597e4666dbf6ffe44b4a42f388ddb44736ddfab0b1ac091e5bb35212c2d
depends_build-append port:pkgconfig
patchfiles patch-conf.diff
reinplace "s|@PREFIX@|${prefix}|g" \
${worksrcpath}/doc/config/conf.d/cgi.conf \
${worksrcpath}/doc/config/conf.d/fastcgi.conf \
${worksrcpath}/doc/config/conf.d/mysql_vhost.conf \
${worksrcpath}/doc/config/conf.d/rrdtool.conf \
${worksrcpath}/doc/config/lighttpd.conf
depends_lib-append port:libev
patchfiles-append patch-conf-darwin.diff
reinplace "s|@USER@|${user}|g" ${worksrcpath}/doc/config/lighttpd.conf
reinplace "s|@GROUP@|${group}|g" ${worksrcpath}/doc/config/lighttpd.conf
configure.args-append --with-libev ac_cv_func_kqueue=no