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.

60 lines
1.5 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. include $(INCLUDE_DIR)/package.mk
  15. define Package/uwsgi-cgi
  16. SECTION:=net
  17. CATEGORY:=Network
  18. SUBMENU:=Web Servers/Proxies
  19. TITLE:=The uWSGI server
  20. URL:=https://projects.unbit.it/uwsgi
  21. DEPENDS:=+libcap +jansson +libuuid
  22. endef
  23. define Package/uwsgi-cgi-luci-support
  24. SECTION:=net
  25. CATEGORY:=Network
  26. SUBMENU:=Web Servers/Proxies
  27. TITLE:=Support files for LuCI on Nginx
  28. DEPENDS:=+uwsgi-cgi
  29. endef
  30. define Package/uwsgi-cgi/description
  31. The uWSGI project build with cgi profile
  32. endef
  33. MAKE_VARS+=\
  34. CPP=$(TARGET_CROSS)cpp
  35. define Build/Compile
  36. $(call Build/Compile/Default,PROFILE=cgi)
  37. endef
  38. define Package/uwsgi-cgi/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/uwsgi $(1)/usr/sbin/
  41. endef
  42. define Package/uwsgi-cgi-luci-support/install
  43. $(INSTALL_DIR) $(1)/etc/init.d
  44. $(INSTALL_BIN) ./files-luci-support/uwsgi.init $(1)/etc/init.d/uwsgi
  45. $(INSTALL_BIN) ./files-luci-support/uwsgi.conf $(1)/etc/uwsgi.conf
  46. endef
  47. $(eval $(call BuildPackage,uwsgi-cgi))
  48. $(eval $(call BuildPackage,uwsgi-cgi-luci-support))