You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=kplex
  8. PKG_VERSION:=1.4
  9. PKG_RELEASE=3
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  11. PKG_SOURCE_URL:=http://www.stripydog.com/download
  12. PKG_HASH:=8c2f1ccba4a22cb3b683b73b9dab6ce317e7d858764f1c2c695970f94c726fc1
  13. PKG_LICENSE:=GPL-3.0-or-later
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/kplex
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=NMEA-0183 multiplexer and router
  21. DEPENDS:=+libpthread
  22. URL:=http://www.stripydog.com/kplex/
  23. endef
  24. define Package/kplex/description
  25. Kplex is a program for combining and routing NMEA-0183 data to and from multiple
  26. sources and destinations. kplex inputs and outputs may be any of Serial lines,
  27. Pseudo Terminals (ptys), Network Interfaces and Files.
  28. endef
  29. define Package/kplex/conffiles
  30. /etc/kplex.conf
  31. endef
  32. define Package/kplex/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/kplex $(1)/usr/bin/
  35. $(INSTALL_DIR) $(1)/etc
  36. $(INSTALL_CONF) $(PKG_BUILD_DIR)/kplex.conf.ex $(1)/etc/kplex.conf
  37. $(INSTALL_DIR) $(1)/etc/init.d
  38. $(INSTALL_BIN) ./files/kplex.init $(1)/etc/init.d/kplex
  39. endef
  40. $(eval $(call BuildPackage,kplex))