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.17.1
  4. PKG_RELEASE:=5
  5. PKG_SOURCE_URL=https://codeload.github.com/unbit/uwsgi/tar.gz/$(PKG_VERSION)?
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  7. PKG_HASH:=d2318235c74665a60021a4fc7770e9c2756f9fc07de7b8c22805efe85b5ab277
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/uwsgi-$(PKG_VERSION)
  9. PKG_LICENSE:=GPL-2.0-or-later
  10. PKG_LICENSE_FILES:=LICENSE
  11. PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
  12. include $(INCLUDE_DIR)/package.mk
  13. include $(TOPDIR)/feeds/packages/lang/python/python-package.mk
  14. define Package/uwsgi-cgi
  15. SECTION:=net
  16. CATEGORY:=Network
  17. SUBMENU:=Web Servers/Proxies
  18. TITLE:=The uWSGI server
  19. URL:=http://unbit.com/
  20. DEPENDS:=+libcap +jansson +libuuid
  21. endef
  22. define Package/uwsgi-cgi-luci-support
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=Web Servers/Proxies
  26. TITLE:=Support files for LuCI on Nginx
  27. URL:=http://unbit.com/
  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))