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.

71 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=uwsgi-cgi
  3. PKG_VERSION:=2.0.18
  4. PKG_RELEASE:=3
  5. PKG_SOURCE_URL= \
  6. https://projects.unbit.it/downloads \
  7. https://codeload.github.com/unbit/uwsgi/tar.gz/$(PKG_VERSION)?
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_HASH:=4972ac538800fb2d421027f49b4a1869b66048839507ccf0aa2fda792d99f583
  10. PKG_BUILD_DIR:=$(BUILD_DIR)/uwsgi-$(PKG_VERSION)
  11. PKG_LICENSE:=GPL-2.0-or-later
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
  14. PKG_BUILD_DEPENDS:=python3/host
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/uwsgi-cgi
  17. SECTION:=net
  18. CATEGORY:=Network
  19. SUBMENU:=Web Servers/Proxies
  20. TITLE:=The uWSGI server
  21. URL:=https://projects.unbit.it/uwsgi
  22. DEPENDS:=+libcap +jansson +libuuid
  23. endef
  24. define Package/uwsgi-cgi-luci-support
  25. SECTION:=net
  26. CATEGORY:=Network
  27. SUBMENU:=Web Servers/Proxies
  28. TITLE:=Support files for LuCI on Nginx
  29. DEPENDS:=+uwsgi-cgi
  30. endef
  31. define Package/uwsgi-cgi/description
  32. The uWSGI project build with cgi profile
  33. endef
  34. MAKE_VARS+=\
  35. CPP=$(TARGET_CROSS)cpp \
  36. PYTHON=$(STAGING_DIR_HOSTPKG)/bin/python3
  37. define Build/Compile
  38. $(call Build/Compile/Default,PROFILE=cgi)
  39. endef
  40. define Package/uwsgi-cgi/install
  41. $(INSTALL_DIR) $(1)/usr/sbin
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/uwsgi $(1)/usr/sbin/
  43. $(INSTALL_DIR) $(1)/etc/init.d
  44. $(INSTALL_BIN) ./files/uwsgi.init $(1)/etc/init.d/uwsgi
  45. $(INSTALL_DIR) $(1)/etc/uwsgi
  46. $(INSTALL_DATA) ./files/emperor.ini $(1)/etc/uwsgi/emperor.ini
  47. $(INSTALL_DIR) $(1)/etc/uwsgi/vassals
  48. endef
  49. define Package/uwsgi-cgi-luci-support/install
  50. $(INSTALL_DIR) $(1)/etc/uwsgi/vassals
  51. $(INSTALL_DATA) ./files-luci-support/luci-webui.ini $(1)/etc/uwsgi/vassals/luci-webui.ini
  52. $(INSTALL_DATA) ./files-luci-support/luci-cgi_io.ini $(1)/etc/uwsgi/vassals/luci-cgi_io.ini
  53. endef
  54. $(eval $(call BuildPackage,uwsgi-cgi))
  55. $(eval $(call BuildPackage,uwsgi-cgi-luci-support))