1 |
commit: 460a8b933204f6b8788075f8faca640c15794c5e |
2 |
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
3 |
AuthorDate: Fri Feb 26 19:11:04 2021 +0000 |
4 |
Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 26 19:23:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=460a8b93 |
7 |
|
8 |
gui-libs/display-manager-init: drop old versions |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/19673 |
13 |
Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org> |
14 |
|
15 |
.../display-manager-init-1.0-r1.ebuild | 54 --------------------- |
16 |
.../display-manager-init-1.0-r2.ebuild | 55 ---------------------- |
17 |
gui-libs/display-manager-init/files/startDM | 29 ------------ |
18 |
3 files changed, 138 deletions(-) |
19 |
|
20 |
diff --git a/gui-libs/display-manager-init/display-manager-init-1.0-r1.ebuild b/gui-libs/display-manager-init/display-manager-init-1.0-r1.ebuild |
21 |
deleted file mode 100644 |
22 |
index d5a588002df..00000000000 |
23 |
--- a/gui-libs/display-manager-init/display-manager-init-1.0-r1.ebuild |
24 |
+++ /dev/null |
25 |
@@ -1,54 +0,0 @@ |
26 |
-# Copyright 1999-2021 Gentoo Authors |
27 |
-# Distributed under the terms of the GNU General Public License v2 |
28 |
- |
29 |
-EAPI=7 |
30 |
- |
31 |
-DESCRIPTION="RC init files for starting display and login managers" |
32 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:X11" |
33 |
- |
34 |
-LICENSE="GPL-2" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux" |
37 |
- |
38 |
-S="${WORKDIR}" |
39 |
- |
40 |
-RDEPEND=" |
41 |
- sys-apps/gentoo-functions |
42 |
- !<=sys-apps/sysvinit-2.98 |
43 |
- !<=x11-apps/xinit-1.4.1 |
44 |
- !<=x11-base/xorg-server-1.20.10 |
45 |
-" |
46 |
- |
47 |
-src_install() { |
48 |
- newinitd "${FILESDIR}"/display-manager-setup.initd display-manager-setup |
49 |
- newinitd "${FILESDIR}"/display-manager.initd-r1 display-manager |
50 |
- newinitd "${FILESDIR}"/xdm.initd xdm |
51 |
- newconfd "${FILESDIR}"/display-manager.confd display-manager |
52 |
- exeinto /usr/bin |
53 |
- doexe "${FILESDIR}"/startDM |
54 |
- # backwards compatibility |
55 |
- dosym "${ESYSROOT}"/usr/bin/startDM /etc/X11/startDM.sh |
56 |
-} |
57 |
- |
58 |
-pkg_preinst() { |
59 |
- if [[ ${REPLACING_VERSIONS} == "" && -f "${EROOT}"/etc/conf.d/xdm && ! -f "${EROOT}"/etc/conf.d/display-manager ]]; then |
60 |
- cp -a "${EROOT}"/etc/conf.d/{xdm,display-manager} || die |
61 |
- fi |
62 |
- local rlevel using_xdm |
63 |
- using_xdm=no |
64 |
- for rlevel in boot default sysinit; do |
65 |
- if [[ -e "${EROOT}"/etc/runlevels/${rlevel}/xdm ]]; then |
66 |
- using_xdm=yes |
67 |
- fi |
68 |
- done |
69 |
- if [[ "${using_xdm}" = "yes" ]]; then |
70 |
- ewarn "The 'xdm' service has been replaced by new 'display-manager'" |
71 |
- ewarn "service, please switch now:" |
72 |
- ewarn |
73 |
- ewarn " # rc-update del xdm default" |
74 |
- ewarn " # rc-update add display-manager default" |
75 |
- ewarn |
76 |
- ewarn "Remember to run etc-update or dispatch-conf to update the" |
77 |
- ewarn "config protected service files." |
78 |
- fi |
79 |
-} |
80 |
|
81 |
diff --git a/gui-libs/display-manager-init/display-manager-init-1.0-r2.ebuild b/gui-libs/display-manager-init/display-manager-init-1.0-r2.ebuild |
82 |
deleted file mode 100644 |
83 |
index 3c54378da25..00000000000 |
84 |
--- a/gui-libs/display-manager-init/display-manager-init-1.0-r2.ebuild |
85 |
+++ /dev/null |
86 |
@@ -1,55 +0,0 @@ |
87 |
-# Copyright 1999-2021 Gentoo Authors |
88 |
-# Distributed under the terms of the GNU General Public License v2 |
89 |
- |
90 |
-EAPI=7 |
91 |
- |
92 |
-DESCRIPTION="RC init files for starting display and login managers" |
93 |
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:X11" |
94 |
- |
95 |
-LICENSE="GPL-2" |
96 |
-SLOT="0" |
97 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 sparc ~x86 ~amd64-linux ~x86-linux" |
98 |
- |
99 |
-S="${WORKDIR}" |
100 |
- |
101 |
-RDEPEND=" |
102 |
- sys-apps/gentoo-functions |
103 |
- !<=sys-apps/sysvinit-2.98 |
104 |
- !<=x11-apps/xinit-1.4.1 |
105 |
- !<=x11-base/xorg-server-1.20.10 |
106 |
- !=x11-base/xorg-server-1.20.10-r2 |
107 |
-" |
108 |
- |
109 |
-src_install() { |
110 |
- newinitd "${FILESDIR}"/display-manager-setup.initd display-manager-setup |
111 |
- newinitd "${FILESDIR}"/display-manager.initd-r1 display-manager |
112 |
- newinitd "${FILESDIR}"/xdm.initd xdm |
113 |
- newconfd "${FILESDIR}"/display-manager.confd display-manager |
114 |
- exeinto /usr/bin |
115 |
- doexe "${FILESDIR}"/startDM |
116 |
- # backwards compatibility |
117 |
- dosym "${ESYSROOT}"/usr/bin/startDM /etc/X11/startDM.sh |
118 |
-} |
119 |
- |
120 |
-pkg_preinst() { |
121 |
- if [[ ${REPLACING_VERSIONS} == "" && -f "${EROOT}"/etc/conf.d/xdm && ! -f "${EROOT}"/etc/conf.d/display-manager ]]; then |
122 |
- cp -a "${EROOT}"/etc/conf.d/{xdm,display-manager} || die |
123 |
- fi |
124 |
- local rlevel using_xdm |
125 |
- using_xdm=no |
126 |
- for rlevel in boot default sysinit; do |
127 |
- if [[ -e "${EROOT}"/etc/runlevels/${rlevel}/xdm ]]; then |
128 |
- using_xdm=yes |
129 |
- fi |
130 |
- done |
131 |
- if [[ "${using_xdm}" = "yes" ]]; then |
132 |
- ewarn "The 'xdm' service has been replaced by new 'display-manager'" |
133 |
- ewarn "service, please switch now:" |
134 |
- ewarn |
135 |
- ewarn " # rc-update del xdm default" |
136 |
- ewarn " # rc-update add display-manager default" |
137 |
- ewarn |
138 |
- ewarn "Remember to run etc-update or dispatch-conf to update the" |
139 |
- ewarn "config protected service files." |
140 |
- fi |
141 |
-} |
142 |
|
143 |
diff --git a/gui-libs/display-manager-init/files/startDM b/gui-libs/display-manager-init/files/startDM |
144 |
deleted file mode 100644 |
145 |
index 976d1dd2d56..00000000000 |
146 |
--- a/gui-libs/display-manager-init/files/startDM |
147 |
+++ /dev/null |
148 |
@@ -1,29 +0,0 @@ |
149 |
-#!/bin/sh |
150 |
-# Copyright 1999-2020 Gentoo Authors |
151 |
-# Distributed under the terms of the GNU General Public License, v2 |
152 |
- |
153 |
-# We need to source /etc/profile.env for stuff like $LANG to work |
154 |
-# bug #10190. |
155 |
-. /etc/profile.env |
156 |
- |
157 |
-# need eerror |
158 |
-. /lib/gentoo/functions.sh |
159 |
- |
160 |
-# Bail out early if on a non-OpenRC system: |
161 |
-if [ ! -d /run/openrc ]; then |
162 |
- eerror "$0 should only be used on OpenRC systems" |
163 |
-fi |
164 |
- |
165 |
-. /lib/rc/sh/functions.sh |
166 |
- |
167 |
-export RC_SVCNAME=display-manager |
168 |
-EXEC="$(get_options service)" |
169 |
-NAME="$(get_options name)" |
170 |
-PIDFILE="$(get_options pidfile)" |
171 |
-START_STOP_ARGS="$(get_options start_stop_args)" |
172 |
- |
173 |
-start-stop-daemon --start --exec "${EXEC}" \ |
174 |
-"${NAME:+--name}" "${NAME}" "${PIDFILE:+--pidfile}" "${PIDFILE}" ${START_STOP_ARGS} || \ |
175 |
-eerror "ERROR: could not start the Display Manager" |
176 |
- |
177 |
-# vim:ts=4 |