Portfile

# $Id: Portfile 20491 2006-11-03 15:43:42Z blair@macports.org $

PortSystem 1.0

name mod_fastcgi
version 2.4.2
revision 1
categories www
maintainers dluke@geeklair.net
description An Apache module that implements the FastCGI protocol
long_description FastCGI is a language independent, scalable, open \
extension to CGI that provides high performance \
without the limitations of server specific APIs. \
This is the Apache module.

homepage http://www.fastcgi.com/
platforms darwin
master_sites ${homepage}/dist/
checksums md5 e994414304b535cb99e10b7d1cad1d1e

depends_lib path:${prefix}/apache2:apache2
patchfiles patch-fcgi_h.diff

configure {
file copy ${worksrcpath}/Makefile.AP2 ${worksrcpath}/Makefile
reinplace "s|/usr/local/apache2|${prefix}/apache2|g" \
${worksrcpath}/Makefile
reinplace "s|apachectl|${prefix}/apache2/bin/apachectl|g" \
${worksrcpath}/Makefile
reinplace "s|apxs|${prefix}/apache2/bin/apxs|g" ${worksrcpath}/Makefile
}

build.args INCLUDES=-I${prefix}/apache2/include

destroot {
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} \
${destroot}${prefix}/apache2/modules
xinstall -m 644 ${worksrcpath}/.libs/mod_fastcgi.so \
${destroot}${prefix}/apache2/modules
xinstall -m 644 -W ${worksrcpath}/docs LICENSE.TERMS mod_fastcgi.html \
${destroot}${prefix}/share/doc/${name}
}

post-install {
ui_msg "=========="
ui_msg "To enable mod_fastcgi in Apache, add"
ui_msg " LoadModule fastcgi_module modules/mod_fastcgi.so"
ui_msg "to ${prefix}/apache2/conf/httpd.conf"
ui_msg ""
ui_msg "For further configuration information please visit"
ui_msg " http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html"
ui_msg "=========="
}

files