mirror of
https://github.com/openwrt/packages.git
synced 2025-01-31 01:22:13 +00:00
8790d3a1fe
Sierra Wireless modems need the string '$GPS_START' to be sent to the GPS tty device as only then the modem firmware starts emitting NMEA-0183 sentences. Add an option 'sierragpsstart' to kplex' serial driver to support that quirk as kplex can be very useful to spread GPS data over the network while also supplying 'ugps' using a PTY, allowing for correct system time to be set automatically on boot up from GPS. This patch is also PR'ed at the upstream project: https://github.com/stripydog/kplex/pull/54 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
#
|
|
# Copyright (C) 2015 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=kplex
|
|
PKG_VERSION:=1.4
|
|
PKG_RELEASE=3
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
|
PKG_SOURCE_URL:=http://www.stripydog.com/download
|
|
PKG_HASH:=8c2f1ccba4a22cb3b683b73b9dab6ce317e7d858764f1c2c695970f94c726fc1
|
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/kplex
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=NMEA-0183 multiplexer and router
|
|
DEPENDS:=+libpthread
|
|
URL:=http://www.stripydog.com/kplex/
|
|
endef
|
|
|
|
define Package/kplex/description
|
|
Kplex is a program for combining and routing NMEA-0183 data to and from multiple
|
|
sources and destinations. kplex inputs and outputs may be any of Serial lines,
|
|
Pseudo Terminals (ptys), Network Interfaces and Files.
|
|
endef
|
|
|
|
define Package/kplex/conffiles
|
|
/etc/kplex.conf
|
|
endef
|
|
|
|
define Package/kplex/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/kplex $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/etc
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/kplex.conf.ex $(1)/etc/kplex.conf
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/kplex.init $(1)/etc/init.d/kplex
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,kplex))
|