[packages/elogind] start elogind via dbus activation

glen glen at pld-linux.org
Sun Aug 6 09:52:47 CEST 2017


commit 56a1620ac33115b84a8b7b90275702b88c50b221
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sun Aug 6 10:33:16 2017 +0300

    start elogind via dbus activation
    
    https://github.com/elogind/elogind/issues/25

 elogind-service.patch | 15 +++++++++++++++
 elogind.spec          |  7 ++++++-
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/elogind.spec b/elogind.spec
index 977e6d1..d878bd2 100644
--- a/elogind.spec
+++ b/elogind.spec
@@ -2,12 +2,13 @@ Summary:	Elogind User, Seat and Session Manager
 Summary(pl.UTF-8):	Elogind - zarządca użytkowników, stanowisk i sesji
 Name:		elogind
 Version:	234.2
-Release:	0.1
+Release:	1
 License:	LGPL v2.1+
 Group:		Daemons
 # Source0Download: https://github.com/elogind/elogind/releases
 Source0:	https://github.com/elogind/elogind/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	d3c52e4af85dddeb3d323a18c341164f
+Patch0:		%{name}-service.patch
 URL:		https://github.com/elogind/elogind
 BuildRequires:	acl-devel
 BuildRequires:	autoconf >= 2.64
@@ -116,6 +117,7 @@ Pliki nagłówkowe biblioteki elogind.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 #install -d docs
@@ -146,6 +148,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libelogind.la \
 	$RPM_BUILD_ROOT/%{_lib}/security/*.la
 
+%{__sed} -i -e 's, at elogind@,%{_libexecdir}/%{name}/elogind,' \
+	$RPM_BUILD_ROOT%{_datadir}/dbus-1/system-services/org.freedesktop.login1.service
+
 # provided by systemd-devel
 %{__rm} \
 	$RPM_BUILD_ROOT%{_mandir}/man3/SD_*.3 \
diff --git a/elogind-service.patch b/elogind-service.patch
new file mode 100644
index 0000000..8f5e2a2
--- /dev/null
+++ b/elogind-service.patch
@@ -0,0 +1,15 @@
+
+start the daemon via dbus activation
+
+https://github.com/elogind/elogind/issues/25
+
+--- elogind-234.2/src/login/org.freedesktop.login1.service~	2017-07-28 10:38:57.000000000 +0300
++++ elogind-234.2/src/login/org.freedesktop.login1.service	2017-08-06 10:31:26.815479309 +0300
+@@ -7,6 +7,6 @@
+ 
+ [D-BUS Service]
+ Name=org.freedesktop.login1
+-Exec=/bin/false
++Exec=@elogind@
+ User=root
+ SystemdService=dbus-org.freedesktop.login1.service
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/elogind.git/commitdiff/56a1620ac33115b84a8b7b90275702b88c50b221



More information about the pld-cvs-commit mailing list