geoip: rename xt_geoip_fetch to xt_geoip_query

"fetch" sounds a bit like "download", but that is not what this
utility does. Calling it "query" seems more appropriate.
This commit is contained in:
Jan Engelhardt
2020-11-22 17:44:51 +01:00
parent 6504f251c6
commit a1b3d81ccb
3 changed files with 9 additions and 9 deletions

View File

@@ -1,9 +1,9 @@
# -*- Makefile -*- # -*- Makefile -*-
bin_SCRIPTS = xt_geoip_fetch bin_SCRIPTS = xt_geoip_query
pkglibexec_SCRIPTS = xt_geoip_build xt_geoip_build_maxmind xt_geoip_dl xt_geoip_dl_maxmind pkglibexec_SCRIPTS = xt_geoip_build xt_geoip_build_maxmind xt_geoip_dl xt_geoip_dl_maxmind
man1_MANS = xt_geoip_build.1 xt_geoip_dl.1 \ man1_MANS = xt_geoip_build.1 xt_geoip_dl.1 \
xt_geoip_build_maxmind.1 xt_geoip_dl_maxmind.1 \ xt_geoip_build_maxmind.1 xt_geoip_dl_maxmind.1 \
xt_geoip_fetch.1 xt_geoip_query.1

View File

@@ -1,6 +1,6 @@
#!/usr/bin/perl #!/usr/bin/perl
# #
# Utility to query GeoIP database # Utility to query GeoIP database (.iv4/.iv6 files)
# Copyright Philip Prindeville, 2018 # Copyright Philip Prindeville, 2018
# #
use Getopt::Long; use Getopt::Long;

View File

@@ -1,16 +1,16 @@
.TH xt_geoip_fetch 1 "2020-04-30" "xtables-addons" "xtables-addons" .TH xt_geoip_query 1 "2020-04-30" "xtables-addons" "xtables-addons"
.SH Name .SH Name
.PP .PP
xt_geoip_fetch \(em dump a country database to stdout xt_geoip_query \(em dump a country database to stdout
.SH Syntax .SH Syntax
.PP .PP
\fBxt_geoip_fetch\fP [\fB\-D\fP \fBxt_geoip_query\fP [\fB\-D\fP
\fIdatabase_dir\fP] [\fB-4\fP] [\fB-6\fP] \fIcc\fP [ \fIcc\fP ... ] \fIdatabase_dir\fP] [\fB-4\fP] [\fB-6\fP] \fIcc\fP [ \fIcc\fP ... ]
.SH Description .SH Description
.PP .PP
xt_geoip_fetch unpacks a country's IPv4 or IPv6 databases and dumps xt_geoip_query reads a country's IPv4 or IPv6 databases and dumps
them to standard output as a sorted, non-overlapping list of ranges (which them to standard output as a sorted, non-overlapping list of ranges (which
is how they're represented in the database) suitable for browsing or is how they are represented in the database), suitable for browsing or
further processing. further processing.
.PP Options .PP Options
.TP .TP
@@ -29,7 +29,7 @@ The ISO-3166 country code names of the desired countries' databases.
.PP .PP
Shell command to dump the list of Swiss IPv6 address ranges: Shell command to dump the list of Swiss IPv6 address ranges:
.PP .PP
xt_geoip_fetch \-D /usr/share/xt_geoip \-6 ch xt_geoip_query \-D /usr/share/xt_geoip \-6 ch
.SH See also .SH See also
.PP .PP
xt_geoip_build(1) xt_geoip_build(1)