gpsd: add control socket '/var/run/gpsd.sock' on startup
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 28 Jan 2025 09:47:21 +0000 (10:47 +0100)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Fri, 28 Feb 2025 07:13:00 +0000 (08:13 +0100)
This change makes it possible to add new gps device without restarting the
'gpsd' service by using the 'gpsdctl' command.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
utils/gpsd/Makefile
utils/gpsd/files/gpsd.init

index 928c4a06e452594fc1a1381a6435701eb078c04a..91083514cc19e4218e7735021e284192df437d7f 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gpsd
 PKG_VERSION:=3.25
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
@@ -45,6 +45,7 @@ define Package/gpsd
   SECTION:=utils
   CATEGORY:=Utilities
   TITLE:=An interface daemon for GPS receivers
+  DEPENDS+= +gpsd-utils
 endef
 
 define Package/gpsd/conffiles
index 3271d43fdc1cfaebf26c3d8238ce2e2487a77c6a..479eeb2c8c20a32a357521e171815da6fb169714 100644 (file)
@@ -29,6 +29,7 @@ gpsd_instance()
 
        [ "$listen_globally" -ne 0 ] && procd_append_param command -G
        procd_append_param command -S "$port"
+       procd_append_param command -F /var/run/gpsd.sock
        procd_append_param command "$device"
        procd_set_param respawn