commit: b1777bbb3d5f288ce8185f06162f2747a6329403 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> AuthorDate: Fri Jun 18 05:08:01 2021 +0000 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> CommitDate: Fri Jun 18 05:10:26 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1777bbb
app-misc/mosquitto: Add migration elog info And provide mosquitto-copy.sh. Closes: https://bugs.gentoo.org/794070 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> app-misc/mosquitto/mosquitto-2.0.10.ebuild | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app-misc/mosquitto/mosquitto-2.0.10.ebuild b/app-misc/mosquitto/mosquitto-2.0.10.ebuild index 9129a115a3e..bfc38380fd1 100644 --- a/app-misc/mosquitto/mosquitto-2.0.10.ebuild +++ b/app-misc/mosquitto/mosquitto-2.0.10.ebuild @@ -96,6 +96,8 @@ src_install() { doinitd "${FILESDIR}"/mosquitto insinto /etc/mosquitto doins mosquitto.conf + insinto /usr/share/mosquitto + doins misc/letsencrypt/mosquitto-copy.sh systemd_dounit "${FILESDIR}/mosquitto.service" if use examples; then @@ -103,3 +105,19 @@ src_install() { dodoc -r examples fi } + +pkg_postinst() { + for v in ${REPLACING_VERSIONS}; do + if [[ $(ver_cut 1 "$v") -lt 2 ]]; then + elog + elog "Please read the migration guide at:" + elog "https://mosquitto.org/documentation/migrating-to-2-0/" + elog + elog "If you use Lets Encrypt TLS certificates, take note of" + elog "the changes required to run the daemon as the unprivileged" + elog "mosquitto user. The mosquitto-copy.sh script has been" + elog "installed to /usr/share/mosquitto/ for your convenience." + elog + fi + done +}