2021-02-01 10:38:26 +01:00
|
|
|
#
|
|
|
|
# Copyright (C) 2018-2020 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=python-ubus
|
|
|
|
PKG_VERSION:=0.1.1
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2021-02-01 10:38:26 +01:00
|
|
|
|
|
|
|
PYPI_NAME:=ubus
|
|
|
|
PKG_HASH:=7e57bda989bc35b48c7075d03ec2818226e722bbf1bde138d7e7ea26d462682a
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Erik Larsson <who+openwrt@cnackers.org>
|
|
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
include ../pypi.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include ../python3-package.mk
|
|
|
|
|
|
|
|
define Package/python3-ubus
|
|
|
|
SUBMENU:=Python
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=Python3 ubus
|
|
|
|
URL:=https://gitlab.nic.cz/turris/python-ubus/
|
|
|
|
DEPENDS:=+libubus +libblobmsg-json +python3-light
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python3-ubus/description
|
|
|
|
Python bindings for ubus.
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call Py3Package,python3-ubus))
|
|
|
|
$(eval $(call BuildPackage,python3-ubus))
|
|
|
|
$(eval $(call BuildPackage,python3-ubus-src))
|