mod: Convert upload progress module to dynamic

This commit is contained in:
Christos Trochalakis 2016-08-31 13:18:37 +03:00
parent 4dd8c07889
commit 577178cdff
5 changed files with 31 additions and 2 deletions

12
debian/control vendored
View file

@ -196,6 +196,7 @@ Depends: nginx-common (= ${source:Version}),
libnginx-mod-http-headers-more-filter (= ${binary:Version}),
libnginx-mod-http-cache-purge (= ${binary:Version}),
libnginx-mod-http-fancyindex (= ${binary:Version}),
libnginx-mod-http-uploadprogress (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends}
Breaks: nginx (<< 1.4.5-1)
@ -404,3 +405,14 @@ Description: Fancy indexes module for the Nginx
The Fancy Index module makes possible the generation of file listings, like
the built-in autoindex module does, but adding a touch of style by introducing
ways to customize the result.
Package: libnginx-mod-http-uploadprogress
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Upload progress system for Nginx
Upload progress module is an implementation of an upload progress system, that
monitors RFC1867 POST uploads as they are transmitted to upstream servers.
.
It works by tracking the uploads proxied by Nginx to upstream servers without
analysing the uploaded content and offers a web API to report upload progress
in Javscript, Json or any other format.

13
debian/libnginx-mod-http-uploadprogress.nginx vendored Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/perl -w
use File::Basename;
# Guess module name
$module = basename($0, '.nginx');
$module =~ s/^libnginx-mod-//;
$modulepath = $module;
$modulepath =~ s/-/_/g;
print "mod debian/build-extras/objs/ngx_${modulepath}_module.so\n";
print "mod debian/libnginx-mod.conf/mod-${module}.conf\n";

View file

@ -0,0 +1 @@
load_module modules/ngx_http_uploadprogress_module.so;

4
debian/rules vendored
View file

@ -11,7 +11,7 @@ DEBIAN_NGINX_PERL_LDFLAGS:= $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
export DEBIAN_NGINX_PERL_LDFLAGS
FLAVOURS := full light extras
DYN_MODS := http-geoip http-image-filter http-xslt-filter mail stream http-auth-pam http-lua http-perl http-ndk nchan http-echo http-upstream-fair http-headers-more-filter http-cache-purge http-fancyindex
DYN_MODS := http-geoip http-image-filter http-xslt-filter mail stream http-auth-pam http-lua http-perl http-ndk nchan http-echo http-upstream-fair http-headers-more-filter http-cache-purge http-fancyindex http-uploadprogress
MODULESDIR = $(CURDIR)/debian/modules
BASEDIR = $(CURDIR)
@ -114,7 +114,7 @@ extras_configure_flags := \
--add-dynamic-module=$(MODULESDIR)/ngx-fancyindex \
--add-dynamic-module=$(MODULESDIR)/nchan \
--add-dynamic-module=$(MODULESDIR)/nginx-lua \
--add-module=$(MODULESDIR)/nginx-upload-progress \
--add-dynamic-module=$(MODULESDIR)/nginx-upload-progress \
--add-dynamic-module=$(MODULESDIR)/nginx-upstream-fair \
--add-module=$(MODULESDIR)/ngx_http_substitutions_filter_module

View file

@ -23,6 +23,7 @@ Depends: nginx-full,
libnginx-mod-http-image-filter,
libnginx-mod-http-lua,
libnginx-mod-http-perl,
libnginx-mod-http-uploadprogress,
libnginx-mod-http-upstream-fair,
libnginx-mod-http-xslt-filter,
libnginx-mod-mail,
@ -42,6 +43,7 @@ Depends: nginx-light,
libnginx-mod-http-image-filter,
libnginx-mod-http-lua,
libnginx-mod-http-perl,
libnginx-mod-http-uploadprogress,
libnginx-mod-http-upstream-fair,
libnginx-mod-http-xslt-filter,
libnginx-mod-mail,
@ -61,6 +63,7 @@ Depends: nginx-extras,
libnginx-mod-http-image-filter,
libnginx-mod-http-lua,
libnginx-mod-http-perl,
libnginx-mod-http-uploadprogress,
libnginx-mod-http-upstream-fair,
libnginx-mod-http-xslt-filter,
libnginx-mod-mail,