aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nemo-qml-plugin-devicelock/0001-Add-option-to-disable-installation-of-systemd-servic.patch
blob: ec52aaaec38b1573794caf8d2ccace82ced0c44e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From 2e392063c74a19101e5885665fbc1f6f986a3002 Mon Sep 17 00:00:00 2001
From: Bart Ribbers <bribbers@disroot.org>
Date: Mon, 8 Feb 2021 10:16:30 +0100
Subject: [PATCH] Add possibility to not install systemd service files

Some systems might use elogind instead and thus don't need the service
files
---
 src/daemon/daemon.pro | 8 +++++---
 systemd/systemd.pri   | 9 +++++----
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/daemon/daemon.pro b/src/daemon/daemon.pro
index c52089a..dcc3109 100644
--- a/src/daemon/daemon.pro
+++ b/src/daemon/daemon.pro
@@ -39,6 +39,8 @@ systemd.files = \
         systemd/nemo-devicelock.service
 systemd.path= /usr/lib/systemd/system
 
-INSTALLS += \
-        systemd \
-        target
+!no_systemd{
+	INSTALLS += systemd
+}
+
+INSTALLS += target
diff --git a/systemd/systemd.pri b/systemd/systemd.pri
index bb6fd8f..047272f 100644
--- a/systemd/systemd.pri
+++ b/systemd/systemd.pri
@@ -1,4 +1,3 @@
-
 systemd.files = \
         $$PWD/nemo-devicelock.socket
 systemd.path= /usr/lib/systemd/system
@@ -7,6 +6,8 @@ policy.files = \
         $$PWD/org.nemomobile.devicelock.conf
 policy.path = /etc/dbus-1/system.d
 
-INSTALLS += \
-        policy \
-        systemd
+!no_systemd{
+	INSTALLS += systemd
+}
+
+INSTALLS += policy
-- 
2.23.0