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.

50 lines
1.3 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-mqtt2influxdb
  6. PKG_VERSION:=1.3.0
  7. PKG_RELEASE:=2
  8. PYPI_NAME:=mqtt2influxdb
  9. PKG_HASH:=1b4b3b13f5b2f092bcd27846d94e91ad6f05141b2daea5167a7d58b09a782639
  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-mqtt2influxdb
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. SUBMENU:=BigClown
  20. TITLE:=BigCLown MQTT to Influxdb bridge
  21. URL:=https://github.com/bigclownlabs/bch-mqtt2influxdb
  22. DEPENDS:= \
  23. +python3-paho-mqtt \
  24. +python3-yaml \
  25. +python3-influxdb \
  26. +python3-jsonpath-ng \
  27. +python3-schema
  28. endef
  29. define Py3Package/bigclown-mqtt2influxdb/install
  30. $(INSTALL_DIR) $(1)/usr/bin
  31. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  32. $(INSTALL_DIR) $(1)/etc/init.d
  33. $(INSTALL_BIN) ./files/init $(1)/etc/init.d/bigclown-mqtt2influxdb
  34. $(INSTALL_DATA) ./files/config.yml $(1)/etc/bigclown-mqtt2influxdb.yml
  35. endef
  36. define Package/bigclown-mqtt2influxdb/conffiles
  37. /etc/bigclown-mqtt2influxdb.yml
  38. endef
  39. $(eval $(call Py3Package,bigclown-mqtt2influxdb))
  40. $(eval $(call BuildPackage,bigclown-mqtt2influxdb))