svn commit: r369604 - in head/www/mod_auth_external2: . files

Mathieu Arnold mat at FreeBSD.org
Tue Sep 30 14:01:16 UTC 2014


Author: mat
Date: Tue Sep 30 14:01:15 2014
New Revision: 369604
URL: http://svnweb.freebsd.org/changeset/ports/369604
QAT: https://qat.redports.org/buildarchive/r369604/

Log:
  Fix with apache 2.4.
  
  Sponsored by:	Absolight

Added:
  head/www/mod_auth_external2/files/
  head/www/mod_auth_external2/files/patch-mod_auth_external.c   (contents, props changed)
Modified:
  head/www/mod_auth_external2/Makefile

Modified: head/www/mod_auth_external2/Makefile
==============================================================================
--- head/www/mod_auth_external2/Makefile	Tue Sep 30 13:56:01 2014	(r369603)
+++ head/www/mod_auth_external2/Makefile	Tue Sep 30 14:01:15 2014	(r369604)
@@ -14,7 +14,7 @@ COMMENT=	Allows users authentication bas
 
 LICENSE=	APACHE20
 
-USE_APACHE=	22
+USE_APACHE=	22+
 AP_FAST_BUILD=	yes
 AP_GENPLIST=	yes
 SHORTMODNAME=	auth_external

Added: head/www/mod_auth_external2/files/patch-mod_auth_external.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/mod_auth_external2/files/patch-mod_auth_external.c	Tue Sep 30 14:01:15 2014	(r369604)
@@ -0,0 +1,16 @@
+--- mod_auth_external.c.orig	2006-02-15 22:44:53 UTC
++++ mod_auth_external.c
+@@ -500,8 +500,13 @@
+ 	if (remote_host != NULL)
+ 	    child_env[i++]= apr_pstrcat(r->pool, ENV_HOST"=", remote_host, NULL);
+ 
++#if MODULE_MAGIC_NUMBER_MAJOR >= 20111130
++	if (c->client_ip)
++	    child_env[i++]= apr_pstrcat(r->pool, ENV_IP"=", c->client_ip, NULL);
++#else
+ 	if (c->remote_ip)
+ 	    child_env[i++]= apr_pstrcat(r->pool, ENV_IP"=", c->remote_ip, NULL);
++#endif
+ 
+ 	if (r->uri)
+ 	    child_env[i++]= apr_pstrcat(r->pool, ENV_URI"=", r->uri, NULL);


More information about the svn-ports-head mailing list