Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 1 | From a8ef81c115a45f05dad145c98e10f3c4940e4e29 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Thu, 26 Jan 2017 16:25:47 +0200 |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 4 | Subject: [PATCH 3/5] Do not hardcode /etc and systemd unit directories |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 5 | |
| 6 | Upstream-Status: Inappropriate [oe-core specific] |
| 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 8 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | --- |
| 10 | CMakeLists.txt | 4 ++-- |
| 11 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 12 | |
| 13 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 14 | index 650b624a..10199618 100644 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 15 | --- 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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 29 | 2.14.2 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 30 | |