1 commit 889b932aa6172c96872be545af37d351f7c1c705
2 Author: Michael Tremer <michael.tremer@ipfire.org>
3 Date: Wed Jun 3 17:10:35 2020 +0000
5 location-downloader: Merge man page into location-query
7 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
9 diff --git a/Makefile.am b/Makefile.am
10 index c0b1300..91f0436 100644
13 @@ -37,6 +37,9 @@ LIBLOC_CURRENT=0
17 +pythondir = $(prefix)/lib/python3/dist-packages
18 +pyexecdir = $(prefix)/lib/python$(PYTHON_VERSION)/lib-dynload
20 DISTCHECK_CONFIGURE_FLAGS = \
21 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
23 @@ -371,7 +374,6 @@ src_test_signature_LDADD = \
24 # ------------------------------------------------------------------------------
27 - man/location-downloader.8 \
30 MANPAGES_TXT = $(patsubst %.8,%.txt,$(MANPAGES))
31 diff --git a/man/location-downloader.txt b/man/location-downloader.txt
32 deleted file mode 100644
33 index d733923..0000000
34 --- a/man/location-downloader.txt
37 -= location-downloader(8)
40 -location-downloader - Download a location database
44 -`location-downloader update`
47 -The `location-downloader` command updates the local version of the
54 - The path of the database which is being updated.
56 - If this option is omitted, the system's database will be opened.
62 - Enable debugging mode
67 - This command will try to update the local database.
69 - It will terminate with a return code of zero if the database has been
70 - successfully updated. 1 on error, 2 on invalid call and 3 if the
71 - database was already the latest version.
74 - Verifies the downloaded database.
77 - Shows a short help text on using this program.
80 - Shows the program's version and exists.
83 -The 'location-downloader' command will normally exit with code zero.
84 -If there has been a problem and the requested action could not be performed,
85 -the exit code is unequal to zero.
88 -The downloader checks a DNS record for the latest version of the database.
89 -It will then try to download a file with that version from a mirror server.
90 -If the downloaded file is outdated, the next mirror will be tried until we
91 -have found a file that is recent enough.
94 -Please report all bugs to the bugtracker at https://bugzilla.ipfire.org/.
98 diff --git a/man/location-query.txt b/man/location-query.txt
99 index b91e8e1..acb43cd 100644
100 --- a/man/location-query.txt
101 +++ b/man/location-query.txt
102 @@ -8,6 +8,8 @@ location-query - Query the location database
103 `location-query lookup ADDRESS [ADDRESS...]`
104 `location-query get-as ASN [ASN...]`
105 `location-query search-as STRING`
106 +`location-query update`
107 +`location-query verify`
108 `location-query list-networks-by-as ASN`
109 `location-query list-networks-by-cc COUNTRY_CODE`
110 `location-query list-networks-by-flags [--anonymous-proxy|--satellite-provider|--anycast]`
111 @@ -47,6 +49,16 @@ or countries.
113 The search will be performed case-insensitively.
116 + This command will try to update the local database.
118 + It will terminate with a return code of zero if the database has been
119 + successfully updated. 1 on error, 2 on invalid call and 3 if the
120 + database was already the latest version.
123 + Verifies the downloaded database.
125 'list-networks-by-as [--family=[ipv6|ipv4]] [--output-format FORMAT] ASN'::
126 Lists all networks which belong to this Autonomous System.
128 @@ -85,6 +97,12 @@ The 'location-query' command will normally exit with code zero.
129 If there has been a problem and the requested action could not be performed,
130 the exit code is unequal to zero.
133 +The downloader checks a DNS record for the latest version of the database.
134 +It will then try to download a file with that version from a mirror server.
135 +If the downloaded file is outdated, the next mirror will be tried until we
136 +have found a file that is recent enough.
139 Please report all bugs to the bugtracker at https://bugzilla.ipfire.org/.