mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 04:35:12 +02:00
geoip: add -s option to xt_geoip_build
This commit is contained in:
@@ -24,6 +24,7 @@ my $target_dir = ".";
|
|||||||
&GetOptions(
|
&GetOptions(
|
||||||
"D=s" => \$target_dir,
|
"D=s" => \$target_dir,
|
||||||
"i=s" => \$input_file,
|
"i=s" => \$input_file,
|
||||||
|
"s" => sub { $target_dir = "/usr/share/xt_geoip"; },
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!-d $target_dir) {
|
if (!-d $target_dir) {
|
||||||
|
@@ -27,11 +27,15 @@ Specifies the target directory into which the files are to be put. Defaults to "
|
|||||||
\fB\-i\fP \fIinput_file\fP
|
\fB\-i\fP \fIinput_file\fP
|
||||||
Specifies the source location of the DBIP CSV file. Defaults to
|
Specifies the source location of the DBIP CSV file. Defaults to
|
||||||
"dbip-country-lite.csv". Use "-" to read from stdin.
|
"dbip-country-lite.csv". Use "-" to read from stdin.
|
||||||
|
.TP
|
||||||
|
\fB\-s\fP
|
||||||
|
"System mode". Equivalent to \fB\-D /usr/share/xt_geoip\fP.
|
||||||
.SH Application
|
.SH Application
|
||||||
.PP
|
.PP
|
||||||
Shell commands to build the databases and put them to where they are expected:
|
Shell commands to build the databases and put them to where they are expected
|
||||||
|
(usually run as root):
|
||||||
.PP
|
.PP
|
||||||
xt_geoip_build \-D /usr/share/xt_geoip
|
xt_geoip_build \-s
|
||||||
.SH See also
|
.SH See also
|
||||||
.PP
|
.PP
|
||||||
xt_geoip_dl(1)
|
xt_geoip_dl(1)
|
||||||
|
Reference in New Issue
Block a user