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.

70 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2015-2017 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:=pyOpenSSL
  9. PKG_VERSION:=17.2.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/b0/9e/7088f6165c40c46416aff434eb806c1d64ad6ec6dbc201f5ad4d0484704e
  13. PKG_HASH:=5d617ce36b07c51f330aa63b83bf7f25c40a0e95958876d54d1982f8c91b4834
  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. $(call include_mk, python-package.mk)
  20. $(call include_mk, 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. URL:=https://github.com/pyca/pyopenssl
  27. endef
  28. define Package/python-pyopenssl
  29. $(call Package/python-pyopenssl/Default)
  30. TITLE:=python-pyopenssl
  31. VARIANT:=python
  32. DEPENDS:= \
  33. +PACKAGE_python-pyopenssl:python-light \
  34. +PACKAGE_python-pyopenssl:python-cryptography \
  35. +PACKAGE_python-pyopenssl:python-six
  36. endef
  37. define Package/python3-pyopenssl
  38. $(call Package/python-pyopenssl/Default)
  39. TITLE:=python3-pyopenssl
  40. VARIANT:=python3
  41. DEPENDS:= \
  42. +PACKAGE_python3-pyopenssl:python3-light \
  43. +PACKAGE_python3-pyopenssl:python3-cryptography \
  44. +PACKAGE_python3-pyopenssl:python3-six
  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 Py3Package,python3-pyopenssl))
  57. $(eval $(call BuildPackage,python3-pyopenssl))