From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0620A13835B for ; Fri, 18 Jun 2021 05:10:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AC39E07FE; Fri, 18 Jun 2021 05:10:41 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 11A81E07FE for ; Fri, 18 Jun 2021 05:10:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DDC0B335CE9 for ; Fri, 18 Jun 2021 05:10:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 550BD78E for ; Fri, 18 Jun 2021 05:10:38 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1623993026.b1777bbb3d5f288ce8185f06162f2747a6329403.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/mosquitto/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/mosquitto/mosquitto-2.0.10.ebuild X-VCS-Directories: app-misc/mosquitto/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: b1777bbb3d5f288ce8185f06162f2747a6329403 X-VCS-Branch: master Date: Fri, 18 Jun 2021 05:10:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 476517cf-0ef3-419a-abee-8ec587293aae X-Archives-Hash: 12ae2e034c864a5ed9874e20420b6500 commit: b1777bbb3d5f288ce8185f06162f2747a6329403 Author: Matt Turner gentoo org> AuthorDate: Fri Jun 18 05:08:01 2021 +0000 Commit: Matt Turner gentoo 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 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 +}