You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=rsa
  3. PKG_VERSION:=4.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/r/rsa
  7. PKG_HASH:=1a836406405730121ae9823e19c6e806c62bbad73f890574fff50efa4122c487
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-rsa-$(PKG_VERSION)
  9. PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
  10. PKG_LICENSE:=MIT
  11. include $(INCLUDE_DIR)/package.mk
  12. include ../python-package.mk
  13. include ../python3-package.mk
  14. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  15. define Package/python-rsa/Default
  16. SUBMENU:=Python
  17. SECTION:=lang
  18. CATEGORY:=Languages
  19. TITLE:=rsa
  20. URL:=https://stuvel.eu/rsa
  21. endef
  22. define Package/python-rsa
  23. $(call Package/python-rsa/Default)
  24. DEPENDS:=+PACKAGE_python-rsa:python +PACKAGE_python-rsa:python-pyasn1
  25. VARIANT:=python
  26. endef
  27. define Package/python3-rsa
  28. $(call Package/python-rsa/Default)
  29. DEPENDS:=+PACKAGE_python3-rsa:python3 +PACKAGE_python3-rsa:python3-pyasn1
  30. VARIANT:=python3
  31. endef
  32. define Package/python-rsa/description
  33. Is a pure-Python RSA implementation. It supports encryption and decryption,
  34. signing and verifying signatures, and key generation according to PKCS#1 version 1.5.
  35. It can be used as a Python library as well as on the commandline.
  36. endef
  37. define Package/python3-rsa/description
  38. $(call Package/python-rsa/description)
  39. .
  40. (Variant for Python3)
  41. endef
  42. $(eval $(call PyPackage,python-rsa))
  43. $(eval $(call BuildPackage,python-rsa))
  44. $(eval $(call BuildPackage,python-rsa-src))
  45. $(eval $(call Py3Package,python3-rsa))
  46. $(eval $(call BuildPackage,python3-rsa))
  47. $(eval $(call BuildPackage,python3-rsa-src))