<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/ae5bae7c21b4c5181b0bdf92349891f246666cb4">https://github.com/macports/macports-ports/commit/ae5bae7c21b4c5181b0bdf92349891f246666cb4</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ae5bae7c21b4c5181b0bdf92349891f246666cb4
</span>Author: Marius Schamschula <mps@macports.org>
AuthorDate: Sun Oct 15 12:51:58 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> mod_gnutls: add apache22 variant
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> assume maintainership
</span>---
www/mod_gnutls/Portfile | 47 +++++++++++++++++++++++++++++++++++------------
1 file changed, 35 insertions(+), 12 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/mod_gnutls/Portfile b/www/mod_gnutls/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 3fe38c9..b592006 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/www/mod_gnutls/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/mod_gnutls/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,15 +3,11 @@
</span> PortSystem 1.0
name mod_gnutls
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 0.6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 252d4b1ec3a18931ef51a5ded3e8426f415150f4 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 5fb2c79fd64f55faabde50c6ba3ef7b959825c8a6130152d00ca18f6d99bc041
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.8.2
</span> categories www security crypto
license Apache-2
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {mps @Schamschula} openmaintainer
</span>
description \
mod_gnutls is an extension for Apache's httpd uses the GnuTLS library to \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,20 +21,47 @@ long_description \
</span> homepage https://mod.gnutls.org
master_sites ${homepage}/downloads/
<span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 8a3c82f20fe6012e540040bb0161838acacd04ab \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 05eeb78e41f1fd6780607a17d705b1965ce5c3ce6223a9a8a86ba9288d22e683
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_build port:pkgconfig
depends_lib port:apache2 \
port:gnutls
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-src_Makefile.am.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> use_autoreconf yes
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[variant_isset apache22]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # version 0.8.x requires apache 2.4.x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 0.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 252d4b1ec3a18931ef51a5ded3e8426f415150f4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 5fb2c79fd64f55faabde50c6ba3ef7b959825c8a6130152d00ca18f6d99bc041
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-src_Makefile.am.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</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 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;'>+ use_bzip2 yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</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 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> configure.args --disable-silent-rules \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-apxs=${prefix}/apache2/bin/apxs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-apxs=${apxs} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-strict
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.violate_mtree yes
</span> pre-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${prefix}/apache2/modules
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -d ${mdir}
</span> }
post-destroot {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -57,5 +80,5 @@ livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
</span> notes "
To enable ${name}, add
LoadModule gnutls_module modules/mod_gnutls.so
<span style='display:block; white-space:pre;background:#ffe0e0;'>-to your ${prefix}/apache2/conf/httpd.conf file.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+to your ${httpd_conf} file.
</span> "
</pre><pre style='margin:0'>
</pre>