5984162f312afe7fdf2b327982f634540c4b4896
[feed/packages.git] / utils / bigclown / bigclown-gateway / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=bigclown-gateway
8 PKG_VERSION:=1.16.2
9 PKG_RELEASE:=3
10
11 PYPI_NAME:=bcg
12 PKG_HASH:=ce7f27f372551c0beb3f8929af2d779417d9dcd0feaa2fa2dc49e87b1416c536
13
14 PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
15 PKG_LICENSE:=MIT
16 PKG_LICENSE_FILES:=LICENSE
17
18 include ../../../lang/python/pypi.mk
19 include $(INCLUDE_DIR)/package.mk
20 include ../../../lang/python/python3-package.mk
21
22 define Package/bigclown-gateway
23 SECTION:=utils
24 CATEGORY:=Utilities
25 SUBMENU:=BigClown
26 TITLE:=BigCLown gateway
27 URL:=https://github.com/bigclownlabs/bch-gateway
28 DEPENDS:= \
29 +kmod-usb-serial-ftdi \
30 +kmod-usb-acm \
31 +python3-click \
32 +python3-click-log \
33 +python3-paho-mqtt \
34 +python3-pyserial \
35 +python3-yaml \
36 +python3-schema \
37 +python3-appdirs
38 endef
39
40 define Py3Package/bigclown-gateway/install
41 $(INSTALL_DIR) $(1)/usr/bin
42 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
43
44 $(INSTALL_DIR) $(1)/etc/config
45 $(INSTALL_CONF) ./files/config $(1)/etc/config/bigclown-gateway
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/init $(1)/etc/init.d/bigclown-gateway
48 endef
49
50 define Package/bigclown-gateway/conffiles
51 /etc/config/bigclown-gateway
52 endef
53
54 $(eval $(call Py3Package,bigclown-gateway))
55 $(eval $(call BuildPackage,bigclown-gateway))