python-rsa: update to version 4.6 (security fix)
authorJan Pavlinec <jan.pavlinec@nic.cz>
Wed, 2 Sep 2020 11:13:26 +0000 (13:13 +0200)
committerRosen Penev <rosenp@gmail.com>
Thu, 3 Sep 2020 20:35:34 +0000 (13:35 -0700)
Fixes CVE-2020-13757

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
(cherry picked from commit 4e211927f33d50306559f85d89ad3bade4d627ec)

lang/python/python-rsa/Makefile

index 5bd94fc7bce855bfc11a970d8236ec78bc38c05d..bea2f4157b0c3f4e699157331afa547ceebf0ada 100644 (file)
@@ -1,23 +1,21 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rsa
-PKG_VERSION:=4.0
+PKG_VERSION:=4.6
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/r/rsa
-PKG_HASH:=1a836406405730121ae9823e19c6e806c62bbad73f890574fff50efa4122c487
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-rsa-$(PKG_VERSION)
+PYPI_NAME:=$(PKG_NAME)
+PKG_HASH:=109ea5a66744dd859bf16fe904b8d8b627adafb9408753161e766a92e7d681fa
 
 PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
 PKG_LICENSE:=MIT
+PKG_CPE_ID:=cpe:/a:python-rsa_project:python-rsa
 
+include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
 include ../python-package.mk
 include ../python3-package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
-
 define Package/python-rsa/Default
   SUBMENU:=Python
   SECTION:=lang