mirror of
https://github.com/novatiq/packages.git
synced 2026-07-29 23:03:06 +01:00
uwsgi-cgi: General cleanup
* Remove stray LICENSE file added to repo * Use codeload instead of git * Add proper (as close as possible) SPDX license * Drop OpenSSL, PCRE and Libxml2 as dependencies Makes it more suitable alternative for small flash devices * Drop /etc/uwsgi as there's only one config file * Remove stray /etc/nginx directory * Reorganize configuration file * Convert init.d script to use procd * Hardset 3 threads and processes, seems like a good tradeoff between performance and memory usage instead of doing auto scaling based on amout of cpu cores/threads Non-scientific benchmark (tm) ramips, mt7621, WiTi Board 16/256M 1. 3 threads, 6 processes 2. 2 threads, 2 processes 3. 3 threads, 3 processes - LuCI Main page 1.48s 1.72s 1.64s - Status --> Firewall 6.24s 6.39s 6.40s - Status --> Kernel log 266ms 256ms 251ms - Network --> Firewall 936ms 1.08s 1.07s - Network --> Wireless 1.39s 1.42s 1.40s Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
This commit is contained in:
+8
-11
@@ -2,15 +2,14 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=uwsgi-cgi
|
||||
PKG_VERSION:=2.0.17.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/unbit/uwsgi
|
||||
PKG_SOURCE_DATE:=2018-07-08
|
||||
PKG_SOURCE_VERSION:=4b3e9621c0a3eb2aacf937b8e84e67b23b20490b
|
||||
PKG_MIRROR_HASH:=a843909ad5e8c36b86392d99c8bd411a84c14ad51993ba63638180212c7819e2
|
||||
PKG_SOURCE_URL=https://codeload.github.com/unbit/uwsgi/tar.gz/$(PKG_VERSION)?
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_HASH:=d2318235c74665a60021a4fc7770e9c2756f9fc07de7b8c22805efe85b5ab277
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/uwsgi-$(PKG_VERSION)
|
||||
|
||||
PKG_LICENSE:=GPL2 + linking exception
|
||||
PKG_LICENSE:=GPL-2.0-or-later
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Ansuel Smith <ansuelsmth@gmail.com>
|
||||
|
||||
@@ -23,7 +22,7 @@ define Package/uwsgi-cgi
|
||||
SUBMENU:=Web Servers/Proxies
|
||||
TITLE:=The uWSGI server
|
||||
URL:=http://unbit.com/
|
||||
DEPENDS:=+libcap +libopenssl +libpcre +jansson +libuuid +libxml2
|
||||
DEPENDS:=+libcap +jansson +libuuid
|
||||
endef
|
||||
|
||||
define Package/uwsgi-cgi-luci-support
|
||||
@@ -54,9 +53,7 @@ endef
|
||||
define Package/uwsgi-cgi-luci-support/install
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files-luci-support/uwsgi.init $(1)/etc/init.d/uwsgi
|
||||
$(INSTALL_DIR) $(1)/etc/uwsgi
|
||||
$(INSTALL_BIN) ./files-luci-support/uwsgi.conf $(1)/etc/uwsgi/uwsgi.conf
|
||||
$(INSTALL_DIR) $(1)/etc/nginx
|
||||
$(INSTALL_BIN) ./files-luci-support/uwsgi.conf $(1)/etc/uwsgi.conf
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,uwsgi-cgi))
|
||||
|
||||
Reference in New Issue
Block a user