summaryrefslogtreecommitdiff
path: root/bigclown-mqtt2influxdb/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-09-13 17:05:35 +0200
committerKarel Kočí <karel.koci@nic.cz>2018-09-13 17:05:35 +0200
commita927a28b3ac837ade33929b95268d89a7979ff8a (patch)
treef767a2a5753d6ca4e9637d30f129a4bad1427ae9 /bigclown-mqtt2influxdb/Makefile
parentb6e3cde6e911ae1a66b6681ab69498bd340ffaf1 (diff)
downloadopenwrt-personal-pkgs-a927a28b3ac837ade33929b95268d89a7979ff8a.tar.gz
openwrt-personal-pkgs-a927a28b3ac837ade33929b95268d89a7979ff8a.tar.bz2
openwrt-personal-pkgs-a927a28b3ac837ade33929b95268d89a7979ff8a.zip
bigclown-mqtt2influxdb: add configuration
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