]> git.ipfire.org Git - location/libloc.git/commitdiff
database: Ship a recent default database
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 Oct 2022 13:23:14 +0000 (13:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 Oct 2022 13:35:37 +0000 (13:35 +0000)
The database can easily be updated using "make update-database" which
will have to be executed before every release.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
data/database.db [new file with mode: 0644]
data/signing-key.pem [moved from src/signing-key.pem with 100% similarity]

index 81e10f92ea17363f9f0865ddc5a34177a8191147..60dab7d5eedba631649f52183a440bfc9e8d6346 100644 (file)
@@ -311,7 +311,12 @@ EXTRA_DIST += \
 # ------------------------------------------------------------------------------
 
 dist_database_DATA = \
-       src/signing-key.pem
+       data/database.db \
+       data/signing-key.pem
+
+.PHONY: update-database
+update-database:
+       curl https://location.ipfire.org/databases/1/location.db.xz | xz -d > data/database.db
 
 # ------------------------------------------------------------------------------
 
diff --git a/data/database.db b/data/database.db
new file mode 100644 (file)
index 0000000..b36cc8a
Binary files /dev/null and b/data/database.db differ
similarity index 100%
rename from src/signing-key.pem
rename to data/signing-key.pem