1 include $(TOPDIR
)/rules.mk
8 PKG_HASH
:=faa85e053c0b1be4d5585b0858d3a511d2cd10201802e8676060fd0a109e5869
9 PKG_BUILD_DEPENDS
:=python3
/host
12 PKG_LICENSE
:=GPL-2.0
-or-later
13 PKG_LICENSE_FILES
:=LICENSE
14 PKG_MAINTAINER
:=Ansuel Smith
<ansuelsmth@gmail.com
>
16 include ..
/..
/lang
/python
/pypi.mk
17 include $(INCLUDE_DIR
)/package.mk
18 include ..
/..
/lang
/python
/python3-package.mk
19 #for LINUX_UNAME_VERSION:
20 include $(INCLUDE_DIR
)/kernel.mk
22 #the .tar.gz does not wrap it into a uWSGI dir; do not use "$(1)/..":
23 TAR_CMD
=$(HOST_TAR
) -C
$(1) $(TAR_OPTIONS
)
28 SUBMENU
:=Web Servers
/Proxies
29 TITLE
:=The uWSGI server
30 URL
:=https
://uwsgi-docs.readthedocs.io
/en
/latest
/
31 DEPENDS
:=+libpcre
+libcap
+libuuid
35 define Package
/uwsgi-logfile-plugin
38 SUBMENU
:=Web Servers
/Proxies
39 TITLE
:=The Logfile plugin for the uWSGI server
44 define Package
/uwsgi-syslog-plugin
47 SUBMENU
:=Web Servers
/Proxies
48 TITLE
:=The Syslog plugin for the uWSGI server
53 define Package
/uwsgi-cgi-plugin
56 SUBMENU
:=Web Servers
/Proxies
57 TITLE
:=The CGI plugin for the uWSGI server
62 define Package
/uwsgi-python3-plugin
65 SUBMENU
:=Web Servers
/Proxies
66 TITLE
:=The Python3 plugin for the uWSGI server
67 DEPENDS
:=uwsgi
+python3-light
71 define Package
/uwsgi-luci-support
74 SUBMENU
:=Web Servers
/Proxies
75 TITLE
:=Support files for LuCI on Nginx
76 DEPENDS
:=uwsgi
+uwsgi-syslog-plugin
+uwsgi-cgi-plugin
80 define Package
/uwsgi
/description
81 The uWSGI project
(to be used together with nginx or nginx-ssl
).
84 define Package
/uwsgi-logfile-plugin
/description
85 The Logfile plugin for the uWSGI project.
88 define Package
/uwsgi-syslog-plugin
/description
89 The Syslog plugin for the uWSGI project.
92 define Package
/uwsgi-cgi-plugin
/description
93 The CGI plugin for the uWSGI project.
96 define Package
/uwsgi-python3-plugin
/description
97 The Python3 plugin for the uWSGI project.
100 define Package
/uwsgi-luci-support
/description
101 Support files for LuCI on Nginx
105 CPP
=$(TARGET_CROSS
)cpp \
106 PYTHON
=$(STAGING_DIR_HOSTPKG
)/bin
/python3 \
107 LINUX_UNAME_VERSION
=$(LINUX_UNAME_VERSION
)
110 $(call Build
/Compile
/Default
,PROFILE
=openwrt
)
111 $(call Build
/Compile
/Default
,plugin.logfile PROFILE
=openwrt
)
112 $(call Build
/Compile
/Default
,plugin.syslog PROFILE
=openwrt
)
113 $(call Build
/Compile
/Default
,plugin.cgi PROFILE
=openwrt
)
114 $(call Python3
/Run
, \
116 uwsgiconfig.py
--plugin plugins
/python openwrt
, \
117 CPP
="$(TARGET_CROSS)cpp" \
118 LINUX_UNAME_VERSION
=$(LINUX_UNAME_VERSION
) \
119 CFLAGS
="$(TARGET_CPPFLAGS) -I$(PYTHON3_INC_DIR) $(TARGET_CFLAGS)" \
123 define Package
/uwsgi
/install
124 $(INSTALL_DIR
) $(1)/usr
/sbin
125 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/uwsgi
$(1)/usr
/sbin
/
127 $(INSTALL_DIR
) $(1)/etc
/init.d
128 $(INSTALL_BIN
) .
/files
/uwsgi.init
$(1)/etc
/init.d
/uwsgi
130 $(INSTALL_DIR
) $(1)/etc
/uwsgi
131 $(INSTALL_CONF
) .
/files
/emperor.ini
$(1)/etc
/uwsgi
/emperor.ini
133 $(INSTALL_DIR
) $(1)/etc
/uwsgi
/vassals
136 define Package
/uwsgi
/conffiles
137 /etc
/uwsgi
/emperor.ini
140 define Package
/uwsgi-logfile-plugin
/install
141 $(INSTALL_DIR
) $(1)/usr
/lib
/uwsgi
142 $(CP
) $(PKG_BUILD_DIR
)/logfile_plugin.so
$(1)/usr
/lib
/uwsgi
/
145 define Package
/uwsgi-syslog-plugin
/install
146 $(INSTALL_DIR
) $(1)/usr
/lib
/uwsgi
147 $(CP
) $(PKG_BUILD_DIR
)/syslog_plugin.so
$(1)/usr
/lib
/uwsgi
/
150 define Package
/uwsgi-cgi-plugin
/install
151 $(INSTALL_DIR
) $(1)/usr
/lib
/uwsgi
152 $(CP
) $(PKG_BUILD_DIR
)/cgi_plugin.so
$(1)/usr
/lib
/uwsgi
/
155 define Package
/uwsgi-python3-plugin
/install
156 $(INSTALL_DIR
) $(1)/usr
/lib
/uwsgi
157 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/python_plugin.so
$(1)/usr
/lib
/uwsgi
/
160 define Package
/uwsgi-luci-support
/install
161 $(INSTALL_DIR
) $(1)/etc
/uwsgi
/vassals
162 $(INSTALL_DATA
) .
/files-luci-support
/luci-webui.ini
$(1)/etc
/uwsgi
/vassals
/luci-webui.ini
163 $(INSTALL_DATA
) .
/files-luci-support
/luci-cgi_io.ini
$(1)/etc
/uwsgi
/vassals
/luci-cgi_io.ini
166 $(eval
$(call BuildPackage
,uwsgi
))
167 $(eval
$(call BuildPackage
,uwsgi-logfile-plugin
))
168 $(eval
$(call BuildPackage
,uwsgi-syslog-plugin
))
169 $(eval
$(call BuildPackage
,uwsgi-cgi-plugin
))
170 $(eval
$(call BuildPackage
,uwsgi-python3-plugin
))
171 $(eval
$(call BuildPackage
,uwsgi-luci-support
))