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.

72 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_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyopenssl-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  22. define Package/python-pyopenssl/Default
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=OpenSSL wrapper
  27. URL:=https://pyopenssl.org/
  28. endef
  29. define Package/python-pyopenssl
  30. $(call Package/python-pyopenssl/Default)
  31. DEPENDS:= \
  32. +PACKAGE_python-pyopenssl:python-light \
  33. +PACKAGE_python-pyopenssl:python-cryptography \
  34. +PACKAGE_python-pyopenssl:python-six
  35. VARIANT:=python
  36. endef
  37. define Package/python3-pyopenssl
  38. $(call Package/python-pyopenssl/Default)
  39. DEPENDS:= \
  40. +PACKAGE_python3-pyopenssl:python3-light \
  41. +PACKAGE_python3-pyopenssl:python3-cryptography \
  42. +PACKAGE_python3-pyopenssl:python3-six
  43. VARIANT:=python3
  44. endef
  45. define Package/python-pyopenssl/description
  46. Python wrapper module around the OpenSSL library
  47. endef
  48. define Package/python3-pyopenssl/description
  49. $(call Package/python-pyopenssl/description)
  50. .
  51. (Variant for Python3).
  52. endef
  53. $(eval $(call PyPackage,python-pyopenssl))
  54. $(eval $(call BuildPackage,python-pyopenssl))
  55. $(eval $(call BuildPackage,python-pyopenssl-src))
  56. $(eval $(call Py3Package,python3-pyopenssl))
  57. $(eval $(call BuildPackage,python3-pyopenssl))
  58. $(eval $(call BuildPackage,python3-pyopenssl-src))