net-im/ejabberd: Add warning about pubsub data migration
authorAmadeusz Żołnowski <aidecoe@gentoo.org>
Wed, 13 Jul 2016 20:34:06 +0000 (21:34 +0100)
committerAmadeusz Żołnowski <aidecoe@gentoo.org>
Wed, 13 Jul 2016 20:34:44 +0000 (21:34 +0100)
Gentoo-Bug: 588244

Package-Manager: portage-2.3.0

net-im/ejabberd/ejabberd-16.04.ebuild

index 07014ea4bb841c35b8d5cf99b0b2482c68335947..fa48fa83341b404388ff2ffed795b4035fdec284 100644 (file)
@@ -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:"