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.

56 lines
1.4 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=bigclown-gateway
  6. PKG_VERSION:=1.16.2
  7. PKG_RELEASE:=2
  8. PYPI_NAME:=bcg
  9. PKG_HASH:=ce7f27f372551c0beb3f8929af2d779417d9dcd0feaa2fa2dc49e87b1416c536
  10. PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
  11. PKG_LICENSE:=MIT
  12. PKG_LICENSE_FILES:=LICENSE
  13. include ../../../lang/python/pypi.mk
  14. include $(INCLUDE_DIR)/package.mk
  15. include ../../../lang/python/python3-package.mk
  16. define Package/bigclown-gateway
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. SUBMENU:=BigClown
  20. TITLE:=BigCLown gateway
  21. URL:=https://github.com/bigclownlabs/bch-gateway
  22. DEPENDS:= \
  23. +kmod-usb-serial-ftdi \
  24. +kmod-usb-acm \
  25. +python3-click \
  26. +python3-click-log \
  27. +python3-paho-mqtt \
  28. +python3-pyserial \
  29. +python3-yaml \
  30. +python3-simplejson \
  31. +python3-schema \
  32. +python3-appdirs
  33. endef
  34. define Py3Package/bigclown-gateway/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  37. $(INSTALL_DIR) $(1)/etc/config
  38. $(INSTALL_CONF) ./files/config $(1)/etc/config/bigclown-gateway
  39. $(INSTALL_DIR) $(1)/etc/init.d
  40. $(INSTALL_BIN) ./files/init $(1)/etc/init.d/bigclown-gateway
  41. endef
  42. define Package/bigclown-gateway/conffiles
  43. /etc/config/bigclown-gateway
  44. endef
  45. $(eval $(call Py3Package,bigclown-gateway))
  46. $(eval $(call BuildPackage,bigclown-gateway))