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.

63 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=uwsgi-cgi
  3. PKG_VERSION:=2.0.18
  4. PKG_RELEASE:=2
  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. endef
  44. define Package/uwsgi-cgi-luci-support/install
  45. $(INSTALL_DIR) $(1)/etc/init.d
  46. $(INSTALL_BIN) ./files-luci-support/uwsgi.init $(1)/etc/init.d/uwsgi
  47. $(INSTALL_BIN) ./files-luci-support/uwsgi.conf $(1)/etc/uwsgi.conf
  48. endef
  49. $(eval $(call BuildPackage,uwsgi-cgi))
  50. $(eval $(call BuildPackage,uwsgi-cgi-luci-support))