[132732] trunk/dports/www

devans at macports.org devans at macports.org
Mon Feb 9 08:28:12 PST 2015


Revision: 132732
          https://trac.macports.org/changeset/132732
Author:   devans at macports.org
Date:     2015-02-09 08:28:11 -0800 (Mon, 09 Feb 2015)
Log Message:
-----------
mod_perl: remove outdated port, broken for perl5.16+, no direct replacement in Apache 1 environment (#46764).

Added Paths:
-----------
    trunk/dports/www/libapreq2/
    trunk/dports/www/libapreq2/Portfile

Removed Paths:
-------------
    trunk/dports/www/mod_perl/

Copied: trunk/dports/www/libapreq2/Portfile (from rev 132722, trunk/dports/perl/p5-libapreq2/Portfile)
===================================================================
--- trunk/dports/www/libapreq2/Portfile	                        (rev 0)
+++ trunk/dports/www/libapreq2/Portfile	2015-02-09 16:28:11 UTC (rev 132732)
@@ -0,0 +1,66 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem              1.0
+PortGroup               perl5 1.0
+
+perl5.require_variant   yes
+perl5.conflict_variants yes
+perl5.branches          5.16 5.18 5.20
+
+name                    libapreq2
+perl5.setup             libapreq2 2.13 Apache2
+perl5.create_variants   ${perl5.branches}
+
+categories          www perl
+                    
+license             Apache-2
+maintainers         nomaintainer
+description         Methods for dealing with client request data
+long_description    Apache::Request is a subclass of the Apache class, \
+                    which adds methods for parsing GET requests and POST \
+                    requests where Content-type is one of \
+                    application/x-www-form-urlencoded or \
+                    multipart/form-data.
+
+platforms           darwin
+
+checksums           rmd160  8d7d2573624193b6dfbbe354b3771012257c1578 \
+                    sha256  5731e6833b32d88e4a5c690e45ddf20fcf969ce3da666c5627d775e92da0cf6e
+
+depends_lib-delete  port:perl5.16
+
+depends_lib-append  port:apache2 \
+                    port:mod_perl2 \
+                    port:p${perl5.major}-extutils-xsbuilder
+
+set apxs            ${prefix}/apache2/bin/apxs
+
+configure.args      --with-apache2-apxs=${apxs} \
+                    --with-mm-opts="${configure.args}"
+
+destroot.pre_args   install
+
+destroot.violate_mtree \
+                    yes
+
+post-destroot {
+    foreach packlist [exec find ${destroot} -name .packlist] {
+        ui_info "Fixing packlist ${packlist}"
+        reinplace "s|${destroot}||" ${packlist}
+    }
+    foreach badfile [exec find ${destroot} -name perllocal.pod] {
+        ui_info "Removing ${badfile}"
+        file delete ${badfile}
+    }
+}
+
+notes "
+If this your first install, you might want to enable apreq in Apache 2:
+
+    ${apxs} -a -e -n \"apreq\" mod_apreq2.so
+
+And then relaunch apache:
+
+    ${prefix}/apache2/bin/apachectl restart
+"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150209/4d908cc0/attachment.html>


More information about the macports-changes mailing list