# HG changeset patch # User Franz Glasner # Date 1505505549 -7200 # Node ID 003d10e103ef90f15fb67dae485a59af6f9a1d18 # Parent 494c9468dabc02434f34897e5758652b76181bc6 A new port named www/uwsginl which is www/uwsi with the "nolang" profile and some additional embedded plugins. The additional plugins are: - cgi - clock_realtime - echo - logpipe And all the default embedded plugins from "base.ini" are embedded too (of course). The big difference of the "nolang" profile to "core" is that core has no embedded plugins. diff -r 494c9468dabc -r 003d10e103ef Makefile --- a/Makefile Fri Sep 15 12:47:00 2017 +0200 +++ b/Makefile Fri Sep 15 21:59:09 2017 +0200 @@ -1,25 +1,27 @@ -# Created by: Daniel Gerzo -# $FreeBSD: head/www/uwsgi/Makefile 448482 2017-08-21 17:49:01Z ultima $ +# Created by: Franz Glasner +# $FreeBSD$ +# Based on www/uwsgi by: Daniel Gerzo -PORTNAME= uwsgi -PORTVERSION= 2.0.15 -PORTREVISION= 2 -CATEGORIES= www python +PORTNAME= uwsginl +DISTVERSION= 2.0.15 +CATEGORIES= www MASTER_SITES= http://projects.unbit.it/downloads/ +DISTNAME= uwsgi-${DISTVERSION} -MAINTAINER= ports@FreeBSD.org -COMMENT= Developer-friendly WSGI server which uses uwsgi protocol +MAINTAINER= freebsd-dev@dom66.de +COMMENT= Developer-friendly WSGI server which uses uwsgi protocol with no embedded language modules LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= pkgconfig python ssl +USES= pkgconfig python:build ssl USE_PYTHON= distutils -USE_RC_SUBR= uwsgi +USE_RC_SUBR= uwsginl CFLAGS+= -I${OPENSSLINC} LDFLAGS+= ${OPENSSL_LDFLAGS} -MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_EMBED_PLUGINS=cgi +#MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_EMBED_PLUGINS=cgi +MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_PROFILE=nolang.ini UWSGI_EMBED_PLUGINS=cgi,clock_realtime,echo,logpipe PYSETUP= uwsgiconfig.py PYDISTUTILS_BUILD_TARGET= --build @@ -28,8 +30,7 @@ USERS= uwsgi GROUPS= uwsgi -PLIST_FILES= bin/uwsgi \ - %%PYTHON_SITELIBDIR%%/uwsgidecorators.py +PLIST_FILES= bin/uwsginl OPTIONS_DEFINE= DEBUG JSON PCRE XML @@ -44,21 +45,18 @@ XML_VARS= BUILDCONF_XML=libxml2 XML_LIB_DEPENDS= libxml2.so:textproc/libxml2 -LIB_DEPENDS+= libjansson.so:devel/jansson libpcre.so:devel/pcre libxml2.so:textproc/libxml2 - .include post-patch: .for var in JSON PCRE XML @${REINPLACE_CMD} -e '/^${var:tl} =/ s|= .*|= ${BUILDCONF_${var}:Ufalse}|' ${WRKSRC}/buildconf/base.ini .endfor + echo "bin_name = ${PORTNAME}" >> ${WRKSRC}/buildconf/nolang.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 diff -r 494c9468dabc -r 003d10e103ef files/uwsgi.in --- a/files/uwsgi.in Fri Sep 15 12:47:00 2017 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,159 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: head/www/uwsgi/files/uwsgi.in 448482 2017-08-21 17:49:01Z ultima $ -# -# 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 660. -# uwsgi_socket_owner (str): Set the owner of the socket. -# Default is uwsgi:www. -# uwsgi_emperor (bool): Set it to "YES" to run uwsgi in emperor mode -# Default is "NO". -# uwsgi_configfile (path): Set the path to the config file -# Default is %%PREFIX%%/etc/uwsgi/uwsgi.ini. -# uwsgi_vassals_dir (path): Set the path to the vassals directory -# Default is %%PREFIX%%/etc/uwsgi/vassals. -# 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 uwsgi. -# uwsgi_gid (int): Set the GID of the process to run with -# Default is uwsgi. -# uwsgi_flags (str): Set the uwsgi command line arguments -# Default is "-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__