commit:     8abf8a0bd7cfaba8d93e073b047d06e8f856c231
Author:     Bjorn Pagen <bjornpagen <AT> gmail <DOT> com>
AuthorDate: Sun Nov 12 09:21:09 2017 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Nov 12 12:51:30 2017 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=8abf8a0b

sys-auth/elogind: fix elogind oops

 sys-auth/elogind/Manifest              |  3 +++
 sys-auth/elogind/files/elogind.conf    |  8 ++++++++
 sys-auth/elogind/files/elogind.conf.in |  7 +++++++
 sys-auth/elogind/files/elogind.init    | 25 +++++++++++++++++++++++++
 4 files changed, 43 insertions(+)

diff --git a/sys-auth/elogind/Manifest b/sys-auth/elogind/Manifest
index 86b5a15..3f9de92 100644
--- a/sys-auth/elogind/Manifest
+++ b/sys-auth/elogind/Manifest
@@ -1,5 +1,8 @@
 AUX elogind-226.4-docs.patch 355 SHA256 
4fa3a1aa38a9ba23cd023a3ace11c4c8155ee856a6cd7f228ac65cd921629b24 SHA512 
dc942f190ea2064e194808db7c6ede618d536778f1b574658ddb9c0aa4a106f6129cc18000eaa63aeca1b16ad28fe5f5dbee441bd93436ae62eb4740236f94ae
 WHIRLPOOL 
45bdbbaa103b6bf94a0e3544978eb1ea0a942162711227f8c9c17f1c606d15d1e1e44f898635b26c80bf96d662c612daf59aed007aa57744baed574b20861a38
 AUX elogind-fix-musl.patch 934 SHA256 
f1e62001228991fab4b5f3703cbb31933d749010c5ef8c3321d14b0032422b53 SHA512 
3d07799d6e13c1c5499e9079d4b35141e3deac0d9bf23c5a999687e233de774c0cfa41d3ecbf0b41950672b443cf6e17a9b3e46f7ef495683af04d34b7c2e49b
 WHIRLPOOL 
922eb5dcf1e0de1a80359e7bb6890ec5f646ab59f6b3cadbc6a8f51cd5256ef6bb2c876d519fae1664c1851017e6a5803e0162372340d3da0149f9931fbfa06a
+AUX elogind.conf 226 SHA256 
59ecf16540075638607192f44b384d5f1b57e6f5b1ec0ec3f32ea39835a06f1b SHA512 
dc47d57ceae149757296770bc9c5e40054ba8db3d77c451d793f5873e17214fbb59bf197c84f91d8aca76805b70e9f92a2417678606c9d6e59258d3dd03b38f1
 WHIRLPOOL 
ab90da66148f9b05fab944c5b515ed7a4bbb5822552ecfc17d8df749d06c25f3e1ceaad02a7b8ff8ec50c178bc92e9afb1c1d34177ab224d7b8a345d0c5cc329
+AUX elogind.conf.in 218 SHA256 
ed2b6b9c659d7661cba043fefe38aa5c7d7c910fc50060c6a4be0ef5b75b7376 SHA512 
2c62ab28d7db9cd52489069f80363159000385a25dd7f2afe5a03598a0b7a1f61af7c18df71f6286e72f5966e55b62a4029e30cb786dd813bb201b9e20adccd7
 WHIRLPOOL 
df40c41e4f7e2bbc0ff7d89b88fccb0e02fceb404b4814fbc32f526eb9ac455409782f02c7a30bd737f6f6b171a6140dae7befb20d4f571250fae3b3320e37f6
+AUX elogind.init 490 SHA256 
982423a88eea889c194123ecffbdea03d8f94ca497b7b32bd86fdf20a81680c7 SHA512 
60fe1cb55ec0f605f06fb3744a0300accebfc14c4ecd24b7db2e8b0cb1537e816a4a4ccbc4b2eeac45e2f3ca8942dd10d24bdcd814cccbc2ceed198b2657238a
 WHIRLPOOL 
1b9e244c46e021855688bcc5295cc897a988864c8954cd794726e0d77dba5665e43e96c7a297402b9562c7b6a33c2299e6471fadff45f098baed031cc3f60dec
 DIST elogind-234.4.tar.gz 973370 SHA256 
ffb465a62c4281c19b07eb7fbb9ad0987f3b726ae1a868a92a3144d7714542f3 SHA512 
2df4fa318074d4f5e5dbba353cf817068a2703ffed40cdeae4cba2dea4ee143d1c5fc076b19419f1c4299392088c2c14b430d8aa1ded03b62117311802305d5e
 WHIRLPOOL 
1b735338cb02ef8cffb5837a0702110117ae1d677a4cbf106180c549485f7fb0604f3134e6ff5e14b23485ddfe4d4415a41e69d93b8f099cee41a220d0ea4a69
 EBUILD elogind-234.4.ebuild 2858 SHA256 
d29413423f2f3b3e7eb5cf7b0171eda8e5a3e12d37af0ac0193e8669a5a47cf6 SHA512 
3a5f1f51da798b6954619ddc50f5a32ef2bc8a82610f6b5d6e62813e2f673fb322a7dd89a231f00429f4ef0b142a1244df6d622922efb1a0f6802a9e1bad6caf
 WHIRLPOOL 
254ec63617f1115e538947a123543f7382b4684879779fa43c524f0b7a15fb2c6db4335a81a4e364573401a33f9f8412d156813a601f632fa6b763fea5155436
 MISC metadata.xml 379 SHA256 
c55fc88944b52a1d166e136a6b9a6e9e2f0c9b955e23f1d1c8d7f0d45a44a742 SHA512 
30be0eb7903ffb83d9e24fbcacc8db09c0f8cd7187df5f75b2c12fb5cfae1110d52f29aba502ea92af53df02451cc40e0f3789382f87a16bd281f06e9cad6c68
 WHIRLPOOL 
11ff30511856a1ec0891654e0fea4e501e85c7e547069fd23f18f54fc50cc830b7da48633e5ee9afa5b968eb2b1dd473b3e6d849bf6af001e50ee77844a85605

diff --git a/sys-auth/elogind/files/elogind.conf 
b/sys-auth/elogind/files/elogind.conf
new file mode 100644
index 0000000..b66a158
--- /dev/null
+++ b/sys-auth/elogind/files/elogind.conf
@@ -0,0 +1,8 @@
+# /etc/conf.d/elogind: config file for /etc/init.d/elogind
+
+# this is the elogind executable
+ELOGIND_EXEC="/usr/libexec/elogind/elogind"
+
+# this is where elogind will store its pid file
+ELOGIND_PIDFILE="/var/run/elogind.pid"
+

diff --git a/sys-auth/elogind/files/elogind.conf.in 
b/sys-auth/elogind/files/elogind.conf.in
new file mode 100644
index 0000000..7b05b35
--- /dev/null
+++ b/sys-auth/elogind/files/elogind.conf.in
@@ -0,0 +1,7 @@
+# /etc/conf.d/elogind: config file for /etc/init.d/elogind
+
+# this is the elogind executable
+ELOGIND_EXEC="/@libdir@/elogind/elogind"
+
+# this is where elogind will store its pid file
+ELOGIND_PIDFILE="/run/elogind.pid"

diff --git a/sys-auth/elogind/files/elogind.init 
b/sys-auth/elogind/files/elogind.init
new file mode 100644
index 0000000..019c3af
--- /dev/null
+++ b/sys-auth/elogind/files/elogind.init
@@ -0,0 +1,25 @@
+#!/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
+}
+
+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 $?
+}

Reply via email to