Add Linux packaging

This commit is contained in:
Oleksii Vilchanskyi
2018-03-17 18:00:15 +02:00
committed by Tasos Sahanidis
parent 52e1e30a8e
commit 4939ac6248
14 changed files with 84 additions and 93 deletions
+15
View File
@@ -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
+15
View File
@@ -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
+29
View File
@@ -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
}
+12
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
ACTION=="add|change", SUBSYSTEM=="input", ATTRS{name}=="ckb[0-9]: [A-Za-z0-9]*", ENV{ID_INPUT_JOYSTICK}=""
+13
View File
@@ -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