]> git.ipfire.org Git - location/libloc.git/commitdiff
Rename location-query(8) to location(8)
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Jun 2020 17:21:31 +0000 (17:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Jun 2020 17:21:31 +0000 (17:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
.gitignore
Makefile.am
man/location.txt [moved from man/location-query.txt with 84% similarity]
src/python/location.in [moved from src/python/location-query.in with 99% similarity]
src/systemd/location-update.service.in

index cadcc686bbe501f8128792db4f7060450cde1a93..6ab8e9165eec48b97f36af3f65784e6b5fb13d0a 100644 (file)
@@ -14,10 +14,9 @@ Makefile.in
 /configure
 /libtool
 /stamp-h1
-/src/python/location-downloader
+/src/python/location
 /src/python/location-exporter
 /src/python/location-importer
-/src/python/location-query
 /src/systemd/location-update.service
 /src/systemd/location-update.timer
 /test.db
index bf204d864843f451a256e15c324871f71bce532e..59870b1bee1127f0f6fca1022770ea1026e40353 100644 (file)
@@ -238,19 +238,19 @@ uninstall-perl:
                $(DESTDIR)/$(prefix)/man/man3/Location.3pm
 
 bin_SCRIPTS = \
+       src/python/location \
        src/python/location-exporter \
-       src/python/location-importer \
-       src/python/location-query
+       src/python/location-importer
 
 EXTRA_DIST += \
+       src/python/location.in \
        src/python/location-exporter.in \
-       src/python/location-importer.in \
-       src/python/location-query.in
+       src/python/location-importer.in
 
 CLEANFILES += \
+       src/python/location \
        src/python/location-exporter \
-       src/python/location-importer \
-       src/python/location-query
+       src/python/location-importer
 
 # ------------------------------------------------------------------------------
 
@@ -374,7 +374,7 @@ src_test_signature_LDADD = \
 # ------------------------------------------------------------------------------
 
 MANPAGES = \
-       man/location-query.8
+       man/location.8
 
 MANPAGES_TXT  = $(patsubst %.8,%.txt,$(MANPAGES))
 MANPAGES_HTML = $(patsubst %.txt,%.html,$(MANPAGES_TXT))
similarity index 84%
rename from man/location-query.txt
rename to man/location.txt
index acb43cdb6fdb362f405ec65aca05bcd9ef1e448b..672c2b231914517b7009449572fd5b017e4c02a9 100644 (file)
@@ -1,21 +1,21 @@
-= location-query(8)
+= location(8)
 
 == NAME
-location-query - Query the location database
+location - Query the location database
 
 == SYNOPSIS
 [verse]
-`location-query lookup ADDRESS [ADDRESS...]`
-`location-query get-as ASN [ASN...]`
-`location-query search-as STRING`
-`location-query update`
-`location-query verify`
-`location-query list-networks-by-as ASN`
-`location-query list-networks-by-cc COUNTRY_CODE`
-`location-query list-networks-by-flags [--anonymous-proxy|--satellite-provider|--anycast]`
+`location lookup ADDRESS [ADDRESS...]`
+`location get-as ASN [ASN...]`
+`location search-as STRING`
+`location update`
+`location verify`
+`location list-networks-by-as ASN`
+`location list-networks-by-cc COUNTRY_CODE`
+`location list-networks-by-flags [--anonymous-proxy|--satellite-provider|--anycast]`
 
 == DESCRIPTION
-The `location-query` retrieves information from the location database.
+`location` retrieves information from the location database.
 This data can be used to determine someone's location on the Internet
 and for building firewall rulesets to block access from certain ASes
 or countries.
@@ -93,7 +93,7 @@ or countries.
        Shows the program's version and exists.
 
 == EXIT CODES
-The 'location-query' command will normally exit with code zero.
+The 'location' command will normally exit with code zero.
 If there has been a problem and the requested action could not be performed,
 the exit code is unequal to zero.
 
similarity index 99%
rename from src/python/location-query.in
rename to src/python/location.in
index 02917861ec432f1f6a31e434162441dc06348624..10618e2f2b74c44e78815e9665a4166fbf5bb52b 100644 (file)
@@ -248,7 +248,7 @@ class CLI(object):
                try:
                        db = location.Database(args.database)
                except FileNotFoundError as e:
-                       sys.stderr.write("location-query: Could not open database %s: %s\n" \
+                       sys.stderr.write("location: Could not open database %s: %s\n" \
                                % (args.database, e))
                        sys.exit(1)
 
index c4584af025936e2cf0ad84edb0e4fd14b76e4d8e..daae2c54796753fb186874c30a7689e75bfb0253 100644 (file)
@@ -4,4 +4,4 @@ Requires=network.target
 
 [Service]
 Type=oneshot
-ExecStart=@bindir@/location-query update
+ExecStart=@bindir@/location update