Summary(sl.UTF-8): Osnovna avtentikacija za spletni strežnik Apache, z uporabo poljubnih lupinskih ukazov
Summary(sv.UTF-8): Grundläggande autentisering för webbservern Apache med valfria skalkommandon
Name: apache-mod_%{mod_name}
-Version: 3.2.5
-Release: 2
+Version: 3.3.1
+Release: 1
License: BSD
Group: Networking/Daemons/HTTP
Source0: http://mod-auth-external.googlecode.com/files/mod_%{mod_name}-%{version}.tar.gz
-# Source0-md5: ff1e12ac8b5fc72296334865e74805e0
+# Source0-md5: 4cb3f16ff85b62fbc2cc73bac406bb67
+Patch0: mod_authnz_external-apache24.patch
URL: http://code.google.com/p/mod-auth-external/
BuildRequires: %{apxs}
BuildRequires: apache-devel >= 2.2
%prep
%setup -q -n mod_%{mod_name}-%{version}
+%patch0 -p1
%build
%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.la
%files
%defattr(644,root,root,755)
-%doc TODO AUTHENTICATORS CHANGES README INSTALL test mysql
+%doc TODO AUTHENTICATORS CHANGES README INSTALL test
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
%attr(755,root,root) %{_pkglibdir}/*.so
--- /dev/null
+--- mod_authnz_external-3.3.1/mod_authnz_external.c.orig 2011-10-07 12:43:34.000000000 -0600
++++ mod_authnz_external-3.3.1/mod_authnz_external.c 2012-05-06 23:24:41.774553228 -0600
+@@ -443,8 +443,17 @@ static int exec_external(const char *ext
+ if (remote_host != NULL)
+ child_env[i++]= apr_pstrcat(p, ENV_HOST"=", remote_host,NULL);
+
++#if ((AP_SERVER_MAJORVERSION_NUMBER == 2) \
++ && (AP_SERVER_MINORVERSION_NUMBER == 2))
+ if (c->remote_ip)
+ child_env[i++]= apr_pstrcat(p, ENV_IP"=", c->remote_ip, NULL);
++#elif ((AP_SERVER_MAJORVERSION_NUMBER == 2) \
++ && (AP_SERVER_MINORVERSION_NUMBER == 4))
++ if (c->client_ip)
++ child_env[i++]= apr_pstrcat(p, ENV_IP"=", c->client_ip, NULL);
++#else
++#error buildable only under APR 2.2 or 2.4
++#endif
+
+ if (r->uri)
+ child_env[i++]= apr_pstrcat(p, ENV_URI"=", r->uri, NULL);