Index: head/www/uwsgi/Makefile =================================================================== --- head/www/uwsgi/Makefile (revision 555747) +++ head/www/uwsgi/Makefile (revision 555748) @@ -1,78 +1,79 @@ # Created by: Daniel Gerzo # $FreeBSD$ PORTNAME= uwsgi PORTVERSION= 2.0.19.1 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= http://projects.unbit.it/downloads/ MAINTAINER= eugene@zhegan.in COMMENT= Developer-friendly WSGI server which uses uwsgi protocol LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE USES= pkgconfig python USE_PYTHON= distutils concurrent optsuffix USE_RC_SUBR= uwsgi MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_EMBED_PLUGINS=cgi PYSETUP= uwsgiconfig.py PYDISTUTILS_BUILD_TARGET= --build PYDISTUTILS_BUILDARGS= --verbose USERS= uwsgi GROUPS= uwsgi PLIST_FILES= bin/uwsgi \ ${PYTHON_SITELIBDIR}/uwsgidecorators.py SUB_LIST= PYTHON_VER=${PYTHON_VER} OPTIONS_DEFINE= DEBUG JSON PCRE XML SSL OPTIONS_DEFAULT= SSL OPTIONS_GROUP= PLG OPTIONS_GROUP_PLG= PSGI PLG_DESC= Enable plugins PSGI_DESC= PSGI embedded plugin DEBUG_VARS= PYDISTUTILS_BUILDARGS+=--debug JSON_VARS= BUILDCONF_JSON=jansson JSON_LIB_DEPENDS= libjansson.so:devel/jansson PCRE_VARS= BUILDCONF_PCRE=true PCRE_LIB_DEPENDS= libpcre.so:devel/pcre PSGI_USES= perl5 XML_VARS= BUILDCONF_XML=libxml2 XML_LIB_DEPENDS= libxml2.so:textproc/libxml2 SSL_VARS= BUILDCONF_SSL=true SSL_USES= ssl SSL_CFLAGS= -I${OPENSSLINC} SSL_LDFLAGS= ${OPENSSL_LDFLAGS} 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 do-configure: @${DO_NADA} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ @${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${INSTALL_DATA} ${WRKSRC}/uwsgidecorators.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} .include Index: head/www/uwsgi/files/patch-core-logging.c =================================================================== --- head/www/uwsgi/files/patch-core-logging.c (nonexistent) +++ head/www/uwsgi/files/patch-core-logging.c (revision 555748) @@ -0,0 +1,32 @@ +--- core/logging.c.orig 2020-11-06 10:12:49.865752000 +0100 ++++ core/logging.c 2020-11-06 10:17:57.825745000 +0100 +@@ -536,13 +536,23 @@ + uwsgi_error_open(logfile); + exit(1); + } +- else { +- if (dup2(fd, log_fd) < 0) { +- // this could be lost :( +- uwsgi_error("uwsgi_log_do_rotate()/dup2()"); +- exit(1); +- } ++ if (dup2(fd, log_fd) < 0) { ++ // this could be lost :( ++ uwsgi_error("uwsgi_log_do_rotate()/dup2()"); + close(fd); ++ exit(1); ++ } ++ close(fd); ++ ++ if (uwsgi.chmod_logfile_value) { ++ if (fchmod(log_fd, uwsgi.chmod_logfile_value)) { ++ uwsgi_error("fchmod()"); ++ } ++ } ++ if (uwsgi.logfile_chown) { ++ if (fchown(log_fd, uwsgi.uid, uwsgi.gid)) { ++ uwsgi_error("fchown()"); ++ } + } + } + else { Property changes on: head/www/uwsgi/files/patch-core-logging.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property