Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2014 14:01:15 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r369604 - in head/www/mod_auth_external2: . files
Message-ID:  <201409301401.s8UE1FGK009882@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409301401.s8UE1FGK009882>