pkgsrc/www/py-uwsgi/options.mk
wiz afd77c5885 Update to 2.0 (python-3.x compatible) based on the wip package by othyro.
Changes:
uWSGI 2.0

Changelog [20131230] Important changes

Dynamic options have been definitely removed as well as the
broken_plugins directory Bugfixes and improvements

    improved log rotation do not rely on unix signals to print
    request status during harakiri added magic vars for uid and
    gid various Lua fixes a tons of coverity-governed bugfixes made
    by Riccardo Magliocchetti

New features --attach-daemon2

this is a keyval based option for configuring external daemons.

Updated docs are: :doc:`AttachingDaemons` Linux setns() support

One of the biggest improvements in uWSGI 1.9-2.0 has been the total
support for Linux namespaces.

This last patch adds support for the setns() syscall.

This syscall allows a process to "attach" to a running namespace.

uWSGI instances can exposes their namespaces file descriptors
(basically they are the files in /proc/self/ns) via a unix socket.

External instances connects to that unix socket and automatically
enters the mapped namespace.

to spawn an instance in "namespace server mode", you use the
--setns-socket <addr> option

uwsgi --setns-socket /var/run/ns.socket --unshare net,ipc,uts ...

to attach you simply use --setns <addr>

uwsgi --setns /var/run/ns.socket ...

Updated docs: :doc:`Namespaces` "private" hooks

When uWSGI runs your hooks, it verbosely print the whole hook action
line. This could be a security problem in some scenario (for example
when you run initial phases as root user but allows unprivileged
access to logs).

Prefixing your action with a '!' will suppress full logging:

[uwsgi] hook-asap = !exec:my_secret_command

Support for yajl library (JSON parser)

Til now uWSGI only supported jansson as the json parser required
for managing .js config files.

You can now use the yajl library (available in centos) as alternative
JSON parser (will be automatically detected) Perl spooler support

The perl/PSGI plugin can now be used as a spooler server:

uwsgi::spooler(sub {
     my $args = shift; print Dumper($args); return -2; });

The client part is still missing as we need to fix some internal
api problem.

Expect it in 2.0.1 ;) Gateways can drop privileges

Gateways (like http router, sslrouter, rawrouter, forkptyrouter
...) can now drop privileges independently by the master.

Currently only the http/https/spdy router exposes the new option
(--http-uid/--http-gid) Subscriptions-governed SNI contexts

The subscription subsystem now supports 3 additional keys (you can
set them with the --subscribe2 option):

sni_key

sni_cert

sni_ca

all of the takes a path to the relevant ssl files.
2014-01-23 14:47:05 +00:00

75 lines
1.8 KiB
Makefile

# $NetBSD: options.mk,v 1.1 2014/01/23 14:47:05 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.py-uwsgi
PKG_SUPPORTED_OPTIONS= debug openssl pcre uuid yaml zlib
PKG_SUGGESTED_OPTIONS+= libxml2 openssl zlib
PKG_OPTIONS_OPTIONAL_GROUPS+= json xml
PKG_OPTIONS_GROUP.json= jansson yajl
PKG_OPTIONS_GROUP.xml= expat libxml2
.include "../../mk/bsd.options.mk"
UWSGI_DEBUG= debug=false;
.if !empty(PKG_OPTIONS:Mdebug)
UWSGI_DEBUG= debug=true;
.endif
UWSGI_XML= xml=auto;
.if !empty(PKG_OPTIONS:Mexpat)
.include "../../textproc/expat/buildlink3.mk"
UWSGI_XML= xml=expat;
.elif !empty(PKG_OPTIONS:Mlibxml2)
.include "../../textproc/libxml2/buildlink3.mk"
UWSGI_XML= xml=libxml2;
.else
UWSGI_XML= xml=false;
.endif
UWSGI_JSON= json=auto;
.if !empty(PKG_OPTIONS:Mjansson)
.include "../../textproc/jansson/buildlink3.mk"
UWSGI_JSON= json=jansson;
.elif !empty(PKG_OPTIONS:Myajl)
.include "../../devel/yajl/buildlink3.mk"
UWSGI_JSON= json=yajl;
BROKEN= The yajl option requires a yajl.pc file which that package doesn't have.
.else
UWSGI_JSON= json=false;
.endif
UWSGI_SSL= ssl=auto;
.if !empty(PKG_OPTIONS:Mopenssl)
.include "../../security/openssl/buildlink3.mk"
UWSGI_SSL= ssl=true;
.else
UWSGI_SSL= ssl=false;
.endif
UWSGI_PCRE= pcre=auto;
.if !empty(PKG_OPTIONS:Mpcre)
.include "../../devel/pcre/buildlink3.mk"
UWSGI_PCRE= pcre=true;
.else
UWSGI_PCRE= pcre=false;
.endif
UWSGI_UUID= uuid=auto;
.if !empty(PKG_OPTIONS:Muuid)
.include "../../devel/libuuid/buildlink3.mk"
UWSGI_UUID= uuid=true;
.else
UWSGI_UUID= uuid=false;
.endif
UWSGI_YAML= yaml=auto
.if !empty(PKG_OPTIONS:Myaml)
.include "../../textproc/libyaml/buildlink3.mk"
UWSGI_YAML= yaml=true
.else
UWSGI_YAML= yaml=false
.endif
.if !empty(PKG_OPTIONS:Mzlib)
.include "../../devel/zlib/buildlink3.mk"
.endif