Gentoo Archives: gentoo-commits

From: "Amadeusz Piotr Żołnowski" <aidecoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/ejabberd/
Date: Wed, 13 Jul 2016 20:36:26
Message-Id: 1468442084.c76f9b9f9eca17f8bc4ea6edd6bcd9a626589ae1.aidecoe@gentoo
1 commit: c76f9b9f9eca17f8bc4ea6edd6bcd9a626589ae1
2 Author: Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 13 20:34:06 2016 +0000
4 Commit: Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 13 20:34:44 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c76f9b9f
7
8 net-im/ejabberd: Add warning about pubsub data migration
9
10 Gentoo-Bug: 588244
11
12 Package-Manager: portage-2.3.0
13
14 net-im/ejabberd/ejabberd-16.04.ebuild | 20 ++++++++++++++++++--
15 1 file changed, 18 insertions(+), 2 deletions(-)
16
17 diff --git a/net-im/ejabberd/ejabberd-16.04.ebuild b/net-im/ejabberd/ejabberd-16.04.ebuild
18 index 07014ea..fa48fa8 100644
19 --- a/net-im/ejabberd/ejabberd-16.04.ebuild
20 +++ b/net-im/ejabberd/ejabberd-16.04.ebuild
21 @@ -235,10 +235,26 @@ src_install() {
22
23 pkg_postinst() {
24 if [[ ! ${REPLACING_VERSIONS} ]]; then
25 + echo
26 elog "For configuration instructions, please see"
27 - elog " /usr/share/doc/${PF}/html/guide.html"
28 - elog "or the online version at"
29 elog " http://www.process-one.net/en/ejabberd/docs/"
30 + echo
31 + if [[ " ${REPLACING_VERSIONS} " =~ \ 2\. ]]; then
32 + ewarn "If you have used pubsub in ejabberd-2.* you may encounter issues after"
33 + ewarn "migration to ${PV}. pubsub data may not be migrated automatically and"
34 + ewarn "you may need to run migration script manually, see:"
35 + ewarn
36 + ewarn " https://github.com/processone/ejabberd/issues/479#issuecomment-124497456"
37 + ewarn
38 + ewarn "In case you don't care about all stored moods, activities, geoinfo and you"
39 + ewarn "know you don't store in pubsub anything important, you can just remove"
40 + ewarn "pubsub tables:"
41 + ewarn
42 + ewarn " rm ${EROOT%/}${JABBER_SPOOL}/pubsub_*"
43 + ewarn
44 + ewarn "See also: https://bugs.gentoo.org/show_bug.cgi?id=588244"
45 + echo
46 + fi
47 elif [[ -f ${EROOT}etc/jabber/ejabberd.cfg ]]; then
48 elog "Ejabberd now defaults to using a YAML format for its config file."
49 elog "The old ejabberd.cfg file can be converted using the following instructions:"