commit:     d627c578b9e27b5349f39fcd238f108734c115f5
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 11 16:07:32 2019 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Aug 11 16:07:32 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d627c578

sys-apps/systemd: add postinst message about "systemctl preset-all"

Closes: https://bugs.gentoo.org/691854
Package-Manager: Portage-2.3.71, Repoman-2.3.16_p24
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-apps/systemd/systemd-242-r6.ebuild     | 5 +++++
 sys-apps/systemd/systemd-243_rc1-r1.ebuild | 5 +++++
 sys-apps/systemd/systemd-9999.ebuild       | 5 +++++
 3 files changed, 15 insertions(+)

diff --git a/sys-apps/systemd/systemd-242-r6.ebuild 
b/sys-apps/systemd/systemd-242-r6.ebuild
index eb97107359b..96430b07ddd 100644
--- a/sys-apps/systemd/systemd-242-r6.ebuild
+++ b/sys-apps/systemd/systemd-242-r6.ebuild
@@ -481,6 +481,11 @@ pkg_postinst() {
                eerror "systemd again."
                eerror
        fi
+
+       if [[ -z ${REPLACING_VERSIONS} ]]; then
+               elog "To enable a useful set of services, run the following:"
+               elog "  systemctl preset-all"
+       fi
 }
 
 pkg_prerm() {

diff --git a/sys-apps/systemd/systemd-243_rc1-r1.ebuild 
b/sys-apps/systemd/systemd-243_rc1-r1.ebuild
index a3e140a028c..34b6587a0db 100644
--- a/sys-apps/systemd/systemd-243_rc1-r1.ebuild
+++ b/sys-apps/systemd/systemd-243_rc1-r1.ebuild
@@ -462,6 +462,11 @@ pkg_postinst() {
                eerror "systemd again."
                eerror
        fi
+
+       if [[ -z ${REPLACING_VERSIONS} ]]; then
+               elog "To enable a useful set of services, run the following:"
+               elog "  systemctl preset-all"
+       fi
 }
 
 pkg_prerm() {

diff --git a/sys-apps/systemd/systemd-9999.ebuild 
b/sys-apps/systemd/systemd-9999.ebuild
index c259ae220b7..c4350573c99 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -461,6 +461,11 @@ pkg_postinst() {
                eerror "systemd again."
                eerror
        fi
+
+       if [[ -z ${REPLACING_VERSIONS} ]]; then
+               elog "To enable a useful set of services, run the following:"
+               elog "  systemctl preset-all"
+       fi
 }
 
 pkg_prerm() {

Reply via email to