1 |
commit: b1777bbb3d5f288ce8185f06162f2747a6329403 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 18 05:08:01 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 18 05:10:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1777bbb |
7 |
|
8 |
app-misc/mosquitto: Add migration elog info |
9 |
|
10 |
And provide mosquitto-copy.sh. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/794070 |
13 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
14 |
|
15 |
app-misc/mosquitto/mosquitto-2.0.10.ebuild | 18 ++++++++++++++++++ |
16 |
1 file changed, 18 insertions(+) |
17 |
|
18 |
diff --git a/app-misc/mosquitto/mosquitto-2.0.10.ebuild b/app-misc/mosquitto/mosquitto-2.0.10.ebuild |
19 |
index 9129a115a3e..bfc38380fd1 100644 |
20 |
--- a/app-misc/mosquitto/mosquitto-2.0.10.ebuild |
21 |
+++ b/app-misc/mosquitto/mosquitto-2.0.10.ebuild |
22 |
@@ -96,6 +96,8 @@ src_install() { |
23 |
doinitd "${FILESDIR}"/mosquitto |
24 |
insinto /etc/mosquitto |
25 |
doins mosquitto.conf |
26 |
+ insinto /usr/share/mosquitto |
27 |
+ doins misc/letsencrypt/mosquitto-copy.sh |
28 |
systemd_dounit "${FILESDIR}/mosquitto.service" |
29 |
|
30 |
if use examples; then |
31 |
@@ -103,3 +105,19 @@ src_install() { |
32 |
dodoc -r examples |
33 |
fi |
34 |
} |
35 |
+ |
36 |
+pkg_postinst() { |
37 |
+ for v in ${REPLACING_VERSIONS}; do |
38 |
+ if [[ $(ver_cut 1 "$v") -lt 2 ]]; then |
39 |
+ elog |
40 |
+ elog "Please read the migration guide at:" |
41 |
+ elog "https://mosquitto.org/documentation/migrating-to-2-0/" |
42 |
+ elog |
43 |
+ elog "If you use Lets Encrypt TLS certificates, take note of" |
44 |
+ elog "the changes required to run the daemon as the unprivileged" |
45 |
+ elog "mosquitto user. The mosquitto-copy.sh script has been" |
46 |
+ elog "installed to /usr/share/mosquitto/ for your convenience." |
47 |
+ elog |
48 |
+ fi |
49 |
+ done |
50 |
+} |