mirror of
https://github.com/ckb-next/ckb-next.git
synced 2026-10-10 12:27:21 -04:00
Add Linux packaging
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# Copyright 2017-2018 ckb-next Development Team <[email protected]>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=ckb-next
|
||||
Comment=Corsair keyboard driver user interface
|
||||
Keywords=ckb;corsair;keyboard;rgb;
|
||||
Categories=Settings;System;
|
||||
TryExec=@CMAKE_INSTALL_PREFIX@/bin/ckb-next
|
||||
Exec=@CMAKE_INSTALL_PREFIX@/bin/ckb-next --background
|
||||
Icon=ckb-next-logo
|
||||
StartupNotify=true
|
||||
@@ -0,0 +1,15 @@
|
||||
# Copyright 2017-2018 ckb-next Development Team <[email protected]>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=ckb-next
|
||||
Comment=Corsair keyboard driver user interface
|
||||
Keywords=ckb;corsair;keyboard;rgb;
|
||||
Categories=Settings;System;
|
||||
TryExec=@CMAKE_INSTALL_PREFIX@/bin/ckb-next
|
||||
Exec=@CMAKE_INSTALL_PREFIX@/bin/ckb-next
|
||||
Icon=ckb-next-logo
|
||||
StartupNotify=true
|
||||
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 2017-2018 ckb-next Development Team <[email protected]>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
extra_started_commands="reload"
|
||||
command="@CMAKE_INSTALL_PREFIX@/bin/ckb-next-daemon"
|
||||
description="Corsair Keyboards and Mice Daemon"
|
||||
pidfile="/dev/input/ckb0/pid"
|
||||
logfile="/var/log/ckb-next-daemon.log"
|
||||
|
||||
start() {
|
||||
ebegin "Starting Corsair Keyboards and Mice Driver"
|
||||
start-stop-daemon --start --exec "${command}" --pidfile "${pidfile}" --background \
|
||||
--stdout "${logfile}" --stderr "${logfile}"
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping Corsair Keyboards and Mice Driver"
|
||||
start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}"
|
||||
eend $?
|
||||
}
|
||||
|
||||
reload() {
|
||||
stop
|
||||
sleep 0.1
|
||||
start
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
# Copyright 2017-2018 ckb-next Development Team <[email protected]>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
[Unit]
|
||||
Description=Corsair Keyboards and Mice Daemon
|
||||
|
||||
[Service]
|
||||
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/ckb-next-daemon
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1 @@
|
||||
ACTION=="add|change", SUBSYSTEM=="input", ATTRS{name}=="ckb[0-9]: [A-Za-z0-9]*", ENV{ID_INPUT_JOYSTICK}=""
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
# Copyright 2014-2016 ccMSC <[email protected]>
|
||||
# Copyright 2017-2018 ckb-next Development Team <[email protected]>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description "Corsair keyboards and mice daemon"
|
||||
author "ccMSC <[email protected]>"
|
||||
|
||||
start on runlevel [2345]
|
||||
stop on runlevel [016]
|
||||
|
||||
respawn
|
||||
|
||||
exec @CMAKE_INSTALL_PREFIX@/bin/ckb-next-daemon
|
||||
Reference in New Issue
Block a user