SHA256
1
0
forked from pool/spacenavd
spacenavd/spacenavd-fix-pidfile.patch
Herbert Graeber ddfe768b54 - Version 1.3
* Support for dominant axis mode. Dominant axis toggle can be bound as
    a button action.
  * Fixed device detection for some serial Spaceballs which were misdetected
    due to spurious data arriving before the "@reset".
  * Normalized default axis mapping/sign for CadMan USB and Spaceball 5000 USB.
  * Linux: stop using the evdev time field, which was dropped in 32bit linux
    for year 2038 compatibility.
  * Protocol: added missing set/get requests for the repeat interval.
  * Updated device blacklists to ignore 3Dconnexion keyboards/mice.
  * Build improvements and fixes for various platforms.
- Add libXext as a build requires

OBS-URL: https://build.opensuse.org/package/show/hardware/spacenavd?expand=0&rev=31
2024-08-24 11:17:44 +00:00

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 */