source: trunk/dports/www/mod_proxy_html/Portfile

Last change on this file was 110864, checked in by jmr@…, 4 years ago

mod_proxy_html: license

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