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.

42 lines
1.2 KiB

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