iputils: bump to 20240905
[feed/packages.git] / utils / mqttled / Makefile
1
2 include $(TOPDIR)/rules.mk
3
4 PKG_NAME:=mqttled
5 PKG_VERSION:=0.1.2
6 PKG_RELEASE:=1
7
8 PYPI_NAME:=mqttled
9 PKG_HASH:=eb94af853605f4f1ea3c34b66e2f84f3d9845d795529ae8429feb954e74876d7
10
11 PKG_MAINTAINER:=Tom Grime <tom.grime@gmail.com>
12 PKG_LICENSE:=MIT
13 PKG_LICENSE_FILES:=LICENCE
14
15 include ../../lang/python/pypi.mk
16 include $(INCLUDE_DIR)/package.mk
17 include ../../lang/python/python3-package.mk
18
19 define Package/mqttled
20 SECTION:=utils
21 CATEGORY:=Utilities
22 TITLE:=LED Control from MQTT
23 URL:=https://github.com/trevortrevor/mqttled/
24 DEPENDS:= \
25 +python3-paho-mqtt \
26 +python3-uci \
27 +python3-idna \
28 +python3-jsonpath-ng \
29 +python3-yaml \
30 +python3-schema \
31 +python3-netifaces \
32 +python3-logging \
33 +python3-urllib \
34 +python3-asyncio \
35 +python3-pkg-resources
36
37 endef
38
39 define Package/mqttled/description
40 Exposes the LEDs of your device to an MQTT broker with optional Home Assistant auto discovery
41 endef
42
43 define Py3Package/mqttled/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mqttled $(1)/usr/bin/
46
47 $(INSTALL_DIR) $(1)/etc/init.d
48 $(INSTALL_BIN) ./files/mqttled.init $(1)/etc/init.d/mqttled
49 $(INSTALL_DIR) $(1)/etc/config
50 $(INSTALL_DATA) ./files/mqttled.config $(1)/etc/config/mqttled
51 endef
52
53 define Package/mqttled/conffiles
54 /etc/config/mqttled
55 endef
56
57 $(eval $(call Py3Package,mqttled))
58 $(eval $(call BuildPackage,mqttled))