[packages/apache-mod_cloudflare] Rel 3
arekm
arekm at pld-linux.org
Mon Apr 6 01:48:59 CEST 2026
commit 401519018130dbce1a0252c13bf43c05dbe47917
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Apr 5 23:56:23 2026 +0200
Rel 3
apache-mod_cloudflare.spec | 4 +++-
const-fix.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/apache-mod_cloudflare.spec b/apache-mod_cloudflare.spec
index f5bc3c6..355ac9c 100644
--- a/apache-mod_cloudflare.spec
+++ b/apache-mod_cloudflare.spec
@@ -3,12 +3,13 @@
Summary: Apache module to show true visitor IPs in logs for domains using CloudFlare
Name: apache-mod_%{mod_name}
Version: 2016.10.0
-Release: 2
+Release: 3
License: Apache v2.0
Group: Networking/Daemons/HTTP
Source0: https://github.com/cloudflare/mod_cloudflare/archive/98ab38a/mod_%{mod_name}-%{version}.tar.gz
# Source0-md5: d618e95ba37e48139858ebadc908b142
Source1: apache.conf
+Patch0: const-fix.patch
URL: https://github.com/cloudflare/mod_cloudflare
BuildRequires: apache-devel >= 2.2
BuildRequires: rpmbuild(macros) >= 1.268
@@ -33,6 +34,7 @@ from CloudFlare IPs.
%prep
%setup -qc
mv mod_cloudflare-*/* .
+%patch -P0 -p1
%build
. ./VERSION
diff --git a/const-fix.patch b/const-fix.patch
new file mode 100644
index 0000000..b5a953b
--- /dev/null
+++ b/const-fix.patch
@@ -0,0 +1,11 @@
+--- a/mod_cloudflare.c.orig 2016-10-04 21:28:27.000000000 +0000
++++ a/mod_cloudflare.c 2026-04-05 00:00:00.000000000 +0000
+@@ -185,7 +185,7 @@
+ apr_status_t rv;
+ cloudflare_proxymatch_t *match;
+ int i;
+- char **proxies = CF_DEFAULT_TRUSTED_PROXY;
++ const char **proxies = CF_DEFAULT_TRUSTED_PROXY;
+
+ for (i=0; i<CF_DEFAULT_TRUSTED_PROXY_COUNT; i++) {
+ char *ip = apr_pstrdup(p, proxies[i]);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_cloudflare.git/commitdiff/401519018130dbce1a0252c13bf43c05dbe47917
More information about the pld-cvs-commit
mailing list