nginx: bump to latest release and other
authorAnsuel Smith <redacted>
Thu, 6 Dec 2018 21:35:22 +0000 (22:35 +0100)
committerAnsuel Smith <redacted>
Fri, 7 Dec 2018 14:23:11 +0000 (15:23 +0100)
This bumps nginx to latest release, adds support for STREAM MODULE and bump rtmp version to fix a compilation error

Signed-off-by: Ansuel Smith <redacted>
net/nginx/Config.in
net/nginx/Config_ssl.in
net/nginx/Makefile
net/nginx/patches-nginx-rtmp/100-ngx_rtp_cenc.c-move-ngx_-config-core-.h-to-top.patch [deleted file]

index fac3de68c93cb1da936d06bd32662e34ae1d5f92..3bb1b03a17833ae60a00721f5a71b607c8518610 100644 (file)
@@ -221,6 +221,13 @@ config NGINX_HTTP_BROTLI
                Add support for brotli compression module.
        default n
 
+config NGINX_STREAM_CORE_MODULE
+       bool
+       prompt "Enable stream support"
+       help
+               Add support for NGINX request streaming.
+       default n
+
 config NGINX_RTMP_MODULE
        bool
        prompt "Enable RTMP module"
index cab6015c31690fd009ff8aa77e72a0cef79bb098..9325fba51affa9d3938c29aa12e550275a336ec7 100644 (file)
@@ -214,6 +214,13 @@ config NGINX_HTTP_BROTLI
                Add support for brotli compression module.
        default n
 
+config NGINX_STREAM_CORE_MODULE
+       bool
+       prompt "Enable stream support"
+       help
+               Add support for NGINX request streaming.
+       default n
+
 config NGINX_RTMP_MODULE
        bool
        prompt "Enable RTMP module"
index ce9b521e5a36d62d27e1cee8173c7213662f578b..e6c06924e53261b252776fb6e22734ad170acf26 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nginx
-PKG_VERSION:=1.15.6
-PKG_RELEASE:=3
+PKG_VERSION:=1.15.7
+PKG_RELEASE:=1
 
 PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://nginx.org/download/
-PKG_HASH:=a3d8c67c2035808c7c0d475fffe263db8c353b11521aa7ade468b780ed826cc6
+PKG_HASH:=8f22ea2f6c0e0a221b6ddc02b6428a3ff708e2ad55f9361102b1c9f4142bdf93
 
 PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de> \
                                Ansuel Smith <ansuelsmth@gmail.com>
@@ -66,6 +66,7 @@ PKG_CONFIG_DEPENDS := \
        CONFIG_NGINX_HTTP_SECURE_LINK \
        CONFIG_NGINX_HTTP_BROTLI \
        CONFIG_NGINX_HEADERS_MORE \
+       CONFIG_NGINX_STREAM_CORE_MODULE \
        CONFIG_NGINX_RTMP_MODULE \
        CONFIG_NGINX_TS_MODULE \
 
@@ -264,6 +265,9 @@ ifneq ($(BUILD_VARIANT),all-module)
   ifeq ($(CONFIG_NGINX_HTTP_SUB),y)
        ADDITIONAL_MODULES += --with-http_sub_module
   endif
+  ifeq ($(CONFIG_NGINX_STREAM_CORE_MODULE),y)
+    ADDITIONAL_MODULES += --with-stream
+  endif
   ifeq ($(CONFIG_NGINX_HEADERS_MORE),y)
     ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-headers-more
   endif
@@ -289,6 +293,7 @@ else
        --with-http_dav_module --add-module=$(PKG_BUILD_DIR)/nginx-dav-ext-module \
        --with-http_auth_request_module --with-http_v2_module --with-http_realip_module \
        --with-http_secure_link_module --with-http_sub_module --add-module=$(PKG_BUILD_DIR)/nginx-headers-more \
+       --with-stream \
        --add-module=$(PKG_BUILD_DIR)/nginx-brotli --add-module=$(PKG_BUILD_DIR)/nginx-rtmp \
        --add-module=$(PKG_BUILD_DIR)/nginx-ts
   config_files += koi-utf koi-win win-utf fastcgi_params 
@@ -432,11 +437,11 @@ endif
 
 ifeq ($(CONFIG_NGINX_RTMP_MODULE),y)
   define Download/nginx-rtmp
-    VERSION:=c0e7c000ed860ef547a59ecf31f775db63f92b56
+    VERSION:=f0ea62342a4eca504b311cd5df910d026c3ea4cf
     SUBDIR:=nginx-rtmp
     FILE:=ngx-rtmp-module-$(PKG_VERSION)-$$(VERSION).tar.gz
     URL:=https://github.com/ut0mt8/nginx-rtmp-module.git
-    MIRROR_HASH:=ceb8264d920f3ce2fe96af97af824d6800095e3b3ff00e61f088bef9873f421e
+    MIRROR_HASH:=9ba7625718d21f658c4878729271832a07bd989165f1d1c720b3a9b54cf738cc
     PROTO:=git
   endef
   $(eval $(call Download,nginx-rtmp))
@@ -444,7 +449,6 @@ ifeq ($(CONFIG_NGINX_RTMP_MODULE),y)
   define  Prepare/nginx-rtmp
        $(eval $(Download/nginx-rtmp))
        gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
-       $(call PatchDir,$(PKG_BUILD_DIR)/nginx-rtmp,./patches-nginx-rtmp)
   endef
 endif
 
diff --git a/net/nginx/patches-nginx-rtmp/100-ngx_rtp_cenc.c-move-ngx_-config-core-.h-to-top.patch b/net/nginx/patches-nginx-rtmp/100-ngx_rtp_cenc.c-move-ngx_-config-core-.h-to-top.patch
deleted file mode 100644 (file)
index 494d9be..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-From df4113fb4d9177c7cfb0639b5e92b1fadfd4c174 Mon Sep 17 00:00:00 2001
-From: Eneas U de Queiroz <cote2004-github@yahoo.com>
-Date: Thu, 6 Dec 2018 15:54:23 -0200
-Subject: [PATCH] ngx_rtp_cenc.c: move ngx_{config,core}.h to top
-
-Fixes compilation error: unknown type name 'cpu_set_t'
-
-Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
-
-diff --git a/dash/ngx_rtmp_cenc.c b/dash/ngx_rtmp_cenc.c
-index f0b81e7..e4af2b1 100644
---- a/dash/ngx_rtmp_cenc.c
-+++ b/dash/ngx_rtmp_cenc.c
-@@ -1,10 +1,10 @@
-+#include <ngx_config.h>
-+#include <ngx_core.h>
- #include <openssl/aes.h>
- #include <openssl/rand.h>
- #include <openssl/evp.h>
--#include <ngx_config.h>
--#include <ngx_core.h>
- #include <ngx_rtmp.h>
- #include "ngx_rtmp_cenc.h"
git clone https://git.99rst.org/PROJECT