<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/7bce61c3edd75cf25bd5e7e8c6c7b10cc6be6e5e">https://github.com/macports/macports-ports/commit/7bce61c3edd75cf25bd5e7e8c6c7b10cc6be6e5e</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7bce61c3edd75cf25bd5e7e8c6c7b10cc6be6e5e
</span>Author: Marius Schamschula <mps@macports.org>
AuthorDate: Sun Oct 15 12:47:12 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> mod_authn_otp: add apache22 variant
</span>---
www/mod_authn_otp/Portfile | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/mod_authn_otp/Portfile b/www/mod_authn_otp/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9417ed9..c0ac89a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/www/mod_authn_otp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/mod_authn_otp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,17 +33,29 @@ use_autoreconf yes
</span>
configure.args --mandir=${prefix}/share/man
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[variant_isset 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 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 apxs ${prefix}/bin/apxs
</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> post-configure {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|/usr/sbin/apxs|${prefix}/apache2/bin/apxs|g" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/usr/sbin/apxs|${apxs}|g" ${worksrcpath}/Makefile
</span> # sed doesn't know about option "-r", gsed does
reinplace "s| sed| ${prefix}/bin/gsed|g" ${worksrcpath}/Makefile
# when stripping .so, option "-x" has to be specified
reinplace "s| \$(STRIP) \$(DESTDIR)\`| \$(STRIP) -x \$(DESTDIR)\`|" ${worksrcpath}/Makefile
}
<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 {
</pre><pre style='margin:0'>
</pre>