# -*- 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
description mod_qos is a quality of service module for the Apache web server
long_description ${description} implementing control mechanisms that can provide \
different levels of priority to different HTTP requests.
homepage http://mod-qos.sourceforge.net/index.html
master_sites sourceforge:project/mod-qos/
checksums rmd160 b3ee6b81c0c7c353acbb47be18210e2f16b982fa \
sha256 4038b0ef393fd58270e5670d6e3d2fdd438ca73d603babb6bf49938aa803d6a0 \
depends_build port:autoconf \
depends_lib port:apache2 \
path:lib/libssl.dylib:openssl \
patchfiles patch-tools-Makefile.in.diff
configure.dir ${worksrcpath}/tools
configure.env LDFLAGS=-L${prefix}/lib/db48
build.dir ${configure.dir}
pre-configure { copy ${filespath}/aclocal.m4 ${worksrcpath}/tools }
set apxs ${prefix}/bin/apxs
set mdir ${destroot}${prefix}/lib/apache2/modules/
system -W ${worksrcpath}/apache2 "${apxs} -c mod_qos.c -lcrypto -lpcre"
xinstall -m 755 -d ${mdir}
xinstall -m 755 ${worksrcpath}/apache2/.libs/mod_qos.so ${mdir}
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/images
xinstall -m 644 {*}[glob -type f ${worksrcpath}/doc/*] \
${destroot}${prefix}/share/doc/${name}
xinstall -m 644 {*}[glob ${worksrcpath}/doc/images/*] \
${destroot}${prefix}/share/doc/${name}/images
livecheck.url https://sourceforge.net/projects/mod-qos/rss
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}