commit:     c93883987ceeb19755ec7f9b75b7e5c07bf95bed
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 11 16:41:35 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Aug 11 16:43:59 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9388398

sys-auth/elogind: Re-add postinst info about dbus activation

This time as elog, not ewarn.

Bug: https://bugs.gentoo.org/633486

 sys-auth/elogind/elogind-238.1.ebuild | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/sys-auth/elogind/elogind-238.1.ebuild 
b/sys-auth/elogind/elogind-238.1.ebuild
index c9398ff2885..cc148ee6f8d 100644
--- a/sys-auth/elogind/elogind-238.1.ebuild
+++ b/sys-auth/elogind/elogind-238.1.ebuild
@@ -113,8 +113,17 @@ pkg_postinst() {
                ewarn "# rc-update del elogind default"
                ewarn "# rc-update add elogind boot"
        else
-               ewarn "elogind is currently not started from any runlevel."
-               ewarn "You may add it to the boot runlevel by:"
-               ewarn "# rc-update add elogind boot"
+               elog "elogind is currently not started from any runlevel."
+               elog "You may add it to the boot runlevel by:"
+               elog "# rc-update add elogind boot"
+               elog
+               elog "Alternatively, you can leave elogind out of any"
+               elog "runlevel. It will then be started automatically"
+               if use pam; then
+                       elog "when the first service calls it via dbus, or"
+                       elog "the first user logs into the system."
+               else
+                       elog "when the first service calls it via dbus."
+               fi
        fi
 }

Reply via email to