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.4.0
  7. PKG_RELEASE:=1
  8. PYPI_NAME:=mqtt2influxdb
  9. PKG_HASH:=9fd98d2239c0b9a2482db8e55e3e5a310c5b644aa7d42c57d35ed775adb0101a
  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))