aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2001-03-31 10:14:14 +0800
committerwill <will@FreeBSD.org>2001-03-31 10:14:14 +0800
commit7046157abd7833480f833550b4604ca67681c6f9 (patch)
tree9846dd4138914136e1c963a1901959f4485086aa
parentc315b2c22309de9d1f9da07b51a5b976413072cc (diff)
downloadfreebsd-ports-gnome-7046157abd7833480f833550b4604ca67681c6f9.tar.gz
freebsd-ports-gnome-7046157abd7833480f833550b4604ca67681c6f9.tar.zst
freebsd-ports-gnome-7046157abd7833480f833550b4604ca67681c6f9.zip
Add mod_proxy_add_forward 20010201, an apache module that adds a
client IP header to outgoing proxy requests. PR: 26074 Submitted by: Anders Nordby <anders@fix.no>
-rw-r--r--www/Makefile1
-rw-r--r--www/mod_proxy_add_forward/Makefile38
-rw-r--r--www/mod_proxy_add_forward/distinfo1
-rw-r--r--www/mod_proxy_add_forward/pkg-comment1
-rw-r--r--www/mod_proxy_add_forward/pkg-descr9
-rw-r--r--www/mod_proxy_add_forward/pkg-plist3
6 files changed, 53 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 28bf6a23d8cb..db64123a87a7 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -118,6 +118,7 @@
SUBDIR += mod_perl
SUBDIR += mod_php3
SUBDIR += mod_php4
+ SUBDIR += mod_proxy_add_forward
SUBDIR += mod_python
SUBDIR += mod_roaming
SUBDIR += mod_ruby
diff --git a/www/mod_proxy_add_forward/Makefile b/www/mod_proxy_add_forward/Makefile
new file mode 100644
index 000000000000..ff9caea1df18
--- /dev/null
+++ b/www/mod_proxy_add_forward/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: mod_proxy_add_forward
+# Date created: 25 March 2001
+# Whom: Anders Nordby <anders@fix.no>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mod_proxy_add_forward
+PORTVERSION= 20010201
+CATEGORIES= www
+MASTER_SITES= http://develooper.com/code/mpaf/ \
+ http://www.freenix.no/~anders/
+DISTNAME= ${PORTNAME}
+EXTRACT_SUFX= .c
+
+MAINTAINER= anders@fix.no
+
+BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
+RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
+
+NO_WRKSUBDIR= YES
+
+APXS?= ${LOCALBASE}/sbin/apxs
+
+do-extract:
+ @${MKDIR} ${WRKDIR}
+ @${CP} -p ${DISTDIR}/${DISTFILES} ${WRKDIR}
+
+do-build:
+ cd ${WRKSRC} && ${APXS} -c ${PORTNAME}.c
+
+do-install:
+ cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.so
+ @${ECHO} "================================================================================"
+ @${ECHO} "Enable mod_proxy_add_forward in Apache's config manually."
+ @${ECHO} "================================================================================"
+
+.include <bsd.port.mk>
diff --git a/www/mod_proxy_add_forward/distinfo b/www/mod_proxy_add_forward/distinfo
new file mode 100644
index 000000000000..eb2b7a254fc1
--- /dev/null
+++ b/www/mod_proxy_add_forward/distinfo
@@ -0,0 +1 @@
+MD5 (mod_proxy_add_forward.c) = 65e2cb065db66654ef58171346705934
diff --git a/www/mod_proxy_add_forward/pkg-comment b/www/mod_proxy_add_forward/pkg-comment
new file mode 100644
index 000000000000..66e998990a3a
--- /dev/null
+++ b/www/mod_proxy_add_forward/pkg-comment
@@ -0,0 +1 @@
+Apache module that adds a client IP header to outgoing proxy requests
diff --git a/www/mod_proxy_add_forward/pkg-descr b/www/mod_proxy_add_forward/pkg-descr
new file mode 100644
index 000000000000..95b1cb6b6325
--- /dev/null
+++ b/www/mod_proxy_add_forward/pkg-descr
@@ -0,0 +1,9 @@
+This is an Apache module that adds a 'X-Forwarded-For' header to outgoing proxy
+requests like Squid does.
+
+You can then get the client ip back on the "proxied host" by setting
+r->connection->remote_ip from this header.
+
+See the source for more info.
+
+WWW: http://develooper.com/code/mpaf/
diff --git a/www/mod_proxy_add_forward/pkg-plist b/www/mod_proxy_add_forward/pkg-plist
new file mode 100644
index 000000000000..4751f97c197b
--- /dev/null
+++ b/www/mod_proxy_add_forward/pkg-plist
@@ -0,0 +1,3 @@
+libexec/apache/mod_proxy_add_forward.so
+@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"
+@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"