www/uwsgi: sync with upstream

Taken from: HardenedBSD
This commit is contained in:
Franco Fichtner 2021-01-20 12:12:16 +01:00
parent bd0d62d88d
commit 457da9982d
2 changed files with 22 additions and 5 deletions

View File

@ -35,11 +35,16 @@ OPTIONS_DEFINE= DEBUG JSON PCRE XML SSL
OPTIONS_DEFAULT= SSL
OPTIONS_GROUP= PLG
OPTIONS_GROUP_PLG= PSGI
OPTIONS_GROUP_PLG= COROAE LOGPIPE PSGI
PLG_DESC= Enable plugins
COROAE_DESC= Coro::AnyEvent support
LOGPIPE_DESC= Pipe logger support
PSGI_DESC= PSGI embedded plugin
COROAE_BUILD_DEPENDS= p5-Coro>=0:devel/p5-Coro
COROAE_IMPLIES= PSGI
DEBUG_VARS= PYDISTUTILS_BUILDARGS+=--debug
JSON_VARS= BUILDCONF_JSON=jansson
@ -62,11 +67,12 @@ post-patch:
.for var in JSON PCRE XML SSL
@${REINPLACE_CMD} -e '/^${var:tl} =/ s|= .*|= ${BUILDCONF_${var}:Ufalse}|' ${WRKSRC}/buildconf/base.ini
.endfor
@${REINPLACE_CMD} -e '/ifdef/s,APPLE,${OPSYS},' \
${WRKSRC}/plugins/psgi/psgi_plugin.c
post-patch-PSGI-on:
@${REINPLACE_CMD} -e 's/%(main_plugin)s,/%(main_plugin)s, psgi,/' ${WRKSRC}/buildconf/base.ini
.for plugin in COROAE LOGPIPE PSGI
post-patch-${plugin}-on:
@${REINPLACE_CMD} -e 's/%(main_plugin)s,/& ${plugin:tl},/' \
${WRKSRC}/buildconf/base.ini
.endfor
do-configure:
@${DO_NADA}

View File

@ -0,0 +1,11 @@
--- plugins/coroae/uwsgiplugin.py.orig 2020-06-17 09:03:34 UTC
+++ plugins/coroae/uwsgiplugin.py
@@ -9,7 +9,7 @@ for p in search_paths:
coroapi = p
if not coroapi:
- print "unable to find the Coro perl module !!!"
+ print("unable to find the Coro perl module !!!")
sys.exit(1)
NAME='coroae'