From: Jochen Sprickerhof Date: Mon, 26 Sep 2022 19:35:38 +0000 (+0200) Subject: Move maintainer script to the libloc1 package X-Git-Tag: debian/0.9.15-1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9827cc18b749f5642d40d40f7327ff7a720818b;p=location%2Fdebian%2Flibloc.git Move maintainer script to the libloc1 package 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. --- diff --git a/debian/control b/debian/control index 23e8cee..0552a84 100644 --- a/debian/control +++ b/debian/control @@ -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} diff --git a/debian/location.postinst b/debian/libloc1.postinst similarity index 100% rename from debian/location.postinst rename to debian/libloc1.postinst diff --git a/debian/location.postrm b/debian/libloc1.postrm similarity index 100% rename from debian/location.postrm rename to debian/libloc1.postrm