summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAisha Tammy <gentoo@aisha.cc>2021-01-31 14:17:32 +0000
committerPiotr Karbowski <slashbeast@gentoo.org>2021-01-31 22:35:40 +0100
commit1489fb9dc4df8c340aeacbb95b913965cb9c1816 (patch)
tree209f07288a062ac8fb92d563ee6576ccec8cf9cf /gui-libs
parentsci-mathematics/nestedsums: Drop USE=static-libs (diff)
downloadgentoo-1489fb9dc4df8c340aeacbb95b913965cb9c1816.tar.gz
gentoo-1489fb9dc4df8c340aeacbb95b913965cb9c1816.tar.bz2
gentoo-1489fb9dc4df8c340aeacbb95b913965cb9c1816.zip
gui-libs/display-manager-init: add postinst warning
Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Aisha Tammy <gentoo@aisha.cc> Closes: https://github.com/gentoo/gentoo/pull/19272 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'gui-libs')
-rw-r--r--gui-libs/display-manager-init/display-manager-init-1.0.ebuild16
1 files changed, 15 insertions, 1 deletions
diff --git a/gui-libs/display-manager-init/display-manager-init-1.0.ebuild b/gui-libs/display-manager-init/display-manager-init-1.0.ebuild
index 576a0a7c887c..586c5ddc0f52 100644
--- a/gui-libs/display-manager-init/display-manager-init-1.0.ebuild
+++ b/gui-libs/display-manager-init/display-manager-init-1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -34,4 +34,18 @@ pkg_preinst() {
if [[ ${REPLACING_VERSIONS} == "" && -f "${EROOT}"/etc/conf.d/xdm && ! -f "${EROOT}"/etc/conf.d/display-manager ]]; then
mv "${EROOT}"/etc/conf.d/{xdm,display-manager} || die
fi
+ local rlevel using_xdm
+ using_xdm=no
+ for rlevel in boot default sysinit; do
+ if [[ -e "${EROOT}"/etc/runlevels/${rlevel}/xdm ]]; then
+ using_xdm=yes
+ fi
+ done
+ if [[ "${using_xdm}" = "yes" ]]; then
+ ewarn "The 'xdm' service has been removed as it is"
+ ewarn "being replaced by the 'display-manager' service."
+ ewarn "Please migrate to using 'display-manager' and"
+ ewarn "remember to use dispatch-conf to update the"
+ ewarn "config protected service files."
+ fi
}