]> git.pld-linux.org Git - packages/apache-mod_authnz_external.git/commitdiff
- updated to 3.3.1 master auto/th/apache-mod_authnz_external-3.3.1-1
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 5 May 2013 17:49:04 +0000 (19:49 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 5 May 2013 17:49:04 +0000 (19:49 +0200)
- build with apache 2.4

apache-mod_authnz_external.spec
mod_authnz_external-apache24.patch [new file with mode: 0644]

index 1843d8098f59a2fe019b38ed8ad004095913f452..edf86b30fb3e5f1fdace146d1b46f6f396da7456 100644 (file)
@@ -12,12 +12,13 @@ Summary(pt.UTF-8):  Um módulo de autenticação de LDAP para o servidor Web Apac
 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
@@ -73,6 +74,7 @@ från ett godtyckligt angivet kommando.
 
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
+%patch0 -p1
 
 %build
 %{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.la
@@ -98,6 +100,6 @@ fi
 
 %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
diff --git a/mod_authnz_external-apache24.patch b/mod_authnz_external-apache24.patch
new file mode 100644 (file)
index 0000000..821a057
--- /dev/null
@@ -0,0 +1,20 @@
+--- 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);
This page took 0.071684 seconds and 4 git commands to generate.