Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Building new uwsgi-plugin-X package
===================================

Rules for building uwsgi-plugin-X are created automatically based on
contents of debian/control.

For building new uWSGI plugin one's only necessary to add new package (for
example, 'uwsgi-plugin-brainfuck') in debian/control.

Algorithmically speaking (see it in debian/rules):
  1. Function list_pkgname_suffixes greps debian/control for substring
     'Package: uwsgi-plugin-', then removes this substring from each found
     line. Remaining lines' suffixes are needing plugin names (lua or psgi
     or ...).
  2. List of found suffixes is assigned to variable 'plugins'.
  3. Bunch of rules (each for building specific plugin) is generated from
     'plugins' variable.
  4. In each of these rules 'uwsgiconfig.py --plugin <specific plugin location>'
     is executed.

Also, _remember to add new plugin_ in Depends: and Description: fields of
'uwsgi-plugins-all' binary package (in debian/control).

Why #!/bin/bash in uwsgi-pythonX init.d script?
===============================================

For supporting configuration file names with spaces and/or control characters
Bash-specific features are used (namely, '-d' option of 'read' command and
process substitution).

See their's usage in debian/uwsgi-common-files/init/do_command.