From 40764118789f79f79e943a95b805db4e929ec5d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 12 Sep 2018 17:18:42 +0200 Subject: Tweak bigclown packages --- bigclown-mqtt2influxdb/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bigclown-mqtt2influxdb/Makefile (limited to 'bigclown-mqtt2influxdb/Makefile') diff --git a/bigclown-mqtt2influxdb/Makefile b/bigclown-mqtt2influxdb/Makefile new file mode 100644 index 0000000..760751f --- /dev/null +++ b/bigclown-mqtt2influxdb/Makefile @@ -0,0 +1,28 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=bigclown-mqtt2influxdb +PKG_RELEASE:=1 +PKG_SOURCE_URL:=https://github.com/bigclownlabs/bch-mqtt2influxdb.git +PKG_MAINTAINER:=Karel Kočí + +include $(TOPDIR)/package/autopkg-tag.mk +include $(INCLUDE_DIR)/package.mk +$(call include_mk, python3-package.mk) + +define Package/$(PKG_NAME) + TITLE:=BigCLown MQTT to Influxdb bridge + DEPENDS:=+python3 +python3-paho-mqtt +endef + +define Py3Package/$(PKG_NAME)/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) ./files/mqtt2influxdb $(1)/usr/bin/mqtt2influxdb +endef + +define Build/Compile + sed -i 's/@@VERSION@@/$(PKG_VERSION)/' "$(PKG_BUILD_DIR)/setup.py" + $(call Build/Compile/Py3Mod,,install --prefix="/usr" --root=$(PKG_INSTALL_DIR)) +endef + +$(eval $(call Py3Package,$(PKG_NAME))) +$(eval $(call BuildPackage,$(PKG_NAME))) -- cgit v1.2.3 From 799af4541927be9b3b190c0a6d0c97e0bb2fc943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 12 Sep 2018 22:15:18 +0200 Subject: Try to fix more bigclown packages --- bigclown-mqtt2influxdb/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bigclown-mqtt2influxdb/Makefile') diff --git a/bigclown-mqtt2influxdb/Makefile b/bigclown-mqtt2influxdb/Makefile index 760751f..678461f 100644 --- a/bigclown-mqtt2influxdb/Makefile +++ b/bigclown-mqtt2influxdb/Makefile @@ -11,7 +11,7 @@ $(call include_mk, python3-package.mk) define Package/$(PKG_NAME) TITLE:=BigCLown MQTT to Influxdb bridge - DEPENDS:=+python3 +python3-paho-mqtt + DEPENDS:=+python3 +python3-paho-mqtt +python3-influxdb endef define Py3Package/$(PKG_NAME)/install -- cgit v1.2.3 From b126c613959c119f6a57123bd921c2a5395767a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 13 Sep 2018 00:32:43 +0200 Subject: Add python3-jsonpath-ng --- bigclown-mqtt2influxdb/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bigclown-mqtt2influxdb/Makefile') diff --git a/bigclown-mqtt2influxdb/Makefile b/bigclown-mqtt2influxdb/Makefile index 678461f..d8b6405 100644 --- a/bigclown-mqtt2influxdb/Makefile +++ b/bigclown-mqtt2influxdb/Makefile @@ -11,7 +11,7 @@ $(call include_mk, python3-package.mk) define Package/$(PKG_NAME) TITLE:=BigCLown MQTT to Influxdb bridge - DEPENDS:=+python3 +python3-paho-mqtt +python3-influxdb + DEPENDS:=+python3 +python3-paho-mqtt +python3-influxdb +python3-jsonpath-ng endef define Py3Package/$(PKG_NAME)/install -- cgit v1.2.3 From abd0770f558ba71fbea2f56b44caebce0ae134be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 13 Sep 2018 10:54:43 +0200 Subject: bigclown-mqtt2influxdb: add dependencies --- bigclown-mqtt2influxdb/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bigclown-mqtt2influxdb/Makefile') diff --git a/bigclown-mqtt2influxdb/Makefile b/bigclown-mqtt2influxdb/Makefile index d8b6405..0fe33dd 100644 --- a/bigclown-mqtt2influxdb/Makefile +++ b/bigclown-mqtt2influxdb/Makefile @@ -11,7 +11,7 @@ $(call include_mk, python3-package.mk) define Package/$(PKG_NAME) TITLE:=BigCLown MQTT to Influxdb bridge - DEPENDS:=+python3 +python3-paho-mqtt +python3-influxdb +python3-jsonpath-ng + DEPENDS:=+python3 +python3-paho-mqtt +python3-pyyaml +python3-influxdb +python3-jsonpath-ng +python3-schema endef define Py3Package/$(PKG_NAME)/install -- cgit v1.2.3 From a927a28b3ac837ade33929b95268d89a7979ff8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 13 Sep 2018 17:05:35 +0200 Subject: bigclown-mqtt2influxdb: add configuration --- bigclown-mqtt2influxdb/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bigclown-mqtt2influxdb/Makefile') diff --git a/bigclown-mqtt2influxdb/Makefile b/bigclown-mqtt2influxdb/Makefile index 0fe33dd..fd606f0 100644 --- a/bigclown-mqtt2influxdb/Makefile +++ b/bigclown-mqtt2influxdb/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bigclown-mqtt2influxdb -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_URL:=https://github.com/bigclownlabs/bch-mqtt2influxdb.git PKG_MAINTAINER:=Karel Kočí @@ -17,6 +17,13 @@ endef define Py3Package/$(PKG_NAME)/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) ./files/mqtt2influxdb $(1)/usr/bin/mqtt2influxdb + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/init $(1)/etc/init.d/bc-mqtt2influxdb + $(INSTALL_DATA) ./files/config.yml $(1)/etc/bc-mqtt2influxdb.yml +endef + +define Package/$(PKG_NAME)/conffiles +/etc/bc-mqtt2influxdb.yml endef define Build/Compile -- cgit v1.2.3 From e48d2180906f69009fc830b5a1f5696c6e6ab88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 30 Sep 2018 08:02:09 +0200 Subject: bigclown: configure init script respawn --- bigclown-mqtt2influxdb/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bigclown-mqtt2influxdb/Makefile') diff --git a/bigclown-mqtt2influxdb/Makefile b/bigclown-mqtt2influxdb/Makefile index fd606f0..c77bbbe 100644 --- a/bigclown-mqtt2influxdb/Makefile +++ b/bigclown-mqtt2influxdb/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bigclown-mqtt2influxdb -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_URL:=https://github.com/bigclownlabs/bch-mqtt2influxdb.git PKG_MAINTAINER:=Karel Kočí -- cgit v1.2.3