gpsd: Add a new package gpsd-utils to add gpsdctl

gpsd-utils include management tools for GPS daemon - and this commmit
particularly introduces gpsdctl to add/remove device from the GPS
daemon's device list over control socket.

Signed-off-by: ekathva advaita <ekathva@hotmail.com>
This commit is contained in:
ekathva advaita 2021-05-21 12:06:28 +03:00 committed by Polynomdivision
parent a70b6d87c8
commit a86c3666f3
1 changed files with 19 additions and 1 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=gpsd
PKG_VERSION:=3.21
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
@ -70,6 +70,18 @@ define Package/gpsd-clients/description
testing the GPS daemon.
endef
define Package/gpsd-utils
$(call Package/gpsd/Default)
SECTION:=utils
CATEGORY:=Utilities
TITLE:=GPS daemon utils
endef
define Package/gpsd-utils/description
$(call Package/gpsd/Default/description)
This package contains utilities for interacting with GPS daemon.
endef
define Package/libgps
$(call Package/gpsd/Default)
SECTION:=libs
@ -137,6 +149,11 @@ define Package/gpsd-clients/install
$(1)/usr/bin/
endef
define Package/gpsd-utils/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsdctl $(1)/usr/sbin/
endef
define Package/libgps/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.so.* $(1)/usr/lib/
@ -144,4 +161,5 @@ endef
$(eval $(call BuildPackage,gpsd))
$(eval $(call BuildPackage,gpsd-clients))
$(eval $(call BuildPackage,gpsd-utils))
$(eval $(call BuildPackage,libgps))