Skip to contentSkip to conversation

nginx-upload-module: new package

PATCH Superseded Matt Weber 2 participants 6 messages Jul 15, 2016 – Jul 19, 2016

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH v2 1/1 nginx-upload-module: new package

From: Bimal Jacob <[email protected]>

A module for nginx web server for handling file uploads using multipart/form-data encoding (RFC 1867).

---
v1 -> v2
[Matt W.
- Removed select of nginx in module Config.in
and instead added external module section
in nginx Config.in (copied nginx-naxsi patch)
- Renamed to use dash instead of underscore
- Moved conditional enable in nginx .mk up
with other module enables
- Added openssl dependency
---

---
 package/nginx-upload-module/Config.in                |  8 ++++++++
 package/nginx-upload-module/nginx-upload-module.hash |  2 ++
 package/nginx-upload-module/nginx-upload-module.mk   | 13 +++++++++++++
 package/nginx/Config.in                              |  3 +++
 package/nginx/nginx.mk                               |  6 ++++++
 5 files changed, 32 insertions(+)
 create mode 100644 package/nginx-upload-module/Config.in
 create mode 100644 package/nginx-upload-module/nginx-upload-module.hash
 create mode 100644 package/nginx-upload-module/nginx-upload-module.mk
package/nginx-upload-module/Config.in new file +8 -0
new file mode 100644
index 0000000..348d522
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_NGINX_UPLOAD_MODULE
+	bool "nginx-upload-module"
+	select BR2_PACKAGE_OPENSSL
+	help
+	  A module for nginx web server for handling file uploads using
+	  multipart/form-data encoding (RFC 1867).
+
+	  https://github.com/vkholodkov/nginx-upload-module
package/nginx-upload-module/nginx-upload-module.hash new file +2 -0
new file mode 100644
index 0000000..5c3b908
@@ -0,0 +1,2 @@
+#Locally Computed:
+sha256 8cd1d9d968ffba807de2e546ea9cad5e1ae294ec60b4927b2d60a98bdb4a1144  nginx-upload-module-aba1e3f34c754551f4f49e572bc86863d535609d.tar.gz
package/nginx-upload-module/nginx-upload-module.mk new file +13 -0
new file mode 100644
index 0000000..127e442
@@ -0,0 +1,13 @@
+################################################################################
+#
+# nginx-upload-module
+#
+################################################################################
+
+NGINX_UPLOAD_MODULE_VERSION = aba1e3f34c754551f4f49e572bc86863d535609d
+NGINX_UPLOAD_MODULE_SITE = $(call github,vkholodkov,nginx-upload-module,$(NGINX_UPLOAD_MODULE_VERSION))
+NGINX_UPLOAD_MODULE_LICENSE = BSD-3c
+NGINX_UPLOAD_MODULE_LICENSE_FILES = LICENCE
+NGINX_UPLOAD_MODULE_DEPENDENCIES = openssl
+
+$(eval $(generic-package))
package/nginx/Config.in +3 -0
index e6f2d96..9f2ba21 100644
@@ -380,4 +380,7 @@ config BR2_PACKAGE_NGINX_ADD_MODULES
 	help
 	  Space separated list of urls of the additional modules
 
+comment "external modules"
+	source "package/nginx-upload-module/Config.in"
+
 endif
package/nginx/nginx.mk +6 -0
index 5eb5488..97f6a7c 100644
@@ -234,6 +234,12 @@ NGINX_CONF_OPTS += \
 
 endif # BR2_PACKAGE_NGINX_STREAM
 
+# external modules
+ifeq ($(BR2_PACKAGE_NGINX_UPLOAD_MODULE),y)
+NGINX_CONF_OPTS += $(addprefix --add-module=,$(NGINX_UPLOAD_MODULE_DIR))
+NGINX_DEPENDENCIES += nginx-upload-module
+endif
+
 # Debug logging
 NGINX_CONF_OPTS += $(if $(BR2_PACKAGE_NGINX_DEBUG),--with-debug)
 
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/1 nginx-upload-module: new package

Hello,

Quoted 7 lines · Matt Weber

From: Bimal Jacob <[email protected]>

A module for nginx web server for handling file uploads using multipart/form-data encoding (RFC 1867).

Applied with the following changes:

[Thomas:
- rename from nginx-upload-module to nginx-upload. Indeed, we don't want all nginx modules to be suffixed with "-module"
- include the module Config.in file directly from package/Config.in, like we do for Python, Perl, Lua or TCL modules.]

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 nginx-upload-module: new package

In reply to Matt Weber

Hello,

Quoted 7 lines · Matt Weber

From: Bimal Jacob <[email protected]>

A module for nginx web server for handling file uploads using multipart/form-data encoding (RFC 1867).

This seems to break the build in certain conditions:

http://autobuild.buildroot.net/results/64b/64b1bde02346ca67b670f0b095bd3acad707e8cd/build-end.log

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH v2 1/1 nginx-upload-module: new package

Quoted 5 lines · Thomas Petazzoni

Hello,

Quoted 2 lines · Matt Weber

From: Bimal Jacob <[email protected]>

Quoted 9 lines
Quoted 5 lines

A module for nginx web server for handling file uploads using multipart/form-data encoding (RFC 1867).

This seems to break the build in certain conditions:

http://autobuild.buildroot.net/results/64b/64b1bde02346ca67b670f0b095bd3acad707e8cd/build-end.log

Will take a look.

Quoted 7 lines

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

Signature · 12 lines
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure
Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
www.rockwellcollins.com

Note: Any Export License Required Information and License Restricted Third
Party Intellectual Property (TPIP) content must be encrypted and sent to
matthew.weber at corp.rockwellcollins.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160716/791fb6f8/attachment.html>
#5 lore raw

PATCH v2 1/1 nginx-upload-module: new package

All,

Quoted 10 lines · Thomas Petazzoni

Hello,

Quoted 3 lines · Matthew Weber

http://autobuild.buildroot.net/results/64b/64b1bde02346ca67b670f0b095bd3acad707e8cd/build-end.log

Will take a look.

Have you had the change to take a look?

Yes, (sorry on vacation Fri/Mon). There was a missing http module dependency, we plan to submit a patch later today.

Thanks!

Quoted 9 lines

Thanks,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

Signature · 8 lines
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
www.rockwellcollins.com

Note: Any Export License Required Information and License Restricted
Third Party Intellectual Property (TPIP) content must be encrypted and
sent to matthew.weber at corp.rockwellcollins.com.