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
1.9 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=bcrypt
  7. PKG_VERSION:=3.1.7
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=bcrypt-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:= https://files.pythonhosted.org/packages/source/b/$(PKG_NAME)
  11. PKG_HASH:=0b0069c752ec14172c5f78208f1863d7ad6755a6fae6fe76ec2c80d13be41e42
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-bcrypt-$(PKG_VERSION)
  13. PKG_MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
  14. PKG_LICENSE:=Apache-2.0
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_BUILD_DEPENDS:=libffi/host
  17. HOST_PYTHON_PACKAGE_BUILD_DEPENDS:="cffi>=1.1"
  18. HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:="cffi>=1.1"
  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/bcrypt/Default
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. SUBMENU:=Python
  27. TITLE:=Modern password hashing
  28. URL:=https://github.com/pyca/bcrypt/
  29. endef
  30. define Package/python-bcrypt
  31. $(call Package/bcrypt/Default)
  32. DEPENDS:= \
  33. +PACKAGE_python-bcrypt:python \
  34. +PACKAGE_python-bcrypt:python-cffi \
  35. +PACKAGE_python-bcrypt:python-six
  36. VARIANT:=python
  37. endef
  38. define Package/python3-bcrypt
  39. $(call Package/bcrypt/Default)
  40. DEPENDS:= \
  41. +PACKAGE_python3-bcrypt:python3 \
  42. +PACKAGE_python3-bcrypt:python3-cffi \
  43. +PACKAGE_python3-bcrypt:python3-six
  44. VARIANT:=python3
  45. endef
  46. define Package/python-bcrypt/description
  47. Good password hashing for your software and your servers.
  48. endef
  49. define Package/python3-bcrypt/description
  50. $(call Package/python-bcrypt/description)
  51. .
  52. (Variant for Python3)
  53. endef
  54. $(eval $(call PyPackage,python-bcrypt))
  55. $(eval $(call BuildPackage,python-bcrypt))
  56. $(eval $(call BuildPackage,python-bcrypt-src))
  57. $(eval $(call Py3Package,python3-bcrypt))
  58. $(eval $(call BuildPackage,python3-bcrypt))
  59. $(eval $(call BuildPackage,python3-bcrypt-src))