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.

73 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2015-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-pyopenssl
  9. PKG_VERSION:=19.0.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=pyOpenSSL-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pyOpenSSL
  13. PKG_HASH:=aeca66338f6de19d1aa46ed634c3b9ae519a64b458f8468aec688e7e3c20f200
  14. PKG_LICENSE:=Apache-2.0
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
  17. PKG_CPE_ID:=cpe:/a:pyopenssl_project:pyopenssl
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyopenssl-$(PKG_VERSION)
  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. define Package/python-pyopenssl/Default
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. SUBMENU:=Python
  27. TITLE:=OpenSSL wrapper
  28. URL:=https://pyopenssl.org/
  29. endef
  30. define Package/python-pyopenssl
  31. $(call Package/python-pyopenssl/Default)
  32. DEPENDS:= \
  33. +PACKAGE_python-pyopenssl:python-light \
  34. +PACKAGE_python-pyopenssl:python-cryptography \
  35. +PACKAGE_python-pyopenssl:python-six
  36. VARIANT:=python
  37. endef
  38. define Package/python3-pyopenssl
  39. $(call Package/python-pyopenssl/Default)
  40. DEPENDS:= \
  41. +PACKAGE_python3-pyopenssl:python3-light \
  42. +PACKAGE_python3-pyopenssl:python3-cryptography \
  43. +PACKAGE_python3-pyopenssl:python3-six
  44. VARIANT:=python3
  45. endef
  46. define Package/python-pyopenssl/description
  47. Python wrapper module around the OpenSSL library
  48. endef
  49. define Package/python3-pyopenssl/description
  50. $(call Package/python-pyopenssl/description)
  51. .
  52. (Variant for Python3).
  53. endef
  54. $(eval $(call PyPackage,python-pyopenssl))
  55. $(eval $(call BuildPackage,python-pyopenssl))
  56. $(eval $(call BuildPackage,python-pyopenssl-src))
  57. $(eval $(call Py3Package,python3-pyopenssl))
  58. $(eval $(call BuildPackage,python3-pyopenssl))
  59. $(eval $(call BuildPackage,python3-pyopenssl-src))