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

  1. #
  2. # Copyright (C) 2007-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:=gunicorn
  9. PKG_VERSION:=20.1.0
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=$(PKG_NAME)
  12. PKG_HASH:=e0a968b5ba15f8a328fdfd7ab1fcb5af4470c28aaf7e55df02a99bc13138e6e8
  13. PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python3-package.mk
  19. define Package/gunicorn/Default
  20. SUBMENU:=Web Servers/Proxies
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=WSGI HTTP Server for UNIX
  24. URL:=https://gunicorn.org
  25. endef
  26. define Package/python3-gunicorn
  27. $(call Package/gunicorn/Default)
  28. TITLE:=WSGI HTTP Server for UNIX (library)
  29. DEPENDS:=+python3
  30. endef
  31. define Package/python3-gunicorn/description
  32. WSGI HTTP Server for UNIX (libraries)
  33. endef
  34. # Make sure that the binaries are not installed with the libraries
  35. # That means adding some empty Py3Package/gunicorn3/install rules
  36. define Py3Package/python3-gunicorn/install
  37. :
  38. endef
  39. define Package/gunicorn3
  40. $(call Package/gunicorn/Default)
  41. DEPENDS:=+python3 +python3-setuptools +python3-gunicorn
  42. endef
  43. define Package/gunicorn3/description
  44. WSGI HTTP Server for UNIX (daemon)
  45. endef
  46. define Package/gunicorn3/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) \
  49. $(PKG_INSTALL_DIR)/usr/bin/gunicorn \
  50. $(1)/usr/bin/gunicorn3
  51. $(LN) gunicorn3 $(1)/usr/bin/gunicorn
  52. $(call Python3/FixShebang,$(1)/usr/bin/*)
  53. endef
  54. $(eval $(call Py3Package,python3-gunicorn))
  55. $(eval $(call BuildPackage,python3-gunicorn))
  56. $(eval $(call BuildPackage,python3-gunicorn-src))
  57. $(eval $(call BuildPackage,gunicorn3))