source: trunk/dports/www/mod_proxy_html/Portfile @ 52756

Last change on this file since 52756 was 52756, checked in by blb@…, 11 years ago

New port - www/mod_proxy_html, apache output filter to rewrite HTML; ticket #18212

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 52756 2009-06-22 21:47:17Z blb@macports.org $
2
3PortSystem          1.0
4
5name                mod_proxy_html
6version             3.0.1
7categories          www
8maintainers         nomaintainer
9description         apache output filter to rewrite HTML
10long_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.
11homepage            http://apache.webthing.com/mod_proxy_html/
12platforms           darwin
13depends_lib         port:apache2 port:libxml2
14
15use_bzip2           yes
16
17master_sites        http://apache.webthing.com/mod_proxy_html/
18checksums           md5 badb7ee9fb3b892437589d7ceb21637c
19worksrcdir          ${name}
20
21use_configure       no
22build.cmd           ${prefix}/apache2/bin/apxs -c -I${prefix}/include/libxml2 ${name}.c
23build.target
24
25destroot.violate_mtree yes
26destroot {
27  xinstall -m 755 -d ${destroot}${prefix}/apache2/modules
28  xinstall -m 755 -d ${destroot}${prefix}/apache2/conf/extra
29  system "${prefix}/apache2/build/instdso.sh SH_LIBTOOL='${prefix}/share/apr-1/build/libtool' ${worksrcpath}/${name}.la ${destroot}${prefix}/apache2/modules"
30  xinstall -m 755 ${worksrcpath}/proxy_html.conf ${destroot}${prefix}/apache2/conf/extra
31}
32
33post-install {
34  ui_msg "\nNow edit ${prefix}/apache2/httpd.conf and add the following lines at the end of the LoadModules section:\n"
35  ui_msg " LoadFile ${prefix}/lib/libxml2.dylib"
36  ui_msg " LoadModule proxy_html_module  modules/mod_proxy_html.so"
37  ui_msg "\n...also add this line to the bottom of ${prefix}/apache2/httpd.conf\n"
38  ui_msg " <IfModule proxy_html>\n   Include conf/extra/proxy_html.conf\n </IfModule>\n"
39}
Note: See TracBrowser for help on using the repository browser.