From: Jan Engelhardt Date: Tue, 12 May 2020 20:49:37 +0000 (+0200) Subject: geoip: add -s option to xt_geoip_build X-Git-Tag: v3.10~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9ba3507fcfec26e0e1fc4e3955219b50e86a424;p=thirdparty%2Fxtables-addons.git geoip: add -s option to xt_geoip_build --- diff --git a/geoip/xt_geoip_build b/geoip/xt_geoip_build index 750bf98..7bafa5f 100755 --- a/geoip/xt_geoip_build +++ b/geoip/xt_geoip_build @@ -24,6 +24,7 @@ my $target_dir = "."; &GetOptions( "D=s" => \$target_dir, "i=s" => \$input_file, + "s" => sub { $target_dir = "/usr/share/xt_geoip"; }, ); if (!-d $target_dir) { diff --git a/geoip/xt_geoip_build.1 b/geoip/xt_geoip_build.1 index ac3e6d3..598177f 100644 --- a/geoip/xt_geoip_build.1 +++ b/geoip/xt_geoip_build.1 @@ -27,11 +27,15 @@ Specifies the target directory into which the files are to be put. Defaults to " \fB\-i\fP \fIinput_file\fP Specifies the source location of the DBIP CSV file. Defaults to "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 .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 -xt_geoip_build \-D /usr/share/xt_geoip +xt_geoip_build \-s .SH See also .PP xt_geoip_dl(1)