[Pkg-telepathy-commits] [telepathy-mission-control-5] 02/05: d/p/Add-a-systemd-user-service-corresponding-to-the-D-Bu.patch: Add systemd user service file

Laurent Bigonville bigon at moszumanska.debian.org
Sat Dec 12 06:28:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

bigon pushed a commit to branch debian
in repository telepathy-mission-control-5.

commit 04a6c11d38192396254ccc47ae9eda521eb88194
Author: Laurent Bigonville <bigon at bigon.be>
Date:   Wed Dec 9 18:08:31 2015 +0100

    d/p/Add-a-systemd-user-service-corresponding-to-the-D-Bu.patch: Add systemd user service file
---
 debian/changelog                                   |  4 +-
 ...md-user-service-corresponding-to-the-D-Bu.patch | 79 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 debian/telepathy-mission-control-5.install         |  1 +
 4 files changed, 84 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 84fa988..eb4205d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,8 +5,10 @@ telepathy-mission-control-5 (1:5.16.3-2) UNRELEASED; urgency=medium
 
   [ Laurent Bigonville ]
   * debian/control: Bump Standards-Version to 3.9.6 (no further changes)
+  * d/p/Add-a-systemd-user-service-corresponding-to-the-D-Bu.patch: Add
+    systemd user service file
 
- -- Laurent Bigonville <bigon at debian.org>  Wed, 09 Dec 2015 18:06:50 +0100
+ -- Laurent Bigonville <bigon at debian.org>  Wed, 09 Dec 2015 18:08:12 +0100
 
 telepathy-mission-control-5 (1:5.16.3-1) unstable; urgency=medium
 
diff --git a/debian/patches/Add-a-systemd-user-service-corresponding-to-the-D-Bu.patch b/debian/patches/Add-a-systemd-user-service-corresponding-to-the-D-Bu.patch
new file mode 100644
index 0000000..9fd0022
--- /dev/null
+++ b/debian/patches/Add-a-systemd-user-service-corresponding-to-the-D-Bu.patch
@@ -0,0 +1,79 @@
+From: Simon McVittie <simon.mcvittie at collabora.co.uk>
+Date: Thu, 24 Sep 2015 17:26:15 +0100
+Subject: Add a systemd user service corresponding to the D-Bus session service
+
+This lets Mission Control run in its own cgroup.
+
+As a bonus, systemd activation doesn't have to resort to hacks like
+mc-wait-for-name, because systemd understands the concept of a
+systemd service that maps to multiple D-Bus service names, and will
+only start it once.
+
+Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92115
+---
+ server/Makefile.am                                          | 7 +++++++
+ server/org.freedesktop.Telepathy.AccountManager.service.in  | 1 +
+ server/org.freedesktop.Telepathy.MissionControl5.service.in | 1 +
+ server/telepathy-mission-control-5.service.in               | 8 ++++++++
+ 4 files changed, 17 insertions(+)
+ create mode 100644 server/telepathy-mission-control-5.service.in
+
+diff --git a/server/Makefile.am b/server/Makefile.am
+index 5be1cdc..0235db3 100644
+--- a/server/Makefile.am
++++ b/server/Makefile.am
+@@ -12,15 +12,22 @@ AM_CFLAGS = $(ERROR_CFLAGS)
+ 
+ EXTRA_DIST = org.freedesktop.Telepathy.MissionControl5.service.in \
+ 	     org.freedesktop.Telepathy.AccountManager.service.in \
++	     telepathy-mission-control-5.service.in \
+ 	     mission-control-5.8.in
+ CLEANFILES = org.freedesktop.Telepathy.MissionControl5.service \
+ 	     org.freedesktop.Telepathy.AccountManager.service \
++	     telepathy-mission-control-5.service \
+ 	     mission-control-5.8
+ 
+ servicefiledir=$(prefix)/share/dbus-1/services
+ servicefile_DATA=org.freedesktop.Telepathy.MissionControl5.service \
+ 		 org.freedesktop.Telepathy.AccountManager.service
+ 
++systemd_user_unitdir = $(prefix)/lib/systemd/user
++systemd_user_unit_DATA = \
++	telepathy-mission-control-5.service \
++	$(NULL)
++
+ %.service: %.service.in Makefile
+ 	$(AM_V_GEN)sed \
+ 		-e 's![@]libexecdir[@]!$(libexecdir)!' \
+diff --git a/server/org.freedesktop.Telepathy.AccountManager.service.in b/server/org.freedesktop.Telepathy.AccountManager.service.in
+index c137820..773aaf6 100644
+--- a/server/org.freedesktop.Telepathy.AccountManager.service.in
++++ b/server/org.freedesktop.Telepathy.AccountManager.service.in
+@@ -1,3 +1,4 @@
+ [D-BUS Service]
+ Name=org.freedesktop.Telepathy.AccountManager
+ Exec=@libexecdir@/mission-control-5
++SystemdService=telepathy-mission-control-5.service
+diff --git a/server/org.freedesktop.Telepathy.MissionControl5.service.in b/server/org.freedesktop.Telepathy.MissionControl5.service.in
+index 51f4dc1..dcc470f 100644
+--- a/server/org.freedesktop.Telepathy.MissionControl5.service.in
++++ b/server/org.freedesktop.Telepathy.MissionControl5.service.in
+@@ -1,3 +1,4 @@
+ [D-BUS Service]
+ Name=org.freedesktop.Telepathy.MissionControl5
+ Exec=@bindir@/mc-wait-for-name --activate org.freedesktop.Telepathy.AccountManager org.freedesktop.Telepathy.MissionControl5
++SystemdService=telepathy-mission-control-5.service
+diff --git a/server/telepathy-mission-control-5.service.in b/server/telepathy-mission-control-5.service.in
+new file mode 100644
+index 0000000..b99bd14
+--- /dev/null
++++ b/server/telepathy-mission-control-5.service.in
+@@ -0,0 +1,8 @@
++[Unit]
++Description=Telepathy Mission Control service
++Documentation=man:mission-control-5(8)
++
++[Service]
++Type=dbus
++BusName=org.freedesktop.Telepathy.AccountManager
++ExecStart=@libexecdir@/mission-control-5
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..4fe6b99 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Add-a-systemd-user-service-corresponding-to-the-D-Bu.patch
diff --git a/debian/telepathy-mission-control-5.install b/debian/telepathy-mission-control-5.install
index 9d9b774..a1c0bc5 100644
--- a/debian/telepathy-mission-control-5.install
+++ b/debian/telepathy-mission-control-5.install
@@ -1,3 +1,4 @@
+debian/tmp/usr/lib/systemd/user/
 debian/tmp/usr/share/glib-2.0
 debian/tmp/usr/bin/mc-tool
 debian/tmp/usr/bin/mc-wait-for-name

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-mission-control-5.git



More information about the Pkg-telepathy-commits mailing list