ckb-next/ckb-next-systemd.patch
Luigi Baldoni 0b30bbcf3d Accepting request 856841 from home:alois:branches:hardware
* Update to version 0.4.3
  Support for new devices:
  * Scimitar RGB Elite
  * Nightsword RGB
  Important bugfixes:
  * Fixed delay when shutting down with K95 RGB
  * Fixed freezing when updating indicator LEDs
  * Indicator LEDs are now more responsive when an animation is
    playing
  * GUI now starts hidden in tray on KDE
  * The pipe animation now works consistently between mode
    changes
  * The pipe animation now handles input commands sent in rapid
    succession before the device is updated
  * Input works on wayland again after recent updates
  * libgdx based games no longer crash on mouse input
  * Mouse settings are now correctly restored when resuming from
    suspend
  * Fixed a bug where some devices would not be initialised on
    daemon start and would require a replug
  * Fixed layouts for K68, K65, K63, M95
  New features:
  * Under X11 only, lights can now automatically turn off after
    a user-set time
  * Macros now loop when the key is held down
  * Macro UI has been redesigned and supports recording from non
    ckb-next managed keyboards
  * Modes can now be changed automatically based on the current
    focused application (X11/XWayland Only)
  * Translations are now supported
  Notes for packagers:
  * The systemd unit directory can be overriden with
    -DSYSTEMD_UNIT_INSTALL_DIR
  * libappindicator is no longer used
  * Minimum Qt version has been bumped up to 5.5.1 (xenial)
  * cmake now checks for quazip 1.0
  * The following new dependencies have been introduced: Qt5
    X11Extras, xcb, xcb-screensaver, xcb-ewmh, Qt5 translation
    tools, dbusmenu-qt5
- Refresh ckb-next-use-run.patch, ckb-next-systemd.patch and
  422.patch
- Drop ckb-next-gcc10.patch (merged upstream)

OBS-URL: https://build.opensuse.org/request/show/856841
OBS-URL: https://build.opensuse.org/package/show/hardware/ckb-next?expand=0&rev=18
2020-12-18 09:12:10 +00:00

36 lines
1.4 KiB
Diff

Index: ckb-next-0.4.3/src/daemon/CMakeLists.txt
===================================================================
--- ckb-next-0.4.3.orig/src/daemon/CMakeLists.txt
+++ ckb-next-0.4.3/src/daemon/CMakeLists.txt
@@ -302,7 +302,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(SYSTEMD_UNIT_INSTALL_DIR "/usr/lib/systemd/system" CACHE STRING "Where to install systemd unit files.")
@@ -415,7 +415,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.3/linux/systemd/ckb-next-daemon.service.in
===================================================================
--- ckb-next-0.4.3.orig/linux/systemd/ckb-next-daemon.service.in
+++ ckb-next-0.4.3/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]