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

Last change on this file since 87969 was 75022, checked in by jmr@…, 9 years ago

mod_proxy_html: download correct version (#22049)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 75022 2011-01-12 06:33:06Z jmr@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_html30/
18checksums           md5 badb7ee9fb3b892437589d7ceb21637c \
19                    sha1 ed91fb0e37e90a1d892c2fa78513ce60791dbb86
20worksrcdir          ${name}
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  xinstall -m 755 -d ${destroot}${prefix}/apache2/modules
29  xinstall -m 755 -d ${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}
Note: See TracBrowser for help on using the repository browser.