76478e4284
Copy from Base:System/xtables-addons based on submit request 28070 from user jengelh OBS-URL: https://build.opensuse.org/request/show/28070 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xtables-addons?expand=0&rev=1
47 lines
1.7 KiB
Diff
47 lines
1.7 KiB
Diff
Author: Jan Engelhardt <jengelh@medozas.de>
|
|
Date: Thu Dec 31 16:37:42 2009 +0100
|
|
|
|
geoip: use /usr/share/xt_geoip instead of /var/geoip
|
|
|
|
For grand FHS compliance.
|
|
Plus OpenSUSE instructions.
|
|
---
|
|
extensions/libxt_geoip.c | 2 +-
|
|
extensions/libxt_geoip.man | 11 +++++++----
|
|
2 files changed, 8 insertions(+), 5 deletions(-)
|
|
|
|
Index: xtables-addons-1.21/extensions/libxt_geoip.c
|
|
===================================================================
|
|
--- xtables-addons-1.21.orig/extensions/libxt_geoip.c
|
|
+++ xtables-addons-1.21/extensions/libxt_geoip.c
|
|
@@ -24,7 +24,7 @@
|
|
#include <unistd.h>
|
|
#include <xtables.h>
|
|
#include "xt_geoip.h"
|
|
-#define GEOIP_DB_DIR "/var/geoip"
|
|
+#define GEOIP_DB_DIR "/usr/share/xt_geoip"
|
|
|
|
static void geoip_help(void)
|
|
{
|
|
Index: xtables-addons-1.21/extensions/libxt_geoip.man
|
|
===================================================================
|
|
--- xtables-addons-1.21.orig/extensions/libxt_geoip.man
|
|
+++ xtables-addons-1.21/extensions/libxt_geoip.man
|
|
@@ -8,9 +8,12 @@ Match packet going to (one of) the speci
|
|
.TP
|
|
NOTE:
|
|
The country is inputed by its ISO3166 code.
|
|
-.P
|
|
-The extra files you will need is the binary database files. They are generated
|
|
+.PP
|
|
+The extra files you will need is the binary database files. These are provided
|
|
+in openSUSE through the "xtables-geoip" package.
|
|
+.PP
|
|
+Alternatively, they can be generated
|
|
from a country-subnet database with the geoip_csv_iv0.pl tool, available at
|
|
-http://jengelh.hopto.org/files/geoip/ . The files MUST be moved to /var/geoip/
|
|
+http://jengelh.hopto.org/files/geoip/ . The files MUST be moved to /usr/share/geoip/
|
|
as the shared library is statically looking for this pathname (e.g.
|
|
-/var/geoip/LE/de.iv0).
|
|
+/usr/share/geoip/LE/de.iv0).
|