summaryrefslogtreecommitdiff
path: root/bigclown-mqtt2influxdb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bigclown-mqtt2influxdb/Makefile')
-rw-r--r--bigclown-mqtt2influxdb/Makefile9
1 files changed, 8 insertions, 1 deletions
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čí <cynerd@email.cz>
@@ -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