From patchwork Tue Nov 29 16:47:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Oudinet X-Patchwork-Id: 700645 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tSqHz38H2z9t2T for ; Wed, 30 Nov 2016 03:48:45 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="0p0fjBjS"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B62589564F; Tue, 29 Nov 2016 16:48:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nY+-ZMQnNtpx; Tue, 29 Nov 2016 16:48:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1750B95626; Tue, 29 Nov 2016 16:48:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 0786F1BFFA2 for ; Tue, 29 Nov 2016 16:48:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 00E0731602 for ; Tue, 29 Nov 2016 16:48:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id st0vu2aQFDmj for ; Tue, 29 Nov 2016 16:48:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wj0-f195.google.com (mail-wj0-f195.google.com [209.85.210.195]) by silver.osuosl.org (Postfix) with ESMTPS id 998CE315DB for ; Tue, 29 Nov 2016 16:48:37 +0000 (UTC) Received: by mail-wj0-f195.google.com with SMTP id jb2so18917472wjb.3 for ; Tue, 29 Nov 2016 08:48:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=0doz9R4Rjja6R6iKgtvOSXRj9sXFVQoaXk71skxz8sw=; b=0p0fjBjS7gPPgDnpKPOsI8AhWH3Jzrv11R+1/CJafpiV3nKBqsNx1/nlarXm8b+ZNh 9OyKq13+rib2qle8A1RoU+5VsIVeEcOPwJMs9SydeoGwAyCr26VUf06/tLC3np+GwMgL HON07zGASkGmFlKss0uX/R5FW5KeIuLM8zPFYyMVCoYmsDF2HU6fOYq8QeiQxAm4lH2c 8593Lgbmk4DBMkxjp2yl7nM+SborzxObOlwPEJ/889WbgLL36HZgt7BkYOG3HjbKrAFh 1vT3kQUKOc8+nZvLPFSSGeNQOGuEa5TwZKA7Lnpv+lubYB089ERl/nSBn7m/bq8/Lg3p EelA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0doz9R4Rjja6R6iKgtvOSXRj9sXFVQoaXk71skxz8sw=; b=U1bag5qI830ghbTiD35+QldwPpZVN3K4TfEhltjXGWhzhT9LzUoRvvvFKPPlB/ZguZ R+3rjAXerV/kSS7FbvmZCL8DDbN3ireTcwi4MmRVEW4Xsl53L41obEwpVp7kst2v6Xr3 r4kzr+eT7Ul8SMusEHJHsDllAvwC4+vEwZfqNOpYtZT6xMq1HirSTb7I1RBThGhgz7L2 Zr+7aRGYdOsXS2rti8UQW+2BU9AkVHFU+Y41mEOUzDIeYGyfTHp+//cYWxMlPgMMvWQS VqQHT9/L+MmIPZh1KJkIz0vF7ykXykfkQlxVTbuOyEH0AmDWr6jewDNXqsCSjzUE85sM qPxg== X-Gm-Message-State: AKaTC01jiEoPn0kz12lwz6cdUYTqClk6s60dcg5C50eInX8XRjs6W+l7maGZLwtchTxHqQ== X-Received: by 10.194.54.99 with SMTP id i3mr24639363wjp.86.1480438115943; Tue, 29 Nov 2016 08:48:35 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:2e42:c8c0:644e:65c6:6e03:345f]) by smtp.gmail.com with ESMTPSA id 81sm3680977wmw.7.2016.11.29.08.48.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Nov 2016 08:48:34 -0800 (PST) From: Johan Oudinet To: buildroot@buildroot.org Date: Tue, 29 Nov 2016 17:47:51 +0100 Message-Id: <1480438071-11906-1-git-send-email-johan.oudinet@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH 1/1] nginx-dav-ext: New package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Nginx built-in support for webdav is missing support for two commands: PROPFIND and OPTIONS. Add an external module and an option in the nginx package to provide full webdav support. Signed-off-by: Johan Oudinet --- package/Config.in | 1 + package/nginx-dav-ext/Config.in | 7 +++++++ package/nginx-dav-ext/nginx-dav-ext.hash | 2 ++ package/nginx-dav-ext/nginx-dav-ext.mk | 12 ++++++++++++ package/nginx/Config.in | 10 ++++++++++ package/nginx/nginx.mk | 5 +++++ 6 files changed, 37 insertions(+) create mode 100644 package/nginx-dav-ext/Config.in create mode 100644 package/nginx-dav-ext/nginx-dav-ext.hash create mode 100644 package/nginx-dav-ext/nginx-dav-ext.mk diff --git a/package/Config.in b/package/Config.in index 9ed296f..687c600 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1544,6 +1544,7 @@ menu "Networking applications" source "package/nginx/Config.in" if BR2_PACKAGE_NGINX menu "External nginx modules" + source "package/nginx-dav-ext/Config.in" source "package/nginx-naxsi/Config.in" source "package/nginx-upload/Config.in" endmenu diff --git a/package/nginx-dav-ext/Config.in b/package/nginx-dav-ext/Config.in new file mode 100644 index 0000000..bf197dc --- /dev/null +++ b/package/nginx-dav-ext/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_NGINX_DAV_EXT + bool "nginx-dav-ext" + select BR2_PACKAGE_EXPAT + help + NGINX WebDAV missing commands support (PROPFIND & OPTIONS). + + https://github.com/arut/nginx-dav-ext-module diff --git a/package/nginx-dav-ext/nginx-dav-ext.hash b/package/nginx-dav-ext/nginx-dav-ext.hash new file mode 100644 index 0000000..ea7eb86 --- /dev/null +++ b/package/nginx-dav-ext/nginx-dav-ext.hash @@ -0,0 +1,2 @@ +# Locally computed +sha256 d428a0236c933779cb40ac8c91afb19d5c25a376dc3caab825bfd543e1ee530d nginx-dav-ext-v0.0.3.tar.gz diff --git a/package/nginx-dav-ext/nginx-dav-ext.mk b/package/nginx-dav-ext/nginx-dav-ext.mk new file mode 100644 index 0000000..6c2b3a2 --- /dev/null +++ b/package/nginx-dav-ext/nginx-dav-ext.mk @@ -0,0 +1,12 @@ +################################################################################ +# +# nginx-dav-ext +# +################################################################################ + +NGINX_DAV_EXT_VERSION = v0.0.3 +NGINX_DAV_EXT_SITE = $(call github,arut,nginx-dav-ext-module,$(NGINX_DAV_EXT_VERSION)) + +NGINX_DAV_EXT_DEPENDENCIES = expat + +$(eval $(generic-package)) diff --git a/package/nginx/Config.in b/package/nginx/Config.in index e6f2d96..6f339c7 100644 --- a/package/nginx/Config.in +++ b/package/nginx/Config.in @@ -85,6 +85,16 @@ config BR2_PACKAGE_NGINX_HTTP_DAV_MODULE help Enable ngx_http_dav_module +if BR2_PACKAGE_NGINX_HTTP_DAV_MODULE + +config BR2_PACKAGE_NGINX_HTTP_DAV_EXT_MODULE + bool "ngx_http_dav_ext_module" + select BR2_PACKAGE_NGINX_DAV_EXT + help + Enable ngx_http_dav_ext_module + +endif # BR2_PACKAGE_NGINX_HTTP_DAV_MODULE + config BR2_PACKAGE_NGINX_HTTP_FLV_MODULE bool "ngx_http_flv_module" help diff --git a/package/nginx/nginx.mk b/package/nginx/nginx.mk index 6563627..c99139b 100644 --- a/package/nginx/nginx.mk +++ b/package/nginx/nginx.mk @@ -167,6 +167,11 @@ else NGINX_CONF_OPTS += --without-http_rewrite_module endif +ifeq ($(BR2_PACKAGE_NGINX_HTTP_DAV_EXT_MODULE)$(BR2_PACKAGE_NGINX_DAV_EXT),yy) +NGINX_DEPENDENCIES += nginx-dav-ext +NGINX_CONF_OPTS += --add-module=$(NGINX_DAV_EXT_DIR) +endif + NGINX_CONF_OPTS += \ $(if $(BR2_PACKAGE_NGINX_HTTP_REALIP_MODULE),--with-http_realip_module) \ $(if $(BR2_PACKAGE_NGINX_HTTP_ADDITION_MODULE),--with-http_addition_module) \