159.4. gpsd-3.27.5
GPS daemon that presents receivers as a socket
3.27.5-2 · BSD-2-Clause · 0.9 SBU · 6.7 MiB, 105 files · 41_system, 580 of 1047 · ports/core/gis/gpsd
Homepage: https://gpsd.io/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/gis.txt:
One daemon in front of every receiver, so a GPS is a socket rather than a serial protocol every program reimplements. Plugging a receiver in starts it, through the udev rule the port ships.
Depends on: scons, python3, pkgconf, ncurses, libusb, dbus, bluez, libcap.
Required by (7): direwolf, gpredict, marble, opencpn, plasma5support, stellarium, viking.
Sources: gpsd-3.27.5.tar.xz (3.9 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install gpsd'
build.sh:
DESTDIR="$PKG" scons prefix=/usr libdir=/usr/lib \
systemd=no qt=no xgps=no \
dbus_export=yes bluez=yes usb=yes ncurses=yes \
manbuild=no magic_hat=no \
python_libdir="$(python3 -c 'import sysconfig; print(sysconfig.get_path("purelib"))')" \
--jobs="$KDOS_JOBS" \
install
test -x "$PKG/usr/sbin/gpsd"
test -e "$PKG/usr/lib/libgps.so"
install -Dm755 gpsd.hotplug "$PKG/usr/lib/udev/gpsd.hotplug"
install -d "$PKG/usr/lib/udev/rules.d"
cat > "$PKG/usr/lib/udev/rules.d/70-kdos-gpsd.rules" <<'RULES'
SUBSYSTEM=="gnss", ACTION=="add", GROUP="dialout", MODE="0660", RUN+="/usr/lib/udev/gpsd.hotplug"
SUBSYSTEM!="tty", GOTO="kdos_gpsd_end"
ATTRS{idVendor}=="067b", ATTRS{idProduct}=="aaa0", SYMLINK+="gps%n", RUN+="/usr/lib/udev/gpsd.hotplug"
ATTRS{idVendor}=="091e", ATTRS{idProduct}=="0003", SYMLINK+="gps%n", RUN+="/usr/lib/udev/gpsd.hotplug"
ATTRS{idVendor}=="0e8d", ATTRS{idProduct}=="3329", SYMLINK+="gps%n", RUN+="/usr/lib/udev/gpsd.hotplug"
ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0100", SYMLINK+="gps%n", RUN+="/usr/lib/udev/gpsd.hotplug"
ATTRS{idVendor}=="1163", ATTRS{idProduct}=="0200", SYMLINK+="gps%n", RUN+="/usr/lib/udev/gpsd.hotplug"
ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a5", SYMLINK+="gps%n", RUN+="/usr/lib/udev/gpsd.hotplug"
ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a6", SYMLINK+="gps%n", RUN+="/usr/lib/udev/gpsd.hotplug"
ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a7", SYMLINK+="gps%n", RUN+="/usr/lib/udev/gpsd.hotplug"
ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a8", SYMLINK+="gps%n", RUN+="/usr/lib/udev/gpsd.hotplug"
ATTRS{idVendor}=="1546", ATTRS{idProduct}=="01a9", SYMLINK+="gps%n", RUN+="/usr/lib/udev/gpsd.hotplug"
ATTRS{interface}=="Telit Wireless Module Port", ATTRS{bInterfaceNumber}=="06", SYMLINK+="gps%n", RUN+="/usr/lib/udev/gpsd.hotplug"
LABEL="kdos_gpsd_end"
RULES
Programs: cgps, gegps, gps2udp, gpscat, gpscsv, gpsctl, gpsd, gpsdctl, gpsdebuginfo, gpsdecode, gpsfake, gpslogntp, gpsmon, gpspipe, gpsplot, gpsprof, gpsrinex, gpssnmp, gpssubframe, gpxlogger, lcdgps, ntpshmmon, ppscheck, ubxtool, zerk.
Libraries: libgps.so, libgpsdpacket.so.
Directories: /usr/lib/python3.14/site-packages/gps, /usr/share/gpsd, /usr/share/licenses/gpsd, /usr/share/snmp/mibs/gpsd.