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.

61 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=uwsgi-cgi
  3. PKG_VERSION:=2.0.18
  4. PKG_RELEASE:=1
  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. include $(TOPDIR)/feeds/packages/lang/python/python-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. define Build/Compile
  37. $(call Build/Compile/Default,PROFILE=cgi)
  38. endef
  39. define Package/uwsgi-cgi/install
  40. $(INSTALL_DIR) $(1)/usr/sbin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/uwsgi $(1)/usr/sbin/
  42. endef
  43. define Package/uwsgi-cgi-luci-support/install
  44. $(INSTALL_DIR) $(1)/etc/init.d
  45. $(INSTALL_BIN) ./files-luci-support/uwsgi.init $(1)/etc/init.d/uwsgi
  46. $(INSTALL_BIN) ./files-luci-support/uwsgi.conf $(1)/etc/uwsgi.conf
  47. endef
  48. $(eval $(call BuildPackage,uwsgi-cgi))
  49. $(eval $(call BuildPackage,uwsgi-cgi-luci-support))