summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2006-03-06 19:31:03 +0000
committertv <tv@pkgsrc.org>2006-03-06 19:31:03 +0000
commit877cf1e97142369190abfe0b7d3b21e89a2de68e (patch)
tree278cd6a4fae116396cc4cf689e4597f471aed352 /www
parent469503b316123e77b3fa9c5bf5614f27835db9bc (diff)
downloadpkgsrc-877cf1e97142369190abfe0b7d3b21e89a2de68e.tar.gz
ap-rpaf-0.5, an Apache 1/2 module that twiddles the connecting client
IP and hostname information for backend servers that receive requests from reverse proxies. From DESCR: mod_rpaf changes the remote address of the client visible to other Apache modules when two conditions are satisfied. First condition is that the remote client is actually a proxy that is defined in httpd.conf. Secondly if there is an incoming X-Forwarded-For header and the proxy is in it's list of known proxies it takes the last IP from the incoming X-Forwarded-For header and changes the remote address of the client in the request structure. It also takes the incoming X-Host header and updates the virtualhost settings accordingly. For Apache2 mod_proxy it takes the X-Forwared-Host header and updates the virtualhosts.
Diffstat (limited to 'www')
-rw-r--r--www/Makefile3
-rw-r--r--www/ap-rpaf/DESCR9
-rw-r--r--www/ap-rpaf/Makefile31
-rw-r--r--www/ap-rpaf/PLIST3
-rw-r--r--www/ap-rpaf/distinfo5
5 files changed, 50 insertions, 1 deletions
diff --git a/www/Makefile b/www/Makefile
index 895ebc892f2..c3126a1f77d 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.440 2006/02/17 01:51:09 minskim Exp $
+# $NetBSD: Makefile,v 1.441 2006/03/06 19:31:03 tv Exp $
#
COMMENT= Packages related to the World Wide Web
@@ -32,6 +32,7 @@ SUBDIR+= ap-perl
SUBDIR+= ap-php
SUBDIR+= ap-python
SUBDIR+= ap-rivet
+SUBDIR+= ap-rpaf
SUBDIR+= ap-ruby
SUBDIR+= ap-ssl
SUBDIR+= ap-throttle
diff --git a/www/ap-rpaf/DESCR b/www/ap-rpaf/DESCR
new file mode 100644
index 00000000000..8519f55b359
--- /dev/null
+++ b/www/ap-rpaf/DESCR
@@ -0,0 +1,9 @@
+mod_rpaf changes the remote address of the client visible to other Apache
+modules when two conditions are satisfied. First condition is that the
+remote client is actually a proxy that is defined in httpd.conf.
+Secondly if there is an incoming X-Forwarded-For header and the proxy is
+in it's list of known proxies it takes the last IP from the incoming
+X-Forwarded-For header and changes the remote address of the client in
+the request structure. It also takes the incoming X-Host header and
+updates the virtualhost settings accordingly. For Apache2 mod_proxy it
+takes the X-Forwared-Host header and updates the virtualhosts.
diff --git a/www/ap-rpaf/Makefile b/www/ap-rpaf/Makefile
new file mode 100644
index 00000000000..d398fdee7b0
--- /dev/null
+++ b/www/ap-rpaf/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2006/03/06 19:31:03 tv Exp $
+#
+
+DISTNAME= mod_rpaf-0.5
+PKGNAME= ${DISTNAME:S/mod_/ap-/}
+CATEGORIES= www
+MASTER_SITES= http://stderr.net/apache/rpaf/download/
+
+MAINTAINER= tv@duh.org
+HOMEPAGE= http://stderr.net/apache/rpaf/
+COMMENT= Remaps reverse-proxied connections to "real" requesting IPs
+
+APACHE_MODULE= # defined
+INSTALLATION_DIRS= share/doc
+
+do-build:
+ cd ${WRKSRC} && ${APXS} -c mod_rpaf.c
+
+do-install:
+ cd ${WRKSRC} && ${APXS} -n rpaf_module -i mod_rpaf.la
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mod_rpaf.txt
+
+.include "../../mk/apache.mk"
+
+.if ${PKG_APACHE} != "apache13"
+do-configure:
+ ${RM} -f ${WRKSRC}/mod_rpaf.c
+ ${CP} -f ${WRKSRC}/mod_rpaf-2.0.c ${WRKSRC}/mod_rpaf.c
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/ap-rpaf/PLIST b/www/ap-rpaf/PLIST
new file mode 100644
index 00000000000..c2159dd5007
--- /dev/null
+++ b/www/ap-rpaf/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2006/03/06 19:31:03 tv Exp $
+lib/httpd/mod_rpaf.so
+share/doc/mod_rpaf.txt
diff --git a/www/ap-rpaf/distinfo b/www/ap-rpaf/distinfo
new file mode 100644
index 00000000000..d4adc20f626
--- /dev/null
+++ b/www/ap-rpaf/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2006/03/06 19:31:03 tv Exp $
+
+SHA1 (mod_rpaf-0.5.tar.gz) = 0a0763c7c146e83288d2a621056da20d7b85b6cc
+RMD160 (mod_rpaf-0.5.tar.gz) = 237cf8a772b772fc186f5162de35d4a975abec88
+Size (mod_rpaf-0.5.tar.gz) = 4482 bytes