From owner-freebsd-ports Sun Mar 25 7:40: 7 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 911D437B71B for ; Sun, 25 Mar 2001 07:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2PFe1Y14594; Sun, 25 Mar 2001 07:40:01 -0800 (PST) (envelope-from gnats) Received: from totem.fix.no (totem.fix.no [213.142.66.130]) by hub.freebsd.org (Postfix) with ESMTP id B9C7C37B71A for ; Sun, 25 Mar 2001 07:30:09 -0800 (PST) (envelope-from anders@totem.fix.no) Received: by totem.fix.no (Postfix, from userid 1000) id C0A043CCD; Sun, 25 Mar 2001 17:30:07 +0200 (CEST) Message-Id: <20010325153007.C0A043CCD@totem.fix.no> Date: Sun, 25 Mar 2001 17:30:07 +0200 (CEST) From: Anders Nordby Reply-To: Anders Nordby To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/26074: New port: www/mod_proxy_add_forward Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26074 >Category: ports >Synopsis: New port: www/mod_proxy_add_forward >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Mar 25 07:40:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Anders Nordby >Release: FreeBSD 4.2-STABLE i386 >Organization: Fluxpod Information eXchange >Environment: FreeBSD eggsilo.localnet 4.2-STABLE FreeBSD 4.2-STABLE #0: Sat Feb 3 23:01:01 CET 2001 root@eggsilo.localnet:/space/tmp/obj/usr/src/sys/EGGSILO i386 >Description: New port of mod_proxy_add_forward, an Apache module that adds a client IP header to outgoing proxy requests. >How-To-Repeat: >Fix: # 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_add_forward # mod_proxy_add_forward/Makefile # mod_proxy_add_forward/distinfo # mod_proxy_add_forward/pkg-comment # mod_proxy_add_forward/pkg-descr # mod_proxy_add_forward/pkg-plist # echo c - mod_proxy_add_forward mkdir -p mod_proxy_add_forward > /dev/null 2>&1 echo x - mod_proxy_add_forward/Makefile sed 's/^X//' >mod_proxy_add_forward/Makefile << 'END-of-mod_proxy_add_forward/Makefile' X# New ports collection makefile for: mod_proxy_add_forward X# Date created: 25 March 2001 X# Whom: Anders Nordby X# X# $FreeBSD$ X# X XPORTNAME= mod_proxy_add_forward XPORTVERSION= 20010201 XCATEGORIES= www XMASTER_SITES= http://develooper.com/code/mpaf/ \ X http://www.freenix.no/~anders/ XDISTFILES= ${PORTNAME}.c X XMAINTAINER= anders@fix.no X XBUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 XRUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13 X XNO_WRKSUBDIR= YES X XAPXS?= ${LOCALBASE}/sbin/apxs X Xdo-extract: X @${MKDIR} ${WRKDIR} X @${CP} -p ${DISTDIR}/${DISTFILES} ${WRKDIR} X Xdo-build: X cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c X Xdo-install: X cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.so X @${ECHO} "================================================================================" X @${ECHO} "Enable mod_proxy_add_forward in Apache's config manually." X @${ECHO} "================================================================================" X X.include END-of-mod_proxy_add_forward/Makefile echo x - mod_proxy_add_forward/distinfo sed 's/^X//' >mod_proxy_add_forward/distinfo << 'END-of-mod_proxy_add_forward/distinfo' XMD5 (mod_proxy_add_forward.c) = 65e2cb065db66654ef58171346705934 END-of-mod_proxy_add_forward/distinfo echo x - mod_proxy_add_forward/pkg-comment sed 's/^X//' >mod_proxy_add_forward/pkg-comment << 'END-of-mod_proxy_add_forward/pkg-comment' XAn Apache module that adds a client IP header to outgoing proxy requests END-of-mod_proxy_add_forward/pkg-comment echo x - mod_proxy_add_forward/pkg-descr sed 's/^X//' >mod_proxy_add_forward/pkg-descr << 'END-of-mod_proxy_add_forward/pkg-descr' XThis is an Apache module that adds a 'X-Forwarded-For' header to outgoing proxy Xrequests like Squid does. X XYou can then get the client ip back on the "proxied host" by setting Xr->connection->remote_ip from this header. X XSee the source for more info. X XWWW: http://develooper.com/code/mpaf/ END-of-mod_proxy_add_forward/pkg-descr echo x - mod_proxy_add_forward/pkg-plist sed 's/^X//' >mod_proxy_add_forward/pkg-plist << 'END-of-mod_proxy_add_forward/pkg-plist' Xlibexec/apache/mod_proxy_add_forward.so X@exec ${PKG_PREFIX}/sbin/apxs -e -A -n proxy_add_forward mod_proxy_add_forward.so; echo " enable mod_proxy_add_forward in Apache's config manually" X@unexec ${PKG_PREFIX}/sbin/apxs -e -A -n proxy_add_forward mod_proxy_add_forward.so || echo " remove mod_proxy_add_forward from Apache's config manually" END-of-mod_proxy_add_forward/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message