# $Id: Portfile 79834 2011-06-27 22:22:14Z pixilla@macports.org $

PortSystem          1.0

name                mod_fcgid
version             2.3.5

categories          www
platforms           darwin
maintainers         pixilla

description         An alternative FastCGI module for Apache2
long_description    ${description}

homepage            http://httpd.apache.org/mod_fcgid/
master_sites        apache:httpd/${name}

use_bzip2           yes
checksums           sha1    11034ad8231a6ea1e3c9385b9017e0f8dd7faff0 \
                    rmd160  35f153326cd3688fd66f4654a8d72a96cfb5709f

patchfiles          patch-fcgid_conf.c

depends_lib         port:apache2

configure.env       APXS=${prefix}/apache2/bin/apxs
configure.cmd       ./configure.apxs
configure.pre_args  

destroot.violate_mtree   yes
post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} \
      CHANGES-FCGID LICENSE-FCGID NOTICE-FCGID README-FCGID STATUS-FCGID \
      ${destroot}${prefix}/share/doc/${name}
}

notes "
==========
To enable mod_fcgid in Apache, add
   LoadModule fcgid_module modules/mod_fcgid.so
to ${prefix}/apache2/conf/httpd.conf

For further configuration information please visit
   http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html

When upgrading from version 2.2, please see the above URL
   about deprecated config options!
=========="
