geoip: use /usr/share/xt_geoip instead of /var/geoip

This commit is contained in:
Jan Engelhardt
2009-12-31 16:37:42 +01:00
parent 7952a7d253
commit 1945c545dd
3 changed files with 7 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
HEAD HEAD
==== ====
- geoip: for FHS compliance use /usr/share/xt_geoip instead of /var/geoip
Xtables-addons 1.21 (December 09 2009) Xtables-addons 1.21 (December 09 2009)

View File

@@ -24,7 +24,7 @@
#include <unistd.h> #include <unistd.h>
#include <xtables.h> #include <xtables.h>
#include "xt_geoip.h" #include "xt_geoip.h"
#define GEOIP_DB_DIR "/var/geoip" #define GEOIP_DB_DIR "/usr/share/xt_geoip"
static void geoip_help(void) static void geoip_help(void)
{ {

View File

@@ -7,10 +7,11 @@ Match packet coming from (one of) the specified country(ies)
Match packet going to (one of) the specified country(ies) Match packet going to (one of) the specified country(ies)
.TP .TP
NOTE: NOTE:
The country is inputed by its ISO3166 code. The country is inputed by its ISO-3166 code.
.P .PP
The extra files you will need is the binary database files. They are generated The extra files you will need is the binary database files. They are generated
from a country-subnet database with the geoip_csv_iv0.pl tool, available at 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/xt_geoip/
as the shared library is statically looking for this pathname (e.g. as the shared library is statically looking for this pathname (e.g.
/var/geoip/LE/de.iv0). /usr/share/xt_geoip/LE/de.iv0).