diff options
Diffstat (limited to 'www/mod_proxy_html')
-rw-r--r-- | www/mod_proxy_html/Makefile | 39 | ||||
-rw-r--r-- | www/mod_proxy_html/distinfo | 2 | ||||
-rw-r--r-- | www/mod_proxy_html/pkg-descr | 8 | ||||
-rw-r--r-- | www/mod_proxy_html/pkg-plist | 3 |
4 files changed, 52 insertions, 0 deletions
diff --git a/www/mod_proxy_html/Makefile b/www/mod_proxy_html/Makefile new file mode 100644 index 0000000..5cfc96d --- /dev/null +++ b/www/mod_proxy_html/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: mod_proxy_html +# Date created: 2004-07-29 +# Whom: David Lay <dsl@webize.com.au> +# +# $FreeBSD$ +# + +PORTNAME= mod_proxy_html +PORTVERSION= 2.1 +CATEGORIES= www +MASTER_SITES= http://apache.webthing.com/${PORTNAME}/ +DISTNAME= ${PORTNAME} +EXTRACT_SUFX= .c + +MAINTAINER= dsl@webize.com.au +COMMENT= Apache module for rewriting HTML links in proxied content + +USE_GNOME= libxml2 +USE_APACHE= yes +WITH_APACHE2= yes +NO_WRKSUBDIR= yes + +XML2_INC= ${LOCALBASE}/include/libxml2 +XML2_LIB= ${LOCALBASE}/lib + +do-extract: + @${MKDIR} ${WRKDIR} + @${CP} -p ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PORTNAME}.c + +do-build: + @(cd ${WRKSRC} && ${APXS} -c -I ${XML2_INC} -L ${XML2_LIB} -lxml2 ${PORTNAME}.c) + +do-install: + @(cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.la) + @${ECHO} "================================================================================" + @${ECHO} "Enable mod_proxy_html in Apache's config manually." + @${ECHO} "================================================================================" + +.include <bsd.port.mk> diff --git a/www/mod_proxy_html/distinfo b/www/mod_proxy_html/distinfo new file mode 100644 index 0000000..355f879 --- /dev/null +++ b/www/mod_proxy_html/distinfo @@ -0,0 +1,2 @@ +MD5 (mod_proxy_html.c) = b1828fb7fb9305ef14c583c99e1fed02 +SIZE (mod_proxy_html.c) = 31392 diff --git a/www/mod_proxy_html/pkg-descr b/www/mod_proxy_html/pkg-descr new file mode 100644 index 0000000..e01cb25 --- /dev/null +++ b/www/mod_proxy_html/pkg-descr @@ -0,0 +1,8 @@ +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. + +WWW: http://apache.webthing.com/mod_proxy_html/ + +- David Lay <dsl@webize.com.au> diff --git a/www/mod_proxy_html/pkg-plist b/www/mod_proxy_html/pkg-plist new file mode 100644 index 0000000..16c68ff --- /dev/null +++ b/www/mod_proxy_html/pkg-plist @@ -0,0 +1,3 @@ +libexec/apache2/mod_proxy_html.so +@exec %D/sbin/apxs -e -A -n proxy_html %D/%F +@unexec %D/sbin/apxs -e -A -n proxy_html %D/%F |