summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-03-31 20:40:08 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-03-31 20:40:08 +0200
commit4dcdcebb67254368e849588d350842f8b6daba4e (patch)
tree1b6f0ce3235affaf895c474f7b8d25a5649fa448
parentdev-lang/spidermonkey: ensure we have at least 2G of disk space, bug #681860 (diff)
downloadgentoo-4dcdcebb67254368e849588d350842f8b6daba4e.tar.gz
gentoo-4dcdcebb67254368e849588d350842f8b6daba4e.tar.bz2
gentoo-4dcdcebb67254368e849588d350842f8b6daba4e.zip
sys-apps/fwupd: Revbump to fix init script with USE="elogind"
Closes: https://bugs.gentoo.org/682140 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rw-r--r--sys-apps/fwupd/files/fwupd-r113
-rw-r--r--sys-apps/fwupd/fwupd-1.2.6-r1.ebuild (renamed from sys-apps/fwupd/fwupd-1.2.6.ebuild)6
2 files changed, 18 insertions, 1 deletions
diff --git a/sys-apps/fwupd/files/fwupd-r1 b/sys-apps/fwupd/files/fwupd-r1
new file mode 100644
index 00000000000..4a4865ef15a
--- /dev/null
+++ b/sys-apps/fwupd/files/fwupd-r1
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Firmware update daemon"
+pidfile="/var/run/fwupd.pid"
+command="/usr/libexec/fwupd/fwupd"
+command_background="true"
+
+depend() {
+ need %SEAT_MANAGER% dbus
+ before xdm
+}
diff --git a/sys-apps/fwupd/fwupd-1.2.6.ebuild b/sys-apps/fwupd/fwupd-1.2.6-r1.ebuild
index 4f9584b78f9..3006840299e 100644
--- a/sys-apps/fwupd/fwupd-1.2.6.ebuild
+++ b/sys-apps/fwupd/fwupd-1.2.6-r1.ebuild
@@ -122,7 +122,11 @@ src_configure() {
src_install() {
meson_src_install
- doinitd "${FILESDIR}"/${PN}
+
+ sed "s@%SEAT_MANAGER%@$(usex elogind elogind consolekit)@" \
+ "${FILESDIR}"/${PN}-r1 \
+ > "${T}"/${PN} || die
+ doinitd "${T}"/${PN}
if ! use systemd ; then
# Don't timeout when fwupd is running (#673140)