Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

96.6. spacenavd-1.3.1

The 6-DoF 3D mouse daemon — serves 3Dconnexion devices to libspnav clients over /run/spnav.sock

1.3.1-1 · GPL-3.0-or-later · 0.1 SBU · 116.1 KiB, 4 files · 41_system, 719 of 1047 · ports/core/input/spacenavd

Homepage: https://github.com/FreeSpacenav/spacenavd

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/input.txt:

The 3D mouse daemon every libspnav client connects to over /run/spnav.sock.

Depends on: nothing a recipe names.

Required by: no port names it.

Sources: spacenavd-1.3.1.tar.gz (62.1 KiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install spacenavd'

build.sh:

./configure --prefix=/usr --cfgdir=/etc --disable-x11 --disable-debug
make
make DESTDIR=$PKG install
rm -f "$PKG/usr/bin/spnavd_ctl"
install -Dm644 doc/example-spnavrc "$PKG/usr/share/doc/spacenavd/example-spnavrc"
install -d "$PKG/etc/init.d"
cat > "$PKG/etc/init.d/61_spacenavd.sh" <<'KDOS_SH'
#!/bin/bash
. /etc/init.d/service_helper

NAME="spacenavd"
DAEMON="/usr/bin/spacenavd"

case "$1" in
    start)
        [ ! -x "$DAEMON" ] && { echo "[SKIP] $NAME: $DAEMON not found"; exit 0; }
        echo "[KDOS] Starting $NAME..."
        supervise "$NAME" "$DAEMON" -d -l syslog
        ;;
    stop)   stop_service "$NAME" ;;
    status) check_status "$NAME" ;;
    *)      echo "Usage: $0 {start|stop|status}"; exit 1 ;;
esac
KDOS_SH
chmod 755 "$PKG/etc/init.d/61_spacenavd.sh"

Programs: spacenavd.

Directories: /usr/share/doc/spacenavd, /usr/share/licenses/spacenavd.