diff options
| author | Quintin Hill <stuff@quintin.me.uk> | 2023-04-06 09:13:08 +0100 |
|---|---|---|
| committer | Tianling Shen <cnsztl@gmail.com> | 2023-04-11 17:24:51 +0800 |
| commit | 408502ee0ad3049c2e9f8420166a342c819bc7c7 (patch) | |
| tree | c50cb320789ff4abbd83b736db569d1411f477c4 /lang/python/python-ble2mqtt/Makefile | |
| parent | 3f977e711eb4818df251bea42ff5074863fb93fa (diff) | |
python3-ble2mqtt: add init script
Note that init script won't do much without configuration provided.
The init script comes from the upstream README file.
Also add missing dependency.
Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
Diffstat (limited to 'lang/python/python-ble2mqtt/Makefile')
| -rw-r--r-- | lang/python/python-ble2mqtt/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lang/python/python-ble2mqtt/Makefile b/lang/python/python-ble2mqtt/Makefile index 9fff9beba..7cd5c7eaa 100644 --- a/lang/python/python-ble2mqtt/Makefile +++ b/lang/python/python-ble2mqtt/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-ble2mqtt PKG_VERSION:=0.1.5 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PYPI_NAME:=ble2mqtt PKG_HASH:=0015cae0c36badb48cbd4a1c8b1a8029e45ab0891a95363fe00624c2629b4510 @@ -27,7 +27,7 @@ define Package/python3-ble2mqtt SUBMENU:=Python TITLE:=Bluetooth to MQTT bridge URL:=https://github.com/devbis/ble2mqtt/ - DEPENDS:=+python3-light +python3-aio-mqtt-mod +python3-asyncio +python3-bleak +python3-logging + DEPENDS:=+python3-light +python3-aio-mqtt-mod +python3-asyncio +python3-bleak +python3-logging +python3-uuid endef define Package/python3-ble2mqtt/description @@ -35,6 +35,11 @@ define Package/python3-ble2mqtt/description devices to your smart home endef +define Py3Package/python3-ble2mqtt/install + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/ble2mqtt.init $(1)/etc/init.d/ble2mqtt +endef + $(eval $(call Py3Package,python3-ble2mqtt)) $(eval $(call BuildPackage,python3-ble2mqtt)) $(eval $(call BuildPackage,python3-ble2mqtt-src)) |
