aboutsummaryrefslogtreecommitdiffstats
path: root/www/nginx
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2009-12-19 18:56:33 +0800
committerosa <osa@FreeBSD.org>2009-12-19 18:56:33 +0800
commit733fe912bd7310433e1cb87cc05fe5e917c1442f (patch)
tree4514ecd542f2a7fcd8ccb8e46bd977de9480760d /www/nginx
parent1f152dfab3127136655eab3b8694e19141d531e7 (diff)
downloadfreebsd-ports-gnome-733fe912bd7310433e1cb87cc05fe5e917c1442f.tar.gz
freebsd-ports-gnome-733fe912bd7310433e1cb87cc05fe5e917c1442f.tar.zst
freebsd-ports-gnome-733fe912bd7310433e1cb87cc05fe5e917c1442f.zip
Accordingly update uploadprogress module with patch from github.
Do not bump PORTREVISIONs. Spotted by: Vladimir Getmanshchuk aka vladget at openfilm dot com Requested by: Brice Figureau aka brice at daysofwonder dot com (uploadprogress module author)
Diffstat (limited to 'www/nginx')
-rw-r--r--www/nginx/Makefile4
-rw-r--r--www/nginx/files/extra-patch-ngx_http_uploadprogress_module.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/www/nginx/Makefile b/www/nginx/Makefile
index 5513b2614f61..49b0beaace79 100644
--- a/www/nginx/Makefile
+++ b/www/nginx/Makefile
@@ -357,6 +357,10 @@ post-patch:
@${PATCH} ${PATCH_ARGS} < \
${PATCHDIR}/extra-patch-ngx_http_redis_module.c
.endif
+.if defined(WITH_HTTP_UPLOAD_PROGRESS)
+ @${PATCH} ${PATCH_ARGS} < \
+ ${PATCHDIR}/extra-patch-ngx_http_uploadprogress_module.c
+.endif
.if defined(WITH_PASSENGER_MODULE)
@${REINPLACE_CMD} 's!g++!${CXX}!' \
${WRKDIR}/passenger-${PASSENGER_VERSION}/Rakefile
diff --git a/www/nginx/files/extra-patch-ngx_http_uploadprogress_module.c b/www/nginx/files/extra-patch-ngx_http_uploadprogress_module.c
new file mode 100644
index 000000000000..13949c8f6e6e
--- /dev/null
+++ b/www/nginx/files/extra-patch-ngx_http_uploadprogress_module.c
@@ -0,0 +1,12 @@
+--- ../nginx_uploadprogress_module-0.7/ngx_http_uploadprogress_module.c.orig 2009-11-21 21:48:48.000000000 +0300
++++ ../nginx_uploadprogress_module-0.7/ngx_http_uploadprogress_module.c 2009-12-19 13:09:52.000000000 +0300
+@@ -1475,6 +1475,9 @@
+
+ ngx_memzero(&sc, sizeof(ngx_http_script_compile_t));
+
++ t->lengths = NULL;
++ t->values = NULL;
++
+ sc.cf = cf;
+ sc.source = source;
+ sc.lengths = &t->lengths;