forked from pool/spacenavd
Herbert Graeber
cc6a0bf42d
- Update to version 1.0 * Implemented hugely improved spacenav protocol v1. It includes future expandability provisions, and adds support for a wealth of new capabilities for clients, including: + device information queries (number of buttons and axes, device identification...). + configuration management (allows configuration tools like spnavcfg to be regular clients without special priviledges). + new events, with event selection mechanism (device change, config change, raw axis, raw button). * Improved configuration file handling. Spacenavd now saves changes to the file, and does so while retaining user changes, including comments and empty lines, and modifying existing lines when possible. * Added device level axis remapping (non-configurable), to normalize axis assignments across all known devices, to avoid having to change the configuration every time a different device is connected. * Added initial USB device support on FreeBSD. * Added the ability to bind buttons to actions like sensitivity changes or axis muting. * Added XTEST support for keyboard event injection, which works much more reliably. Falls back to XSendEvent if XTEST is unavailable. * Fixed serial magellan spacemouse compatibility over USB-serial converters with the PL2303 UART. * Added --cfgdir= build option, to change the configuration file directory. * Fixed MacOS X build. * Fixed LED staying on on startup if it was configured otherwise. * Fixed inconsistent handling of the logging method selection arguments. * Fixed spacenavd terminating with SIGPIPE when clients disconnected ungracefully. * Build fixes and improvements. OBS-URL: https://build.opensuse.org/request/show/972858 OBS-URL: https://build.opensuse.org/package/show/hardware/spacenavd?expand=0&rev=22
53 lines
1.9 KiB
Diff
53 lines
1.9 KiB
Diff
diff -ur spacenavd-1.0.orig/contrib/systemd/spacenavd.service spacenavd-1.0/contrib/systemd/spacenavd.service
|
|
--- spacenavd-1.0.orig/contrib/systemd/spacenavd.service 2022-04-25 16:03:28.338795433 +0200
|
|
+++ spacenavd-1.0/contrib/systemd/spacenavd.service 2022-04-25 16:40:21.644561051 +0200
|
|
@@ -4,8 +4,8 @@
|
|
|
|
[Service]
|
|
Type=forking
|
|
-PIDFile=/var/run/spnavd.pid
|
|
-ExecStart=/usr/local/bin/spacenavd
|
|
+PIDFile=/run/spnavd.pid
|
|
+ExecStart=/usr/sbin/spacenavd
|
|
StandardError=syslog
|
|
|
|
[Install]
|
|
diff -ur spacenavd-1.0.orig/init_script spacenavd-1.0/init_script
|
|
--- spacenavd-1.0.orig/init_script 2022-04-25 16:02:21.655184661 +0200
|
|
+++ spacenavd-1.0/init_script 2022-04-25 16:16:16.866098885 +0200
|
|
@@ -30,7 +30,7 @@
|
|
stop)
|
|
echo 'Stopping spacenavd daemon'
|
|
# detect daemon's process id
|
|
- pid=`cat /var/run/spnavd.pid 2>/dev/null`
|
|
+ pid=`cat /run/spnavd.pid 2>/dev/null`
|
|
if [ $? != 0 ]; then
|
|
pid=`ps -e | grep spacenavd | awk '{ print $1 }'`
|
|
if [ -z "$pid" ]; then
|
|
diff -ur spacenavd-1.0.orig/spnavd_ctl spacenavd-1.0/spnavd_ctl
|
|
--- spacenavd-1.0.orig/spnavd_ctl 2022-04-25 16:02:21.655184661 +0200
|
|
+++ spacenavd-1.0/spnavd_ctl 2022-04-25 16:16:41.818036452 +0200
|
|
@@ -32,7 +32,7 @@
|
|
fi
|
|
|
|
# detect daemon's process id
|
|
-pid=`cat /var/run/spnavd.pid 2>/dev/null`
|
|
+pid=`cat /run/spnavd.pid 2>/dev/null`
|
|
if [ $? != 0 ]; then
|
|
pid=`ps -e | grep spacenavd | awk '{ print $1 }'`
|
|
if [ -z "$pid" ]; then
|
|
diff -ur spacenavd-1.0.orig/src/spnavd.h spacenavd-1.0/src/spnavd.h
|
|
--- spacenavd-1.0.orig/src/spnavd.h 2022-04-25 16:02:21.655184661 +0200
|
|
+++ spacenavd-1.0/src/spnavd.h 2022-04-25 16:17:04.797947800 +0200
|
|
@@ -26,8 +26,8 @@
|
|
#define DEF_CFGFILE CFGDIR "/spnavrc"
|
|
#define DEF_LOGFILE "/var/log/spnavd.log"
|
|
|
|
-#define SOCK_NAME "/var/run/spnav.sock"
|
|
-#define PIDFILE "/var/run/spnavd.pid"
|
|
+#define SOCK_NAME "/run/spnav.sock"
|
|
+#define PIDFILE "/run/spnavd.pid"
|
|
#define SYSLOG_ID "spnavd"
|
|
|
|
/* Multiple devices support */
|