From dsl@mayhem.webize.com.au  Thu Jul 29 03:52:34 2004
Return-Path: <dsl@mayhem.webize.com.au>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3C86C16A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 29 Jul 2004 03:52:34 +0000 (GMT)
Received: from mayhem.webize.com.au (mayhem.webize.com.au [203.48.28.226])
	by mx1.FreeBSD.org (Postfix) with SMTP id 3663743D49
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 29 Jul 2004 03:52:33 +0000 (GMT)
	(envelope-from dsl@mayhem.webize.com.au)
Received: (qmail 76681 invoked by uid 1003); 29 Jul 2004 03:52:31 -0000
Message-Id: <20040729035231.76429.qmail@mayhem.webize.com.au>
Date: 29 Jul 2004 03:52:31 -0000
From: David Lay <dsl@webize.com.au>
Reply-To: David Lay <dsl@webize.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: www/mod_proxy_html: rewrite HTML links in proxied content
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         69737
>Category:       ports
>Synopsis:       New port: www/mod_proxy_html: rewrite HTML links in proxied content
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 29 04:00:43 GMT 2004
>Closed-Date:    Fri Jul 30 01:08:32 GMT 2004
>Last-Modified:  Fri Jul 30 01:08:32 GMT 2004
>Originator:     David Lay
>Release:        FreeBSD 4.10-RELEASE-p2 i386
>Organization:
Webize
>Environment:
System: FreeBSD mayhem.webize.com.au 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #12: Fri Jul 9 16:57:41 EST 2004

>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.

WWW: http://apache.webthing.com/mod_proxy_html/

- David Lay <dsl@webize.com.au>
>How-To-Repeat:

>Fix:
--- mod_proxy_html.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mod_proxy_html
#	mod_proxy_html/Makefile
#	mod_proxy_html/distinfo
#	mod_proxy_html/pkg-descr
#	mod_proxy_html/pkg-plist
#
echo c - mod_proxy_html
mkdir -p mod_proxy_html > /dev/null 2>&1
echo x - mod_proxy_html/Makefile
sed 's/^X//' >mod_proxy_html/Makefile << 'END-of-mod_proxy_html/Makefile'
X# New ports collection makefile for:	mod_proxy_html
X# Date created:		2004-07-29
X# Whom:			David Lay <dsl@webize.com.au>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_proxy_html
XPORTVERSION=	2.1
XCATEGORIES=	www
XMASTER_SITES=	http://apache.webthing.com/${PORTNAME}/
XDISTNAME=	${PORTNAME}
XEXTRACT_SUFX=	.c
X
XMAINTAINER=	dsl@webize.com.au
XCOMMENT=	Apache module for rewriting HTML links in proxied content
X
XLIB_DEPENDS=	xml2:${PORTSDIR}/textproc/libxml2
X
XUSE_APACHE=	yes
XWITH_APACHE2=	yes
XNO_WRKSUBDIR=	yes
X
XXML2_INC=	${LOCALBASE}/include/libxml2
XXML2_LIB=	${LOCALBASE}/lib
X
Xdo-extract:
X	@${MKDIR} ${WRKDIR}
X	@${CP} -p ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PORTNAME}.c
X
Xdo-build:
X	@(cd ${WRKSRC} && ${APXS} -c -I ${XML2_INC} -L ${XML2_LIB} -lxml2 ${PORTNAME}.c)
X
Xdo-install:
X	@(cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.la)
X	@${ECHO} "================================================================================"
X	@${ECHO} "Enable mod_proxy_html in Apache's config manually."
X	@${ECHO} "================================================================================"
X
X.include <bsd.port.mk>
END-of-mod_proxy_html/Makefile
echo x - mod_proxy_html/distinfo
sed 's/^X//' >mod_proxy_html/distinfo << 'END-of-mod_proxy_html/distinfo'
XMD5 (mod_proxy_html.c) = b1828fb7fb9305ef14c583c99e1fed02
XSIZE (mod_proxy_html.c) = 31392
END-of-mod_proxy_html/distinfo
echo x - mod_proxy_html/pkg-descr
sed 's/^X//' >mod_proxy_html/pkg-descr << 'END-of-mod_proxy_html/pkg-descr'
Xmod_proxy_html is an output filter to rewrite HTML links in a proxy
Xsituation, to ensure that links work for users outside the proxy.  It
Xserves the same purpose as Apache's ProxyPassReverse directive does for
XHTTP headers, and is an essential component of a reverse proxy.
X
XWWW: http://apache.webthing.com/mod_proxy_html/
X
X- David Lay <dsl@webize.com.au>
END-of-mod_proxy_html/pkg-descr
echo x - mod_proxy_html/pkg-plist
sed 's/^X//' >mod_proxy_html/pkg-plist << 'END-of-mod_proxy_html/pkg-plist'
Xlibexec/apache2/mod_proxy_html.so
X@exec %D/sbin/apxs -e -A -n proxy_html %D/%F
X@unexec %D/sbin/apxs -e -A -n proxy_html %D/%F
END-of-mod_proxy_html/pkg-plist
exit
--- mod_proxy_html.shar ends here ---
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Fri Jul 30 01:08:29 GMT 2004 
State-Changed-Why:  
Commited, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69737 
>Unformatted:
