- Adjust ckb-next-systemd.patch to the change for %_libexecdir OBS-URL: https://build.opensuse.org/request/show/830481 OBS-URL: https://build.opensuse.org/package/show/hardware/ckb-next?expand=0&rev=16
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
Index: ckb-next-0.4.1/src/daemon/CMakeLists.txt
|
|
===================================================================
|
|
--- ckb-next-0.4.1.orig/src/daemon/CMakeLists.txt
|
|
+++ ckb-next-0.4.1/src/daemon/CMakeLists.txt
|
|
@@ -294,7 +294,7 @@ elseif (LINUX)
|
|
endif ()
|
|
|
|
# A way to check for systemd
|
|
- if (EXISTS "/run/systemd/system" OR "systemd" IN_LIST FORCE_INIT_SYSTEM)
|
|
+ if (EXISTS "/usr/lib/systemd/system" OR "systemd" IN_LIST FORCE_INIT_SYSTEM)
|
|
message(STATUS "systemd detected")
|
|
set(CKB_NEXT_INIT_SYSTEM "systemd" CACHE INTERNAL "")
|
|
set(DISALLOW_SYSVINIT TRUE)
|
|
@@ -406,7 +406,7 @@ if (MACOS)
|
|
elseif (LINUX)
|
|
install(
|
|
TARGETS ckb-next-daemon
|
|
- DESTINATION "bin")
|
|
+ DESTINATION "${CMAKE_INSTALL_LIBEXECDIR}")
|
|
endif ()
|
|
|
|
# Declare target's auxiliary files installation paths
|
|
Index: ckb-next-0.4.1/linux/systemd/ckb-next-daemon.service.in
|
|
===================================================================
|
|
--- ckb-next-0.4.1.orig/linux/systemd/ckb-next-daemon.service.in
|
|
+++ ckb-next-0.4.1/linux/systemd/ckb-next-daemon.service.in
|
|
@@ -5,7 +5,7 @@
|
|
Description=Corsair Keyboards and Mice Daemon
|
|
|
|
[Service]
|
|
-ExecStart=@CMAKE_INSTALL_PREFIX@/bin/ckb-next-daemon
|
|
+ExecStart=@CMAKE_INSTALL_LIBEXECDIR@/ckb-next-daemon
|
|
Restart=on-failure
|
|
|
|
[Install]
|