1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mod_proxy_html |
---|
6 | version 3.0.1 |
---|
7 | categories www |
---|
8 | maintainers webthing@webthing.com |
---|
9 | description apache output filter to rewrite HTML |
---|
10 | 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. |
---|
11 | homepage http://apache.webthing.com/mod_proxy_html/ |
---|
12 | platforms darwin |
---|
13 | depends_lib port:apache2 port:libxml2 |
---|
14 | |
---|
15 | use_bzip2 yes |
---|
16 | |
---|
17 | distfiles mod_proxy_html.tar.bz2:current |
---|
18 | distname ${name} |
---|
19 | master_sites http://apache.webthing.com/mod_proxy_html/:current |
---|
20 | checksums md5 badb7ee9fb3b892437589d7ceb21637c |
---|
21 | |
---|
22 | use_configure no |
---|
23 | build.cmd ${prefix}/apache2/bin/apxs -c -I${prefix}/include/libxml2 ${name}.c |
---|
24 | build.target |
---|
25 | |
---|
26 | destroot.violate_mtree yes |
---|
27 | destroot { |
---|
28 | system "mkdir -p $destroot${prefix}/apache2/modules" |
---|
29 | system "mkdir -p $destroot${prefix}/apache2/conf/extra" |
---|
30 | system "${prefix}/apache2/build/instdso.sh SH_LIBTOOL='${prefix}/share/apr-1/build/libtool' ${worksrcpath}/${name}.la $destroot${prefix}/apache2/modules" |
---|
31 | xinstall -m 755 ${worksrcpath}/proxy_html.conf ${destroot}${prefix}/apache2/conf/extra |
---|
32 | } |
---|
33 | |
---|
34 | post-install { |
---|
35 | ui_msg "\nNow edit ${prefix}/apache2/httpd.conf and add the following lines at the end of the LoadModules section:\n" |
---|
36 | ui_msg " LoadFile ${prefix}/lib/libxml2.dylib" |
---|
37 | ui_msg " LoadModule proxy_html_module modules/mod_proxy_html.so" |
---|
38 | ui_msg "\n...also add this line to the bottom of ${prefix}/apache2/httpd.conf\n" |
---|
39 | ui_msg " <IfModule proxy_html>\n Include conf/extra/proxy_html.conf\n </IfModule>\n" |
---|
40 | } |
---|