Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libloc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
libloc
Commits
1d237439
Commit
1d237439
authored
Jun 03, 2020
by
Michael Tremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename location-query(8) to location(8)
Signed-off-by:
Michael Tremer
<
michael.tremer@ipfire.org
>
parent
dc1df0f4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
23 deletions
+22
-23
.gitignore
.gitignore
+1
-2
Makefile.am
Makefile.am
+7
-7
man/location.txt
man/location.txt
+12
-12
src/python/location.in
src/python/location.in
+1
-1
src/systemd/location-update.service.in
src/systemd/location-update.service.in
+1
-1
No files found.
.gitignore
View file @
1d237439
...
...
@@ -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
...
...
Makefile.am
View file @
1d237439
...
...
@@ -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)
)
...
...
man/location
-query
.txt
→
man/location.txt
View file @
1d237439
= 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.
...
...
src/python/location
-query
.in
→
src/python/location.in
View file @
1d237439
...
...
@@ -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
)
...
...
src/systemd/location-update.service.in
View file @
1d237439
...
...
@@ -4,4 +4,4 @@ Requires=network.target
[Service]
Type=oneshot
ExecStart=@bindir@/location
-query
update
ExecStart=@bindir@/location update
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment