commit:     c76f9b9f9eca17f8bc4ea6edd6bcd9a626589ae1
Author:     Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 13 20:34:06 2016 +0000
Commit:     Amadeusz Piotr Żołnowski <aidecoe <AT> gentoo <DOT> org>
CommitDate: Wed Jul 13 20:34:44 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c76f9b9f

net-im/ejabberd: Add warning about pubsub data migration

Gentoo-Bug: 588244

Package-Manager: portage-2.3.0

 net-im/ejabberd/ejabberd-16.04.ebuild | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/net-im/ejabberd/ejabberd-16.04.ebuild 
b/net-im/ejabberd/ejabberd-16.04.ebuild
index 07014ea..fa48fa8 100644
--- a/net-im/ejabberd/ejabberd-16.04.ebuild
+++ b/net-im/ejabberd/ejabberd-16.04.ebuild
@@ -235,10 +235,26 @@ src_install() {
 
 pkg_postinst() {
        if [[ ! ${REPLACING_VERSIONS} ]]; then
+               echo
                elog "For configuration instructions, please see"
-               elog "  /usr/share/doc/${PF}/html/guide.html"
-               elog "or the online version at"
                elog "  http://www.process-one.net/en/ejabberd/docs/";
+               echo
+               if [[ " ${REPLACING_VERSIONS} " =~ \ 2\. ]]; then
+                       ewarn "If you have used pubsub in ejabberd-2.* you may 
encounter issues after"
+                       ewarn "migration to ${PV}. pubsub data may not be 
migrated automatically and"
+                       ewarn "you may need to run migration script manually, 
see:"
+                       ewarn
+                       ewarn "  
https://github.com/processone/ejabberd/issues/479#issuecomment-124497456";
+                       ewarn
+                       ewarn "In case you don't care about all stored moods, 
activities, geoinfo and you"
+                       ewarn "know you don't store in pubsub anything 
important, you can just remove"
+                       ewarn "pubsub tables:"
+                       ewarn
+                       ewarn "  rm ${EROOT%/}${JABBER_SPOOL}/pubsub_*"
+                       ewarn
+                       ewarn "See also: 
https://bugs.gentoo.org/show_bug.cgi?id=588244";
+                       echo
+               fi
        elif [[ -f ${EROOT}etc/jabber/ejabberd.cfg ]]; then
                elog "Ejabberd now defaults to using a YAML format for its 
config file."
                elog "The old ejabberd.cfg file can be converted using the 
following instructions:"

Reply via email to