summaryrefslogtreecommitdiff
path: root/sys-apps/razercfg/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/razercfg/files
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/razercfg/files')
-rw-r--r--sys-apps/razercfg/files/razercfg-0.39-unit-variables.patch21
-rw-r--r--sys-apps/razercfg/files/razerd.init.d-r125
-rw-r--r--sys-apps/razercfg/files/razerd.init.d-r225
3 files changed, 71 insertions, 0 deletions
diff --git a/sys-apps/razercfg/files/razercfg-0.39-unit-variables.patch b/sys-apps/razercfg/files/razercfg-0.39-unit-variables.patch
new file mode 100644
index 000000000000..c17e529c49f2
--- /dev/null
+++ b/sys-apps/razercfg/files/razercfg-0.39-unit-variables.patch
@@ -0,0 +1,21 @@
+We set these variables in the ebuild, so don't override them.
+
+--- a/scripts/cmake.global
++++ b/scripts/cmake.global
+@@ -27,16 +27,6 @@
+ include_directories(AFTER ${LIBUSB_INCLUDE_PATH})
+ set(CMAKE_REQUIRED_INCLUDES "${LIBUSB_INCLUDE_PATH};${CMAKE_REQUIRED_INCLUDES}")
+
+-execute_process(COMMAND pkg-config --variable=systemdsystemunitdir systemd
+- OUTPUT_VARIABLE SYSTEMD_UNIT_DIR
+- ERROR_QUIET
+- OUTPUT_STRIP_TRAILING_WHITESPACE)
+-
+-execute_process(COMMAND pkg-config --variable=udevdir udev
+- OUTPUT_VARIABLE UDEV_DIR
+- ERROR_QUIET
+- OUTPUT_STRIP_TRAILING_WHITESPACE)
+-
+ macro(INSTALL_EXEC_CMD _COMMAND _FAILMSG)
+ install(CODE "
+ execute_process(COMMAND ${_COMMAND} RESULT_VARIABLE install_exec_res)
diff --git a/sys-apps/razercfg/files/razerd.init.d-r1 b/sys-apps/razercfg/files/razerd.init.d-r1
new file mode 100644
index 000000000000..304d91196bc0
--- /dev/null
+++ b/sys-apps/razercfg/files/razerd.init.d-r1
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use logger
+}
+
+PIDFILE=/run/razerd/razerd.pid
+
+start() {
+ ebegin "Starting razerd"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec /usr/sbin/razerd \
+ -- --background --pidfile ${PIDFILE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping razerd"
+ start-stop-daemon --stop --pidfile ${PIDFILE}
+ eend $?
+}
+
diff --git a/sys-apps/razercfg/files/razerd.init.d-r2 b/sys-apps/razercfg/files/razerd.init.d-r2
new file mode 100644
index 000000000000..dd4ab9fd40b2
--- /dev/null
+++ b/sys-apps/razercfg/files/razerd.init.d-r2
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use logger
+}
+
+PIDFILE=/run/razerd/razerd.pid
+
+start() {
+ ebegin "Starting razerd"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec /usr/bin/razerd \
+ -- --background --pidfile ${PIDFILE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping razerd"
+ start-stop-daemon --stop --pidfile ${PIDFILE}
+ eend $?
+}
+