commit: c6735a700bb0328ca86877e7d5c1882707e70c6d
Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 10 13:13:20 2021 +0000
Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
CommitDate: Sun Jan 10 13:14:56 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6735a70
sys-auth/elogind: 246.9.1 rev bump with updated init script (use logger).
Forked out the init script so it won't affect older releases, although
it's harmless, revbump should be done anyway to update it.
Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org>
...nd-246.9.1.ebuild => elogind-246.9.1-r1.ebuild} | 2 +-
sys-auth/elogind/files/elogind.init-r1 | 27 ++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/sys-auth/elogind/elogind-246.9.1.ebuild
b/sys-auth/elogind/elogind-246.9.1-r1.ebuild
similarity index 98%
rename from sys-auth/elogind/elogind-246.9.1.ebuild
rename to sys-auth/elogind/elogind-246.9.1-r1.ebuild
index afcc828ef59..1fe129445f4 100644
--- a/sys-auth/elogind/elogind-246.9.1.ebuild
+++ b/sys-auth/elogind/elogind-246.9.1-r1.ebuild
@@ -106,7 +106,7 @@ src_install() {
meson_src_install
- newinitd "${FILESDIR}"/${PN}.init ${PN}
+ newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
sed -e "s/@libdir@/$(get_libdir)/" "${FILESDIR}"/${PN}.conf.in >
${PN}.conf || die
newconfd ${PN}.conf ${PN}
diff --git a/sys-auth/elogind/files/elogind.init-r1
b/sys-auth/elogind/files/elogind.init-r1
new file mode 100644
index 00000000000..1cb5071c621
--- /dev/null
+++ b/sys-auth/elogind/files/elogind.init-r1
@@ -0,0 +1,27 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need dbus
+
+ # Make sure elogind is up before xdm starts any dm
+ before xdm
+
+ use logger
+}
+
+start() {
+ ebegin "Starting elogind"
+
+ start-stop-daemon --start --quiet \
+ --pidfile "${ELOGIND_PIDFILE}" \
+ --exec "${ELOGIND_EXEC}" -- --daemon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping elogind"
+ start-stop-daemon --stop --quiet --pidfile "${ELOGIND_PIDFILE}"
+ eend $?
+}