<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/de084a141b02005f7afdb9db98a7aecc9b317c72">https://github.com/macports/macports-ports/commit/de084a141b02005f7afdb9db98a7aecc9b317c72</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit de084a141b02005f7afdb9db98a7aecc9b317c72
</span>Author: Marius Schamschula <mps@macports.org>
AuthorDate: Sun Oct 15 12:51:10 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> mod_fcgid: add apache22 variant
</span>---
www/mod_fcgid/Portfile | 36 +++++++++++++++++++++++++++---------
1 file changed, 27 insertions(+), 9 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/mod_fcgid/Portfile b/www/mod_fcgid/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b86edec..2446b74 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/www/mod_fcgid/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/mod_fcgid/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,37 +32,55 @@ post-patch {
</span> ${worksrcpath}/modules/fcgid/fcgid_conf.c
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.env APXS=${prefix}/apache2/bin/apxs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[variant_isset apache22]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set apache_name apache22
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set apxs ${prefix}/apache22/bin/apxs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set extra ${prefix}/apache22/conf/extra/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set httpd_conf ${prefix}/apache22/conf/httpd.conf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mdir ${destroot}${prefix}/apache22/modules/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set apache_name apache2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set apxs ${prefix}/bin/apxs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set extra ${prefix}/etc/apache2/extra/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set httpd_conf ${prefix}/etc/apache2/httpd.conf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set mdir ${destroot}${prefix}/lib/apache2/modules/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant apache22 description "use apache22 instead of apache2" {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-replace port:apache2 port:apache22
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.violate_mtree yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.env APXS=${apxs}
</span> configure.cmd ./configure.apxs
configure.pre_args
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.violate_mtree yes
</span> destroot.keepdirs ${destroot}${prefix}/var/run/${name}
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}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${prefix}/apache2/conf/extra
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${extra}
</span> xinstall -m 644 ${filespath}/httpd-fcgid.conf \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/apache2/conf/extra/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${extra}
</span> }
notes "
==========
This port installs a configuration file to enable mod_fcgid in Apache.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-After install add these lines to the end of ${prefix}/apache2/conf/httpd.conf to enable mod_fcgid.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+After install add these lines to the end of ${httpd_conf} to enable mod_fcgid.
</span> # Include module mod_fcgid
Include conf/extra/httpd-fcgid.conf
<span style='display:block; white-space:pre;background:#ffe0e0;'>-You should then restart apache2 to load the module.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- $ sudo port unload apache2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- $ sudo port load apache2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+You should then restart ${apache_name} to load the module.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $ sudo port unload ${apache_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $ sudo port load ${apache_name}
</span>
For further configuration information please visit
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
<span style='display:block; white-space:pre;background:#ffe0e0;'>-When upgrading from version 2.2, please see the above URL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+When upgrading from mod_fcgid version 2.2, please see the above URL
</span> about deprecated config options!
=========="
</pre><pre style='margin:0'>
</pre>