]> git.ipfire.org Git - location/debian/libloc.git/commitdiff
Move maintainer script to the libloc1 package
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Mon, 26 Sep 2022 19:35:38 +0000 (21:35 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Mon, 26 Sep 2022 19:40:19 +0000 (21:40 +0200)
This makes sure that libloc1 can find the database from the
libloc-database package without needing to install the location package.
Also, as the location package transitively depends on libloc1, this
makes sure that /var/lib/location/ is cleaned up in case the cronjob in
the location package downloaded a database dump.

Also make libloc1 recommend libloc-database | location to make sure some
database is available by default. But don't make it a hard dependency as
one can provide a different path to libloc1 and also it would be a
cyclic dependency for the location package.

debian/control
debian/libloc1.postinst [moved from debian/location.postinst with 100% similarity]
debian/libloc1.postrm [moved from debian/location.postrm with 100% similarity]

index 23e8ceeb1698a9eac45ce9efedd528b5b9d69bf3..0552a84334fc3a31d9574dd8d5a3718295c08fcc 100644 (file)
@@ -35,6 +35,8 @@ Section: libs
 Depends:
  ${shlibs:Depends},
  ${misc:Depends},
+Recommends:
+ libloc-database | location,
 Multi-Arch: same
 Description: ${source:Synopsis}
  ${source:Extended-Description}
@@ -80,8 +82,6 @@ Replaces:
 Breaks:
  location-python (<< 0.9.14-1~),
  location-importer (<< 0.9.14-1~),
-Recommends:
- libloc-database,
 Multi-Arch: foreign
 Description: ${source:Synopsis} (Python 3 bindings)
  ${source:Extended-Description}
similarity index 100%
rename from debian/location.postrm
rename to debian/libloc1.postrm