[52756] trunk/dports/www

blb at macports.org blb at macports.org
Mon Jun 22 14:47:18 PDT 2009


Revision: 52756
          http://trac.macports.org/changeset/52756
Author:   blb at macports.org
Date:     2009-06-22 14:47:17 -0700 (Mon, 22 Jun 2009)
Log Message:
-----------
New port - www/mod_proxy_html, apache output filter to rewrite HTML; ticket #18212

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

Added: trunk/dports/www/mod_proxy_html/Portfile
===================================================================
--- trunk/dports/www/mod_proxy_html/Portfile	                        (rev 0)
+++ trunk/dports/www/mod_proxy_html/Portfile	2009-06-22 21:47:17 UTC (rev 52756)
@@ -0,0 +1,39 @@
+# $Id$
+
+PortSystem          1.0
+
+name                mod_proxy_html
+version             3.0.1
+categories          www
+maintainers         nomaintainer
+description         apache output filter to rewrite HTML
+long_description    mod_proxy_html is an output filter to rewrite HTML links in a proxy situation, to ensure that links work for users outside the proxy. It serves the same purpose as Apache's ProxyPassReverse directive does for HTTP headers, and is an essential component of a reverse proxy.
+homepage            http://apache.webthing.com/mod_proxy_html/
+platforms           darwin
+depends_lib         port:apache2 port:libxml2
+
+use_bzip2           yes
+
+master_sites        http://apache.webthing.com/mod_proxy_html/
+checksums           md5 badb7ee9fb3b892437589d7ceb21637c
+worksrcdir          ${name}
+
+use_configure       no
+build.cmd           ${prefix}/apache2/bin/apxs -c -I${prefix}/include/libxml2 ${name}.c
+build.target
+
+destroot.violate_mtree yes
+destroot {
+  xinstall -m 755 -d ${destroot}${prefix}/apache2/modules
+  xinstall -m 755 -d ${destroot}${prefix}/apache2/conf/extra
+  system "${prefix}/apache2/build/instdso.sh SH_LIBTOOL='${prefix}/share/apr-1/build/libtool' ${worksrcpath}/${name}.la ${destroot}${prefix}/apache2/modules"
+  xinstall -m 755 ${worksrcpath}/proxy_html.conf ${destroot}${prefix}/apache2/conf/extra
+}
+
+post-install {
+  ui_msg "\nNow edit ${prefix}/apache2/httpd.conf and add the following lines at the end of the LoadModules section:\n"
+  ui_msg " LoadFile ${prefix}/lib/libxml2.dylib"
+  ui_msg " LoadModule proxy_html_module  modules/mod_proxy_html.so"
+  ui_msg "\n...also add this line to the bottom of ${prefix}/apache2/httpd.conf\n"
+  ui_msg " <IfModule proxy_html>\n   Include conf/extra/proxy_html.conf\n </IfModule>\n"
+}


Property changes on: trunk/dports/www/mod_proxy_html/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090622/e0e0f7e7/attachment.html>


More information about the macports-changes mailing list