[packages/apache-mod_rpaf] restore compatibility with v0.6 config directives
glen
glen at pld-linux.org
Fri Sep 11 15:25:00 CEST 2015
commit 70aa3935491431248956bace6165f015321dce0c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Sep 11 16:22:27 2015 +0300
restore compatibility with v0.6 config directives
0.6-compat.patch | 35 +++++++++++++++++++++++++++++++++++
apache-mod_rpaf.spec | 2 ++
2 files changed, 37 insertions(+)
---
diff --git a/apache-mod_rpaf.spec b/apache-mod_rpaf.spec
index 82317d1..b223087 100644
--- a/apache-mod_rpaf.spec
+++ b/apache-mod_rpaf.spec
@@ -10,6 +10,7 @@ Group: Networking/Daemons/HTTP
Source0: https://github.com/gnif/mod_rpaf/archive/v%{version}/mod_%{mod_name}-%{version}.tar.gz
# Source0-md5: 8fbd9ee19f8ea4e25ab8414685276105
Source1: %{name}.conf
+Patch0: 0.6-compat.patch
URL: https://github.com/gnif/mod_rpaf/
BuildRequires: apache-devel >= 2.2
BuildRequires: rpmbuild(macros) >= 1.268
@@ -31,6 +32,7 @@ mod_proxy_add_forward jest dla frontendowych.
%prep
%setup -q -n mod_%{mod_name}-%{version}
+%patch0 -p1
%build
%{apxs} -S CC="--tag=CC %{__cc}" -c -n mod_%{mod_name}.o mod_%{mod_name}.c
diff --git a/0.6-compat.patch b/0.6-compat.patch
new file mode 100644
index 0000000..83fe571
--- /dev/null
+++ b/0.6-compat.patch
@@ -0,0 +1,35 @@
+--- mod_rpaf-0.8.4/mod_rpaf.c~ 2015-09-11 16:21:34.000000000 +0300
++++ mod_rpaf-0.8.4/mod_rpaf.c 2015-09-11 16:21:40.142295508 +0300
+@@ -420,6 +420,32 @@
+ RSRC_CONF,
+ "Which header to look for when trying to find the real ip of the client in a proxy setup"
+ ),
++
++ /*
++ * DEPRECATED
++ * Backward (0.6) compatible config directives for smooth upgrade.
++ */
++ AP_INIT_FLAG(
++ "RPAFEnable",
++ rpaf_enable,
++ NULL,
++ RSRC_CONF,
++ "Enable mod_rpaf"
++ ),
++ AP_INIT_ITERATE(
++ "RPAFproxy_ips",
++ rpaf_set_proxy_ip,
++ NULL,
++ RSRC_CONF,
++ "IP(s) of Proxy server setting X-Forwarded-For header"
++ ),
++ AP_INIT_FLAG(
++ "RPAFsethostname",
++ rpaf_sethostname,
++ NULL,
++ RSRC_CONF,
++ "Let mod_rpaf set the hostname from the X-Host header and update vhosts"
++ ),
+ { NULL }
+ };
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/apache-mod_rpaf.git/commitdiff/fda5dc7dab51847c6b23dd0620649dba3300e6dc
More information about the pld-cvs-commit
mailing list