Ticket #18212: Portfile

File Portfile, 1.8 KB (added by mikehale@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4
5name                mod_proxy_html
6version             3.0.1
7categories          www
8maintainers         webthing@webthing.com
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
17distfiles           mod_proxy_html.tar.bz2:current
18distname            ${name}
19master_sites        http://apache.webthing.com/mod_proxy_html/:current
20checksums           md5 badb7ee9fb3b892437589d7ceb21637c
21
22use_configure       no
23build.cmd           ${prefix}/apache2/bin/apxs -c -I${prefix}/include/libxml2 ${name}.c
24build.target
25
26destroot.violate_mtree yes
27destroot {
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
34post-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}