blob: 15a7bfc73295d72109a23154bbe5bd7075ffb65f [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From a8ef81c115a45f05dad145c98e10f3c4940e4e29 Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 26 Jan 2017 16:25:47 +0200
Brad Bishop316dfdd2018-06-25 12:45:53 -04004Subject: [PATCH 3/5] Do not hardcode /etc and systemd unit directories
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005
6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Brad Bishop316dfdd2018-06-25 12:45:53 -04008
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009---
10 CMakeLists.txt | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/CMakeLists.txt b/CMakeLists.txt
Brad Bishop316dfdd2018-06-25 12:45:53 -040014index 650b624a..10199618 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050015--- a/CMakeLists.txt
16+++ b/CMakeLists.txt
17@@ -7,8 +7,8 @@ if (NOT PYTHON_DESIRED)
18 set (PYTHON_DESIRED "2")
19 endif()
20
21-SET( SYSCONFDIR /etc)
22-SET( SYSTEMD_DIR /usr/lib/systemd/system)
23+SET( SYSCONFDIR ${CMAKE_INSTALL_SYSCONFDIR})
24+SET( SYSTEMD_DIR $ENV{systemd_system_unitdir})
25
26 if (${PYTHON_DESIRED} STREQUAL "2")
27 FIND_PACKAGE (PythonInterp REQUIRED)
28--
Brad Bishop316dfdd2018-06-25 12:45:53 -0400292.14.2
Brad Bishop6e60e8b2018-02-01 10:27:11 -050030