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.

68 lines
1.8 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.6
  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:=44636759d222baa62806bbceb20e96f75a015a6381690d1bc2eda91c01ec02ea
  12. PKG_LICENSE:=Apache-2.0
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_MAINTAINER:=Daniel Dickinson <cshored@thecshore.com>
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-bcrypt-$(PKG_VERSION)
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python-package.mk
  18. include ../python3-package.mk
  19. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  20. define Package/bcrypt/Default
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. URL:=https://github.com/pyca/bcrypt/
  25. endef
  26. define Package/python-bcrypt
  27. $(call Package/bcrypt/Default)
  28. TITLE:=BCrypt
  29. DEPENDS+=+PACKAGE_python-bcrypt:python +PACKAGE_python-bcrypt:python-cffi \
  30. +PACKAGE_python-bcrypt:python-six
  31. VARIANT:=python
  32. endef
  33. define Package/python3-bcrypt
  34. $(call Package/bcrypt/Default)
  35. TITLE:=BCrypt
  36. DEPENDS+=+PACKAGE_python3-bcrypt:python3 +PACKAGE_python3-bcrypt:python3-cffi \
  37. +PACKAGE_python3-bcrypt:python3-six
  38. VARIANT:=python3
  39. endef
  40. define Package/python-bcrypt/description
  41. Good password hashing for your software and your servers
  42. endef
  43. define Package/python3-bcrypt/description
  44. $(call Package/python-bcrypt/description)
  45. .
  46. (Variant for Python3)
  47. endef
  48. $(eval $(call PyPackage,python-bcrypt))
  49. $(eval $(call Py3Package,python3-bcrypt))
  50. $(eval $(call BuildPackage,python-bcrypt))
  51. $(eval $(call BuildPackage,python-bcrypt-src))
  52. $(eval $(call BuildPackage,python3-bcrypt))
  53. $(eval $(call BuildPackage,python3-bcrypt-src))