diff options
-rw-r--r-- | www/nginx-devel/Makefile | 4 | ||||
-rw-r--r-- | www/nginx-devel/files/extra-patch-ngx_http_uploadprogress_module.c | 14 | ||||
-rw-r--r-- | www/nginx/Makefile | 4 | ||||
-rw-r--r-- | www/nginx/files/extra-patch-ngx_http_uploadprogress_module.c | 14 |
4 files changed, 36 insertions, 0 deletions
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile index 3242fcb4ced5..c2d93b21dc7c 100644 --- a/www/nginx-devel/Makefile +++ b/www/nginx-devel/Makefile @@ -313,6 +313,10 @@ post-patch: 's!$$HTTP_ACCESSKEY_MODULE!ngx_http_accesskey_module!' \ ${WRKDIR}/nginx-accesskey-${NGINX_ACCESSKEY_MODULE_VERSION}/config .endif +.if defiend(WITH_HTTP_UPLOAD_PROGRESS) + @${PATCH} ${PATCH_ARGS} < \ + ${PATCHDIR}/extra-patch-ngx_http_uploadprogress_module.c +.endif .if defined(WITH_HTTP_FANCYINDEX_MODULE) @${PATCH} ${PATCH_ARGS} < \ ${PATCHDIR}/extra-patch-ngx_http_fancyindex_module.c diff --git a/www/nginx-devel/files/extra-patch-ngx_http_uploadprogress_module.c b/www/nginx-devel/files/extra-patch-ngx_http_uploadprogress_module.c new file mode 100644 index 000000000000..abaffde0d94c --- /dev/null +++ b/www/nginx-devel/files/extra-patch-ngx_http_uploadprogress_module.c @@ -0,0 +1,14 @@ +--- ../nginx_uploadprogress_module/ngx_http_uploadprogress_module.c.orig 2009-06-26 15:32:01.000000000 +0400 ++++ ../nginx_uploadprogress_module/ngx_http_uploadprogress_module.c 2009-06-26 15:38:30.000000000 +0400 +@@ -187,8 +187,9 @@ + if (i) { + start_p = p += 14; + while (p < r->args.data + r->args.len) { +- if (*p++ != '&') { +- continue; ++ if (*p++ == '&') { ++ p--; ++ break; + } + } + diff --git a/www/nginx/Makefile b/www/nginx/Makefile index 842c71225d28..840038738294 100644 --- a/www/nginx/Makefile +++ b/www/nginx/Makefile @@ -311,6 +311,10 @@ post-patch: @${PATCH} ${PATCH_ARGS} < \ ${PATCHDIR}/extra-patch-ngx_http_fancyindex_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..abaffde0d94c --- /dev/null +++ b/www/nginx/files/extra-patch-ngx_http_uploadprogress_module.c @@ -0,0 +1,14 @@ +--- ../nginx_uploadprogress_module/ngx_http_uploadprogress_module.c.orig 2009-06-26 15:32:01.000000000 +0400 ++++ ../nginx_uploadprogress_module/ngx_http_uploadprogress_module.c 2009-06-26 15:38:30.000000000 +0400 +@@ -187,8 +187,9 @@ + if (i) { + start_p = p += 14; + while (p < r->args.data + r->args.len) { +- if (*p++ != '&') { +- continue; ++ if (*p++ == '&') { ++ p--; ++ break; + } + } + |