Browse Source

bigclown: use pypi.mk

Convert bigclown packages to use pypi.mk and pypi in general instead of
github.

This allows us to remove version replacement as that is already done in
pypi archive.

Updated dependencies to also contain proxy dependencies that are listed
in upstream.

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
lilik-openwrt-22.03
Karel Kočí 5 years ago
parent
commit
a7668c583b
No known key found for this signature in database GPG Key ID: D83BD732AC2BD828
4 changed files with 58 additions and 60 deletions
  1. +18
    -15
      utils/bigclown/bigclown-control-tool/Makefile
  2. +7
    -12
      utils/bigclown/bigclown-firmware-tool/Makefile
  3. +14
    -16
      utils/bigclown/bigclown-gateway/Makefile
  4. +19
    -17
      utils/bigclown/bigclown-mqtt2influxdb/Makefile

+ 18
- 15
utils/bigclown/bigclown-control-tool/Makefile View File

@ -8,29 +8,32 @@ PKG_NAME:=bigclown-control-tool
PKG_VERSION:=0.2.0 PKG_VERSION:=0.2.0
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE_URL:=https://codeload.github.com/bigclownlabs/bch-control-tool/tar.gz/v$(PKG_VERSION)?
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_HASH:=c79a76e0940958e4ddcf51e57fadfb127f568b6c1ceb02033c3630bab2dee612
PKG_LICENSE:=MIT
PYPI_NAME:=bch
PKG_HASH:=4cd73b92757fce7275a4744baed411c867af2e671c521b90d6690b2320851d58
PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz> PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
PKG_BUILD_DIR:=$(BUILD_DIR)/bch-control-tool-$(PKG_VERSION)
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
include ../../../lang/python/pypi.mk
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include ../../../lang/python/python3-package.mk include ../../../lang/python/python3-package.mk
define Package/$(PKG_NAME)
define Package/bigclown-control-tool
SECTION:=utils SECTION:=utils
CATEGORY:=Utilities CATEGORY:=Utilities
SUBMENU:=BigClown SUBMENU:=BigClown
URL:=https://github.com/bigclownlabs/bch-control-tool
TITLE:=BigCLown control tool TITLE:=BigCLown control tool
DEPENDS:=+python3-click-log +python3-paho-mqtt +python3-pyserial +python3-yaml +python3-simplejson
endef
define Build/Compile
sed -i 's/@@VERSION@@/$(PKG_VERSION)/' "$(PKG_BUILD_DIR)/setup.py"
$(call Py3Build/Compile/Default)
URL:=https://github.com/bigclownlabs/bch-control-tool
DEPENDS:=\
+python3-click \
+python3-click-log \
+python3-paho-mqtt \
+python3-pyserial \
+python3-yaml \
+python3-simplejson
VARIANT:=python3
endef endef
$(eval $(call Py3Package,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call Py3Package,bigclown-control-tool))
$(eval $(call BuildPackage,bigclown-control-tool))

+ 7
- 12
utils/bigclown/bigclown-firmware-tool/Makefile View File

@ -8,19 +8,18 @@ PKG_NAME:=bigclown-firmware-tool
PKG_VERSION:=1.5.1 PKG_VERSION:=1.5.1
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/bigclownlabs/bch-firmware-tool/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=e37d2a9ecb50cef9274801092fe1345e9bdf092cdc0da4747edb80d262fc2905
PKG_BUILD_DIR:=$(BUILD_DIR)/bch-firmware-tool-$(PKG_VERSION)
PYPI_NAME:=bcf
PKG_HASH:=50b0351b97e6b1b1d4cb4703491daa6102e7e5b3b750b47fa35182d9eb39ab9c
PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz> PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
PKG_LICENSE:=MIT PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
include ../../../lang/python/pypi.mk
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include ../../../lang/python/python3-package.mk include ../../../lang/python/python3-package.mk
define Package/$(PKG_NAME)
define Package/bigclown-firmware-tool
SECTION:=utils SECTION:=utils
CATEGORY:=Utilities CATEGORY:=Utilities
SUBMENU:=BigClown SUBMENU:=BigClown
@ -35,12 +34,8 @@ define Package/$(PKG_NAME)
+python3-requests \ +python3-requests \
+python3-click \ +python3-click \
+python3-intelhex +python3-intelhex
VARIANT:=python3
endef endef
define Build/Compile
sed -i 's/@@VERSION@@/$(PKG_VERSION)/' "$(PKG_BUILD_DIR)/setup.py"
$(call Py3Build/Compile/Default)
endef
$(eval $(call Py3Package,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call Py3Package,bigclown-firmware-tool))
$(eval $(call BuildPackage,bigclown-firmware-tool))

+ 14
- 16
utils/bigclown/bigclown-gateway/Makefile View File

@ -8,25 +8,27 @@ PKG_NAME:=bigclown-gateway
PKG_VERSION:=1.16.2 PKG_VERSION:=1.16.2
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE_URL:=https://codeload.github.com/bigclownlabs/bch-gateway/tar.gz/v$(PKG_VERSION)?
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_HASH:=9d3208bf4cffec507d992485104fcbba2b9bc02cf7b290dfe13f98e5916ee1ca
PKG_LICENSE:=MIT
PYPI_NAME:=bcg
PKG_HASH:=ce7f27f372551c0beb3f8929af2d779417d9dcd0feaa2fa2dc49e87b1416c536
PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz> PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
PKG_BUILD_DIR:=$(BUILD_DIR)/bch-gateway-$(PKG_VERSION)
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
include ../../../lang/python/pypi.mk
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include ../../../lang/python/python3-package.mk include ../../../lang/python/python3-package.mk
define Package/$(PKG_NAME)
define Package/bigclown-gateway
SECTION:=utils SECTION:=utils
CATEGORY:=Utilities CATEGORY:=Utilities
SUBMENU:=BigClown SUBMENU:=BigClown
URL:=https://github.com/bigclownlabs/bch-gateway
TITLE:=BigCLown gateway TITLE:=BigCLown gateway
URL:=https://github.com/bigclownlabs/bch-gateway
DEPENDS:= \ DEPENDS:= \
+kmod-usb-serial-ftdi \ +kmod-usb-serial-ftdi \
+kmod-usb-acm \ +kmod-usb-acm \
+python3-click \
+python3-click-log \ +python3-click-log \
+python3-paho-mqtt \ +python3-paho-mqtt \
+python3-pyserial \ +python3-pyserial \
@ -34,9 +36,10 @@ define Package/$(PKG_NAME)
+python3-simplejson \ +python3-simplejson \
+python3-schema \ +python3-schema \
+python3-appdirs +python3-appdirs
VARIANT:=python3
endef endef
define Py3Package/$(PKG_NAME)/install
define Py3Package/bigclown-gateway/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
@ -46,14 +49,9 @@ define Py3Package/$(PKG_NAME)/install
$(INSTALL_BIN) ./files/init $(1)/etc/init.d/bigclown-gateway $(INSTALL_BIN) ./files/init $(1)/etc/init.d/bigclown-gateway
endef endef
define Package/$(PKG_NAME)/conffiles
define Package/bigclown-gateway/conffiles
/etc/config/bigclown-gateway /etc/config/bigclown-gateway
endef endef
define Build/Compile
sed -i 's/@@VERSION@@/$(PKG_VERSION)/' "$(PKG_BUILD_DIR)/setup.py"
$(call Py3Build/Compile/Default)
endef
$(eval $(call Py3Package,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call Py3Package,bigclown-gateway))
$(eval $(call BuildPackage,bigclown-gateway))

+ 19
- 17
utils/bigclown/bigclown-mqtt2influxdb/Makefile View File

@ -8,26 +8,33 @@ PKG_NAME:=bigclown-mqtt2influxdb
PKG_VERSION:=1.3.0 PKG_VERSION:=1.3.0
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE_URL:=https://codeload.github.com/bigclownlabs/bch-mqtt2influxdb/tar.gz/v$(PKG_VERSION)?
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_HASH:=56e1de1f83cb2c5fd5f280c29917c5c25021c36311075c12414733dd0d701697
PKG_LICENSE:=MIT
PYPI_NAME:=mqtt2influxdb
PKG_HASH:=1b4b3b13f5b2f092bcd27846d94e91ad6f05141b2daea5167a7d58b09a782639
PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz> PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
PKG_BUILD_DIR:=$(BUILD_DIR)/bch-mqtt2influxdb-$(PKG_VERSION)
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
include ../../../lang/python/pypi.mk
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include ../../../lang/python/python3-package.mk include ../../../lang/python/python3-package.mk
define Package/$(PKG_NAME)
define Package/bigclown-mqtt2influxdb
SECTION:=utils SECTION:=utils
CATEGORY:=Utilities CATEGORY:=Utilities
SUBMENU:=BigClown SUBMENU:=BigClown
URL:=https://github.com/bigclownlabs/bch-mqtt2influxdb
TITLE:=BigCLown MQTT to Influxdb bridge TITLE:=BigCLown MQTT to Influxdb bridge
DEPENDS:=+python3-paho-mqtt +python3-yaml +python3-influxdb +python3-jsonpath-ng +python3-schema
URL:=https://github.com/bigclownlabs/bch-mqtt2influxdb
DEPENDS:= \
+python3-paho-mqtt \
+python3-yaml \
+python3-influxdb \
+python3-jsonpath-ng \
+python3-schema
VARIANT:=python3
endef endef
define Py3Package/$(PKG_NAME)/install
define Py3Package/bigclown-mqtt2influxdb/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
@ -36,14 +43,9 @@ define Py3Package/$(PKG_NAME)/install
$(INSTALL_DATA) ./files/config.yml $(1)/etc/bigclown-mqtt2influxdb.yml $(INSTALL_DATA) ./files/config.yml $(1)/etc/bigclown-mqtt2influxdb.yml
endef endef
define Package/$(PKG_NAME)/conffiles
define Package/bigclown-mqtt2influxdb/conffiles
/etc/bigclown-mqtt2influxdb.yml /etc/bigclown-mqtt2influxdb.yml
endef endef
define Build/Compile
sed -i 's/@@VERSION@@/$(PKG_VERSION)/' "$(PKG_BUILD_DIR)/setup.py"
$(call Py3Build/Compile/Default)
endef
$(eval $(call Py3Package,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call Py3Package,bigclown-mqtt2influxdb))
$(eval $(call BuildPackage,bigclown-mqtt2influxdb))

Loading…
Cancel
Save