From ff604570fce351dbfbb9e0148f1197188883ff05 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Thu, 24 Nov 2016 20:32:02 +0100 Subject: fancontrol-ng: install the unit file under /lib --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d8b307..736b67b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,8 +62,9 @@ include (GNUInstallDirs) configure_file (${PROJECT_SOURCE_DIR}/fancontrol-ng.service.in ${PROJECT_BINARY_DIR}/fancontrol-ng.service @ONLY) +# System-wide unit files should be installed under /lib and not /usr/lib install (FILES ${PROJECT_BINARY_DIR}/fancontrol-ng.service - DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system) + DESTINATION /lib/systemd/system) install (FILES fancontrol-ng.conf.example DESTINATION ${CMAKE_INSTALL_DATADIR}/fancontrol-ng) -- cgit v1.2.3-70-g09d2