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.

77 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2009-2015, 2017-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-crypto
  9. PKG_VERSION:=2.6.1
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=pycrypto-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycrypto
  13. PKG_HASH:=f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-crypto-$(PKG_VERSION)
  15. PKG_LICENSE:=Public Domain
  16. PKG_LICENSE_FILES:=COPYRIGHT
  17. PKG_CPE_ID:=cpe:/a:dlitz:pycrypto
  18. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  19. include $(INCLUDE_DIR)/package.mk
  20. include ../python-package.mk
  21. include ../python3-package.mk
  22. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  23. PYTHON_PKG_SETUP_ARGS:=
  24. PYTHON_PKG_SETUP_VARS:= \
  25. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  26. PYTHON3_PKG_SETUP_ARGS:=
  27. PYTHON3_PKG_SETUP_VARS:= \
  28. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  29. define Package/python-crypto/Default
  30. SECTION:=lang-python
  31. CATEGORY:=Languages
  32. SUBMENU:=Python
  33. TITLE:=Python Cryptography Toolkit
  34. URL:=https://www.dlitz.net/software/pycrypto/
  35. DEPENDS:=+libgmp
  36. endef
  37. define Package/python-crypto
  38. $(call Package/python-crypto/Default)
  39. DEPENDS+=+PACKAGE_python-crypto:python
  40. VARIANT:=python
  41. endef
  42. define Package/python3-crypto
  43. $(call Package/python-crypto/Default)
  44. DEPENDS+=+PACKAGE_python3-crypto:python3
  45. VARIANT:=python3
  46. endef
  47. define Package/python-crypto/description
  48. A collection of both secure hash functions (such as MD5 and SHA),
  49. and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal, etc.).
  50. endef
  51. define Package/python3-crypto/description
  52. $(call Package/python-crypto/description)
  53. .
  54. (Variant for Python3)
  55. endef
  56. $(eval $(call PyPackage,python-crypto))
  57. $(eval $(call BuildPackage,python-crypto))
  58. $(eval $(call BuildPackage,python-crypto-src))
  59. $(eval $(call Py3Package,python3-crypto))
  60. $(eval $(call BuildPackage,python3-crypto))
  61. $(eval $(call BuildPackage,python3-crypto-src))