Index: head/www/uwsgi/Makefile =================================================================== --- head/www/uwsgi/Makefile (revision 432601) +++ head/www/uwsgi/Makefile (revision 432602) @@ -1,68 +1,69 @@ # Created by: Daniel Gerzo # $FreeBSD$ PORTNAME= uwsgi PORTVERSION= 2.0.14 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= http://projects.unbit.it/downloads/ MAINTAINER= demon@FreeBSD.org COMMENT= Developer-friendly WSGI server which uses uwsgi protocol LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE USES= python ssl USE_PYTHON= distutils USE_RC_SUBR= uwsgi OPTIONS_DEFINE= DEBUG JSON PCRE XML DEBUG_VARS= PYDISTUTILS_BUILDARGS+=--debug JSON_LIB_DEPENDS= libjansson.so:devel/jansson PCRE_LIB_DEPENDS= libpcre.so:devel/pcre XML_LIB_DEPENDS= libxml2.so:textproc/libxml2 .include .if ${PORT_OPTIONS:MJSON} O_JSON= jansson .else O_JSON= false .endif .if ${PORT_OPTIONS:MPCRE} O_PCRE= true .else O_PCRE= false .endif .if ${PORT_OPTIONS:MXML} O_XML= libxml2 .else O_XML= false .endif CFLAGS+= -I${OPENSSLINC} LDFLAGS+= ${OPENSSL_LDFLAGS} MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_EMBED_PLUGINS=cgi PYSETUP= uwsgiconfig.py PYDISTUTILS_BUILD_TARGET= --build PYDISTUTILS_BUILDARGS= --verbose PLIST_FILES= bin/uwsgi \ %%PYTHON_SITELIBDIR%%/uwsgidecorators.py post-patch: ${REINPLACE_CMD} -e s#@JSON@#${O_JSON}# -e s#@XML@#${O_XML}# -e s#@PCRE@#${O_PCRE}# ${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/uwsgi.in =================================================================== --- head/www/uwsgi/files/uwsgi.in (revision 432601) +++ head/www/uwsgi/files/uwsgi.in (revision 432602) @@ -1,119 +1,123 @@ #!/bin/sh # # $FreeBSD$ # # PROVIDE: uwsgi # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable uwsgi: # # uwsgi_enable (bool): Set it to "YES" to enable uwsgi # Default is "NO". # uwsgi_socket (path/str): Set the path to the uwsgi unix socket # Default is /tmp/uwsgi.sock. +# uwsgi_socket_mode (int): Set the mode of the socket. +# Default is 600. # uwsgi_logfile (path): Set the path to the uwsgi log file # Default is /var/log/uwsgi.log. # uwsgi_pidfile (path): Set the path to the uwsgi pid file # Default is /var/run/uwsgi.pid. # uwsgi_uid (int): Set the UID of the process to run with # Default is 80. # uwsgi_gid (int): Set the GID of the process to run with # Default is 80. # uwsgi_flags (str): Set the uwsgi command line arguments # Default is "-M -L". # uwsgi_procname (str): Define to "uWSGI" if you start uwsgi with # --auto-procname option. # # If you would like to have multiple uWSGI instances running, you can # define multiple profiles: # # uwsgi_profiles (str): Set the list of uwsgi profiles # Default is "". # # For each profile you can then define different options (except for # uwsgi_enable) using the syntax uwsgi__