summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
Diffstat (limited to 'network')
-rw-r--r--network/mod_geoip2/mod_geoip-httpd24.patch35
-rw-r--r--network/mod_geoip2/mod_geoip2.SlackBuild7
-rw-r--r--network/mod_geoip2/mod_geoip2.info6
3 files changed, 43 insertions, 5 deletions
diff --git a/network/mod_geoip2/mod_geoip-httpd24.patch b/network/mod_geoip2/mod_geoip-httpd24.patch
new file mode 100644
index 0000000000..563e35b113
--- /dev/null
+++ b/network/mod_geoip2/mod_geoip-httpd24.patch
@@ -0,0 +1,35 @@
+--- mod_geoip.c.geoip
++++ mod_geoip.c
+@@ -66,6 +66,7 @@
+ #include "http_config.h"
+ #include "http_protocol.h"
+ #include "http_log.h"
++#include "util_script.h"
+ #include "ap_config.h"
+ #include "apr_strings.h"
+ #include <GeoIP.h>
+@@ -320,7 +321,11 @@
+ return DECLINED;
+
+ if (!cfg->scanProxyHeaders) {
++#if AP_MODULE_MAGIC_AT_LEAST(20111130,0)
++ ipaddr = r->useragent_ip;
++#else
+ ipaddr = r->connection->remote_ip;
++#endif
+ }
+ else {
+ ap_add_common_vars(r);
+@@ -338,7 +343,11 @@
+ }
+ if (!ipaddr_ptr) {
+ ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r->server, "[mod_geoip]: Error while getting ipaddr from proxy headers. Using REMOTE_ADDR.");
+- ipaddr = r->connection->remote_ip;
++#if AP_MODULE_MAGIC_AT_LEAST(20111130,0)
++ ipaddr = r->useragent_ip;
++#else
++ ipaddr = r->connection->remote_ip;
++#endif
+ }
+ else {
+ ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, 0, r->server, "[mod_geoip]: IPADDR_PTR: %s", ipaddr_ptr);
diff --git a/network/mod_geoip2/mod_geoip2.SlackBuild b/network/mod_geoip2/mod_geoip2.SlackBuild
index 0e78bcd0ed..038b1d4cab 100644
--- a/network/mod_geoip2/mod_geoip2.SlackBuild
+++ b/network/mod_geoip2/mod_geoip2.SlackBuild
@@ -5,8 +5,8 @@
# Template written by Menno E. Duursma
PRGNAM=mod_geoip2
-VERSION=1.2.5
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-1.2.7}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -49,6 +49,9 @@ cd ${PRGNAM}_${VERSION}
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
+# http://pkgs.fedoraproject.org/cgit/mod_geoip.git/tree/mod_geoip-httpd24.patch
+patch -p0 < $CWD/mod_geoip-httpd24.patch
+
# Create target dir
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/httpd/modules
diff --git a/network/mod_geoip2/mod_geoip2.info b/network/mod_geoip2/mod_geoip2.info
index f1a9c8d721..c12db5a5ba 100644
--- a/network/mod_geoip2/mod_geoip2.info
+++ b/network/mod_geoip2/mod_geoip2.info
@@ -1,8 +1,8 @@
PRGNAM="mod_geoip2"
-VERSION="1.2.5"
+VERSION="1.2.7"
HOMEPAGE="http://www.maxmind.com/app/mod_geoip"
-DOWNLOAD="http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_1.2.5.tar.gz"
-MD5SUM="5d35c9a9cbf47c2cb636bed26cd5fa19"
+DOWNLOAD="http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_1.2.7.tar.gz"
+MD5SUM="76514ad0e8adb8cd8231c5e3646d03fd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="GeoIP"