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.

46 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=mbusd
  3. PKG_VERSION:=0.4.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE_URL:=https://codeload.github.com/3cky/mbusd/tar.gz/v$(PKG_VERSION)?
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  7. PKG_HASH:=8458afc455a28c8f798cadd3982f9e03496a494a2269e31e8255a6ca273a6898
  8. PKG_LICENSE:=BSD-3-Clause
  9. PKG_LICENSE_FILES:=LICENSE
  10. PKG_MAINTAINER:=Marcin Jurkowski <marcin1j@gmail.com>
  11. PKG_BUILD_PARALLEL:=1
  12. PKG_INSTALL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. define Package/mbusd
  16. SECTION:=net
  17. CATEGORY:=Network
  18. TITLE:=Modbus TCP gateway
  19. URL:=https://github.com/3cky/mbusd
  20. endef
  21. define Package/mbusd/description
  22. Mbusd is open-source Modbus TCP to Modbus RTU (RS-232/485) gateway.
  23. It presents a network of RTU slaves as single TCP slave.
  24. That is a TCP-Slave (or server) which acts as a RTU-master to get
  25. data from Modbus RTU-slave devices.
  26. endef
  27. define Package/mbusd/install
  28. $(INSTALL_DIR) $(1)/usr/bin
  29. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mbusd $(1)/usr/bin
  30. $(INSTALL_DIR) $(1)/etc/config
  31. $(INSTALL_DATA) ./files/mbusd.conf $(1)/etc/config/mbusd
  32. $(INSTALL_DIR) $(1)/etc/init.d
  33. $(INSTALL_BIN) ./files/mbusd.init $(1)/etc/init.d/mbusd
  34. endef
  35. $(eval $(call BuildPackage,mbusd))