mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Update nginx package
This commit is contained in:
parent
6b4e5d99bd
commit
e633e10b09
7 changed files with 623 additions and 206 deletions
|
@ -202,6 +202,11 @@ config NGINX_HTTP_SECURE_LINK
|
||||||
prompt "Enable HTTP secure link module"
|
prompt "Enable HTTP secure link module"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config NGINX_HTTP_SUB
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP sub module"
|
||||||
|
default n
|
||||||
|
|
||||||
config NGINX_HEADERS_MORE
|
config NGINX_HEADERS_MORE
|
||||||
bool
|
bool
|
||||||
prompt "Enable Headers_more module"
|
prompt "Enable Headers_more module"
|
||||||
|
@ -218,7 +223,24 @@ config NGINX_HTTP_BROTLI
|
||||||
|
|
||||||
config NGINX_STREAM
|
config NGINX_STREAM
|
||||||
bool
|
bool
|
||||||
prompt "Enable stream module"
|
prompt "Enable stream support"
|
||||||
|
help
|
||||||
|
Add support for stream module.
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config NGINX_RTMP_MODULE
|
||||||
|
bool
|
||||||
|
prompt "Enable RTMP module"
|
||||||
|
depends on NGINX_SSL
|
||||||
|
help
|
||||||
|
Add support for NGINX-based Media Streaming Server module.
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_TS_MODULE
|
||||||
|
bool
|
||||||
|
prompt "Enable TS module"
|
||||||
|
help
|
||||||
|
Add support for MPEG-TS Live Module module.
|
||||||
|
default n
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
238
nginx/Config_ssl.in
Normal file
238
nginx/Config_ssl.in
Normal file
|
@ -0,0 +1,238 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2010-2016 OpenWrt.org
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
menu "Configuration"
|
||||||
|
depends on PACKAGE_nginx-ssl
|
||||||
|
|
||||||
|
config NGINX_DAV
|
||||||
|
bool
|
||||||
|
prompt "Enable WebDAV module"
|
||||||
|
help
|
||||||
|
Enable the HTTP and WebDAV methods PUT, DELETE, MKCOL, COPY and MOVE.
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_FLV
|
||||||
|
bool
|
||||||
|
prompt "Enable FLV module"
|
||||||
|
help
|
||||||
|
Provides the ability to seek within FLV (Flash) files using time-based offsets.
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_STUB_STATUS
|
||||||
|
bool
|
||||||
|
prompt "Enable stub status module"
|
||||||
|
help
|
||||||
|
Enable the stub status module which gives some status from the server.
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_HTTP_CHARSET
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP charset module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_GZIP
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP gzip module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_SSI
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP ssi module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_USERID
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP userid module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_ACCESS
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP access module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_AUTH_BASIC
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP auth basic"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_AUTH_REQUEST
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP auth request module"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_HTTP_AUTOINDEX
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP autoindex module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_GEO
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP geo module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_MAP
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP map module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_SPLIT_CLIENTS
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP split clients"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_REFERER
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP referer module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_REWRITE
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP rewrite module"
|
||||||
|
select NGINX_PCRE
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_PROXY
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP proxy module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_FASTCGI
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP fastcgi module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_UWSGI
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP uwsgi module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_SCGI
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP scgi module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_MEMCACHED
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP memcached module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_LIMIT_CONN
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP limit conn"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_LIMIT_REQ
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP limit req"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_EMPTY_GIF
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP empty gif"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_BROWSER
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP browser module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_UPSTREAM_HASH
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP hash module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_UPSTREAM_IP_HASH
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP IP hash module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_UPSTREAM_LEAST_CONN
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP least conn module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_UPSTREAM_KEEPALIVE
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP keepalive module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_CACHE
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP cache"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_V2
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP_V2 module"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_PCRE
|
||||||
|
bool
|
||||||
|
prompt "Enable PCRE library usage"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_NAXSI
|
||||||
|
bool
|
||||||
|
prompt "Enable NAXSI module"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_LUA
|
||||||
|
bool
|
||||||
|
prompt "Enable Lua module"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_HTTP_REAL_IP
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP real ip module"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_HTTP_SECURE_LINK
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP secure link module"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_HTTP_SUB
|
||||||
|
bool
|
||||||
|
prompt "Enable HTTP sub module"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_HEADERS_MORE
|
||||||
|
bool
|
||||||
|
prompt "Enable Headers_more module"
|
||||||
|
help
|
||||||
|
Set and clear input and output headers...more than "add"!
|
||||||
|
default y
|
||||||
|
|
||||||
|
config NGINX_HTTP_BROTLI
|
||||||
|
bool
|
||||||
|
prompt "Enable Brotli compression module"
|
||||||
|
help
|
||||||
|
Add support for brotli compression module.
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_STREAM
|
||||||
|
bool
|
||||||
|
prompt "Enable stream module"
|
||||||
|
help
|
||||||
|
Add support for stream module.
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_RTMP_MODULE
|
||||||
|
bool
|
||||||
|
prompt "Enable RTMP module"
|
||||||
|
help
|
||||||
|
Add support for NGINX-based Media Streaming Server module.
|
||||||
|
default n
|
||||||
|
|
||||||
|
config NGINX_TS_MODULE
|
||||||
|
bool
|
||||||
|
prompt "Enable TS module"
|
||||||
|
help
|
||||||
|
Add support for MPEG-TS Live Module module.
|
||||||
|
default n
|
||||||
|
|
||||||
|
endmenu
|
447
nginx/Makefile
447
nginx/Makefile
|
@ -8,18 +8,20 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=nginx
|
PKG_NAME:=nginx
|
||||||
PKG_VERSION:=1.14.0
|
PKG_VERSION:=1.15.1
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://nginx.org/download/
|
PKG_SOURCE_URL:=http://nginx.org/download/
|
||||||
PKG_HASH:=5d15becbf69aba1fe33f8d416d97edd95ea8919ea9ac519eff9bafebb6022cb5
|
PKG_HASH:=c7206858d7f832b8ef73a45c9b8f8e436bcb1ee88db2bc85b8e438ecec9d5460
|
||||||
|
|
||||||
PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
|
PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de> \
|
||||||
|
Ansuel Smith <ansuelsmth@gmail.com>
|
||||||
PKG_LICENSE:=2-clause BSD-like license
|
PKG_LICENSE:=2-clause BSD-like license
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/nginx-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
|
PKG_FIXUP:=autoreconf
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
@ -58,202 +60,279 @@ PKG_CONFIG_DEPENDS := \
|
||||||
CONFIG_NGINX_HTTP_CACHE \
|
CONFIG_NGINX_HTTP_CACHE \
|
||||||
CONFIG_NGINX_HTTP_V2 \
|
CONFIG_NGINX_HTTP_V2 \
|
||||||
CONFIG_NGINX_PCRE \
|
CONFIG_NGINX_PCRE \
|
||||||
CONFIG_NGINX_STREAM \
|
|
||||||
CONFIG_NGINX_NAXSI \
|
CONFIG_NGINX_NAXSI \
|
||||||
CONFIG_NGINX_LUA \
|
CONFIG_NGINX_LUA \
|
||||||
CONFIG_NGINX_HTTP_REAL_IP \
|
CONFIG_NGINX_HTTP_REAL_IP \
|
||||||
CONFIG_NGINX_HTTP_SECURE_LINK \
|
CONFIG_NGINX_HTTP_SECURE_LINK \
|
||||||
CONFIG_NGINX_HTTP_BROTLI \
|
CONFIG_NGINX_HTTP_BROTLI \
|
||||||
CONFIG_NGINX_HEADERS_MORE
|
CONFIG_NGINX_STREAM \
|
||||||
|
CONFIG_NGINX_HEADERS_MORE \
|
||||||
|
CONFIG_NGINX_RTMP_MODULE \
|
||||||
|
CONFIG_NGINX_TS_MODULE \
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/nginx
|
define Package/nginx/default
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
SUBMENU:=Web Servers/Proxies
|
SUBMENU:=Web Servers/Proxies
|
||||||
TITLE:=Nginx web server
|
TITLE:=Nginx web server
|
||||||
URL:=http://nginx.org/
|
URL:=http://nginx.org/
|
||||||
DEPENDS:=+NGINX_PCRE:libpcre +(NGINX_SSL||NGINX_HTTP_CACHE||NGINX_HTTP_AUTH_BASIC):libopenssl +NGINX_HTTP_GZIP:zlib +NGINX_LUA:liblua +libpthread
|
DEPENDS:=+NGINX_PCRE:libpcre +(NGINX_SSL||NGINX_HTTP_CACHE||NGINX_HTTP_AUTH_BASIC):libopenssl \
|
||||||
|
+NGINX_HTTP_GZIP:zlib +NGINX_LUA:liblua +libpthread
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/nginx/description
|
define Package/nginx/description
|
||||||
nginx is an HTTP and reverse proxy server, as well as a mail proxy server,
|
nginx is an HTTP and reverse proxy server, as well as a mail proxy server, \
|
||||||
written by Igor Sysoev.
|
written by Igor Sysoev. (Some module require SSL module enable to show up in \
|
||||||
|
config menu)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/nginx
|
||||||
|
$(Package/nginx/default)
|
||||||
|
VARIANT:=no-ssl
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/nginx-ssl
|
||||||
|
$(Package/nginx/default)
|
||||||
|
TITLE += with SSL support
|
||||||
|
DEPENDS +=+libopenssl
|
||||||
|
VARIANT:=ssl
|
||||||
|
PROVIDES:=nginx
|
||||||
|
endef
|
||||||
|
|
||||||
|
Package/nginx-ssl/description = $(Package/nginx/description) \
|
||||||
|
This varian is compiled with SSL support enabled. To enable additional module \
|
||||||
|
select them in the nginx default configuration menu.
|
||||||
|
|
||||||
|
define Package/nginx-all-module
|
||||||
|
$(Package/nginx/default)
|
||||||
|
TITLE += with ALL module selected
|
||||||
|
DEPENDS:=+libpcre +libopenssl +zlib +liblua +libpthread
|
||||||
|
VARIANT:=all-module
|
||||||
|
PROVIDES:=nginx
|
||||||
|
endef
|
||||||
|
|
||||||
|
Package/nginx-all-module/description = $(Package/nginx/description) \
|
||||||
|
This varian is compiled with ALL module selected.
|
||||||
|
|
||||||
define Package/nginx/config
|
define Package/nginx/config
|
||||||
source "$(SOURCE)/Config.in"
|
source "$(SOURCE)/Config.in"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/nginx-ssl/config
|
||||||
|
source "$(SOURCE)/Config_ssl.in"
|
||||||
|
endef
|
||||||
|
|
||||||
config_files=nginx.conf mime.types
|
config_files=nginx.conf mime.types
|
||||||
|
|
||||||
define Package/nginx/conffiles
|
define Package/nginx/conffiles
|
||||||
/etc/nginx/
|
/etc/nginx/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Package/nginx-ssl/conffiles = $(Package/nginx/conffiles)
|
||||||
|
Package/nginx-all-module/conffiles = $(Package/nginx/conffiles)
|
||||||
|
|
||||||
|
|
||||||
ADDITIONAL_MODULES:=
|
ADDITIONAL_MODULES:=
|
||||||
ifeq ($(CONFIG_NGINX_NAXSI),y)
|
|
||||||
ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-naxsi/naxsi_src
|
ifneq ($(BUILD_VARIANT),all-module)
|
||||||
endif
|
ifneq ($(CONFIG_NGINX_HTTP_CACHE),y)
|
||||||
ifeq ($(CONFIG_NGINX_LUA),y)
|
|
||||||
ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/lua-nginx
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_IPV6),y)
|
|
||||||
ADDITIONAL_MODULES += --with-ipv6
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_NGINX_STUB_STATUS),y)
|
|
||||||
ADDITIONAL_MODULES += --with-http_stub_status_module
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_NGINX_FLV),y)
|
|
||||||
ADDITIONAL_MODULES += --with-http_flv_module
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_NGINX_SSL),y)
|
|
||||||
ADDITIONAL_MODULES += --with-http_ssl_module
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_NGINX_DAV),y)
|
|
||||||
ADDITIONAL_MODULES += --with-http_dav_module
|
|
||||||
endif
|
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_CACHE),y)
|
|
||||||
ADDITIONAL_MODULES += --without-http-cache
|
ADDITIONAL_MODULES += --without-http-cache
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_PCRE),y)
|
ifneq ($(CONFIG_NGINX_PCRE),y)
|
||||||
ADDITIONAL_MODULES += --without-pcre
|
ADDITIONAL_MODULES += --without-pcre
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_CHARSET),y)
|
ifneq ($(CONFIG_NGINX_HTTP_CHARSET),y)
|
||||||
ADDITIONAL_MODULES += --without-http_charset_module
|
ADDITIONAL_MODULES += --without-http_charset_module
|
||||||
else
|
else
|
||||||
config_files += koi-utf koi-win win-utf
|
config_files += koi-utf koi-win win-utf
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_GZIP),y)
|
ifneq ($(CONFIG_NGINX_HTTP_GZIP),y)
|
||||||
ADDITIONAL_MODULES += --without-http_gzip_module
|
ADDITIONAL_MODULES += --without-http_gzip_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_SSI),y)
|
ifneq ($(CONFIG_NGINX_HTTP_SSI),y)
|
||||||
ADDITIONAL_MODULES += --without-http_ssi_module
|
ADDITIONAL_MODULES += --without-http_ssi_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_USERID),y)
|
ifneq ($(CONFIG_NGINX_HTTP_USERID),y)
|
||||||
ADDITIONAL_MODULES += --without-http_userid_module
|
ADDITIONAL_MODULES += --without-http_userid_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_ACCESS),y)
|
ifneq ($(CONFIG_NGINX_HTTP_ACCESS),y)
|
||||||
ADDITIONAL_MODULES += --without-http_access_module
|
ADDITIONAL_MODULES += --without-http_access_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_AUTH_BASIC),y)
|
ifneq ($(CONFIG_NGINX_HTTP_AUTH_BASIC),y)
|
||||||
ADDITIONAL_MODULES += --without-http_auth_basic_module
|
ADDITIONAL_MODULES += --without-http_auth_basic_module
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_NGINX_HTTP_AUTH_REQUEST),y)
|
ifneq ($(CONFIG_NGINX_HTTP_AUTOINDEX),y)
|
||||||
ADDITIONAL_MODULES += --with-http_auth_request_module
|
|
||||||
endif
|
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_AUTOINDEX),y)
|
|
||||||
ADDITIONAL_MODULES += --without-http_autoindex_module
|
ADDITIONAL_MODULES += --without-http_autoindex_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_GEO),y)
|
ifneq ($(CONFIG_NGINX_HTTP_GEO),y)
|
||||||
ADDITIONAL_MODULES += --without-http_geo_module
|
ADDITIONAL_MODULES += --without-http_geo_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_MAP),y)
|
ifneq ($(CONFIG_NGINX_HTTP_MAP),y)
|
||||||
ADDITIONAL_MODULES += --without-http_map_module
|
ADDITIONAL_MODULES += --without-http_map_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_SPLIT_CLIENTS),y)
|
ifneq ($(CONFIG_NGINX_HTTP_SPLIT_CLIENTS),y)
|
||||||
ADDITIONAL_MODULES += --without-http_split_clients_module
|
ADDITIONAL_MODULES += --without-http_split_clients_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_REFERER),y)
|
ifneq ($(CONFIG_NGINX_HTTP_REFERER),y)
|
||||||
ADDITIONAL_MODULES += --without-http_referer_module
|
ADDITIONAL_MODULES += --without-http_referer_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_REWRITE),y)
|
ifneq ($(CONFIG_NGINX_HTTP_REWRITE),y)
|
||||||
ADDITIONAL_MODULES += --without-http_rewrite_module
|
ADDITIONAL_MODULES += --without-http_rewrite_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_PROXY),y)
|
ifneq ($(CONFIG_NGINX_HTTP_PROXY),y)
|
||||||
ADDITIONAL_MODULES += --without-http_proxy_module
|
ADDITIONAL_MODULES += --without-http_proxy_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_FASTCGI),y)
|
ifneq ($(CONFIG_NGINX_HTTP_FASTCGI),y)
|
||||||
ADDITIONAL_MODULES += --without-http_fastcgi_module
|
ADDITIONAL_MODULES += --without-http_fastcgi_module
|
||||||
else
|
else
|
||||||
config_files += fastcgi_params
|
config_files += fastcgi_params
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_UWSGI),y)
|
ifneq ($(CONFIG_NGINX_HTTP_UWSGI),y)
|
||||||
ADDITIONAL_MODULES += --without-http_uwsgi_module
|
ADDITIONAL_MODULES += --without-http_uwsgi_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_SCGI),y)
|
ifneq ($(CONFIG_NGINX_HTTP_SCGI),y)
|
||||||
ADDITIONAL_MODULES += --without-http_scgi_module
|
ADDITIONAL_MODULES += --without-http_scgi_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_MEMCACHED),y)
|
ifneq ($(CONFIG_NGINX_HTTP_MEMCACHED),y)
|
||||||
ADDITIONAL_MODULES += --without-http_memcached_module
|
ADDITIONAL_MODULES += --without-http_memcached_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_LIMIT_CONN),y)
|
ifneq ($(CONFIG_NGINX_HTTP_LIMIT_CONN),y)
|
||||||
ADDITIONAL_MODULES += --without-http_limit_conn_module
|
ADDITIONAL_MODULES += --without-http_limit_conn_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_LIMIT_REQ),y)
|
ifneq ($(CONFIG_NGINX_HTTP_LIMIT_REQ),y)
|
||||||
ADDITIONAL_MODULES += --without-http_limit_req_module
|
ADDITIONAL_MODULES += --without-http_limit_req_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_EMPTY_GIF),y)
|
ifneq ($(CONFIG_NGINX_HTTP_EMPTY_GIF),y)
|
||||||
ADDITIONAL_MODULES += --without-http_empty_gif_module
|
ADDITIONAL_MODULES += --without-http_empty_gif_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_BROWSER),y)
|
ifneq ($(CONFIG_NGINX_HTTP_BROWSER),y)
|
||||||
ADDITIONAL_MODULES += --without-http_browser_module
|
ADDITIONAL_MODULES += --without-http_browser_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_HASH),y)
|
ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_HASH),y)
|
||||||
ADDITIONAL_MODULES += --without-http_upstream_hash_module
|
ADDITIONAL_MODULES += --without-http_upstream_hash_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_IP_HASH),y)
|
ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_IP_HASH),y)
|
||||||
ADDITIONAL_MODULES += --without-http_upstream_ip_hash_module
|
ADDITIONAL_MODULES += --without-http_upstream_ip_hash_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_LEAST_CONN),y)
|
ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_LEAST_CONN),y)
|
||||||
ADDITIONAL_MODULES += --without-http_upstream_least_conn_module
|
ADDITIONAL_MODULES += --without-http_upstream_least_conn_module
|
||||||
endif
|
endif
|
||||||
ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_KEEPALIVE),y)
|
ifneq ($(CONFIG_NGINX_HTTP_UPSTREAM_KEEPALIVE),y)
|
||||||
ADDITIONAL_MODULES += --without-http_upstream_keepalive_module
|
ADDITIONAL_MODULES += --without-http_upstream_keepalive_module
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_NGINX_HTTP_V2),y)
|
|
||||||
|
ifeq ($(BUILD_VARIANT),ssl)
|
||||||
|
ifneq ($(CONFIG_NGINX_SSL),y)
|
||||||
|
ADDITIONAL_MODULES += --with-http_ssl_module
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_NGINX_SSL),y)
|
||||||
|
ADDITIONAL_MODULES += --with-http_ssl_module
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_NGINX_NAXSI),y)
|
||||||
|
ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-naxsi/naxsi_src
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_NGINX_LUA),y)
|
||||||
|
ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/lua-nginx
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_IPV6),y)
|
||||||
|
ADDITIONAL_MODULES += --with-ipv6
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_NGINX_STUB_STATUS),y)
|
||||||
|
ADDITIONAL_MODULES += --with-http_stub_status_module
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_NGINX_FLV),y)
|
||||||
|
ADDITIONAL_MODULES += --with-http_flv_module
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_NGINX_DAV),y)
|
||||||
|
ADDITIONAL_MODULES += --with-http_dav_module
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_NGINX_HTTP_AUTH_REQUEST),y)
|
||||||
|
ADDITIONAL_MODULES += --with-http_auth_request_module
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_NGINX_HTTP_V2),y)
|
||||||
ADDITIONAL_MODULES += --with-http_v2_module
|
ADDITIONAL_MODULES += --with-http_v2_module
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_NGINX_HTTP_REAL_IP),y)
|
ifeq ($(CONFIG_NGINX_HTTP_REAL_IP),y)
|
||||||
ADDITIONAL_MODULES += --with-http_realip_module
|
ADDITIONAL_MODULES += --with-http_realip_module
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_NGINX_HTTP_SECURE_LINK),y)
|
ifeq ($(CONFIG_NGINX_HTTP_SECURE_LINK),y)
|
||||||
ADDITIONAL_MODULES += --with-http_secure_link_module
|
ADDITIONAL_MODULES += --with-http_secure_link_module
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_NGINX_HEADERS_MORE),y)
|
ifeq ($(CONFIG_NGINX_HTTP_SUB),y)
|
||||||
|
ADDITIONAL_MODULES += --with-http_sub_module
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_NGINX_HEADERS_MORE),y)
|
||||||
ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-headers-more
|
ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-headers-more
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_NGINX_HTTP_BROTLI),y)
|
ifeq ($(CONFIG_NGINX_HTTP_BROTLI),y)
|
||||||
ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-brotli
|
ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-brotli
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_NGINX_STREAM),y)
|
ifeq ($(CONFIG_NGINX_STREAM),y)
|
||||||
ADDITIONAL_MODULES += --with-stream
|
ADDITIONAL_MODULES += --with-stream
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_NGINX_RTMP_MODULE),y)
|
||||||
|
ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-rtmp
|
||||||
|
endif
|
||||||
|
ifeq ($(CONFIG_NGINX_TS_MODULE),y)
|
||||||
|
ADDITIONAL_MODULES += --add-module=$(PKG_BUILD_DIR)/nginx-ts
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
CONFIG_NGINX_HEADERS_MORE:=y
|
||||||
|
CONFIG_NGINX_HTTP_BROTLI:=y
|
||||||
|
CONFIG_NGINX_RTMP_MODULE:=y
|
||||||
|
CONFIG_NGINX_TS_MODULE:=y
|
||||||
|
CONFIG_NGINX_NAXSI:=y
|
||||||
|
CONFIG_NGINX_LUA:=y
|
||||||
|
ADDITIONAL_MODULES += --with-http_ssl_module --add-module=$(PKG_BUILD_DIR)/nginx-naxsi/naxsi_src \
|
||||||
|
--add-module=$(PKG_BUILD_DIR)/lua-nginx --with-ipv6 --with-http_stub_status_module --with-http_flv_module \
|
||||||
|
--with-http_dav_module --with-stream --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 \
|
||||||
|
--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
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define Package/nginx-mod-luci
|
define Package/nginx-mod-luci/default
|
||||||
|
TITLE:=Nginx on LuCI
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
SUBMENU:=Web Servers/Proxies
|
SUBMENU:=Web Servers/Proxies
|
||||||
TITLE:=Support file for Nginx
|
TITLE:=Support file for Nginx
|
||||||
URL:=http://nginx.org/
|
URL:=http://nginx.org/
|
||||||
DEPENDS:=nginx +uwsgi-cgi +uwsgi-cgi-luci-support
|
DEPENDS:=+uwsgi-cgi +uwsgi-cgi-luci-support
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/nginx-mod-luci
|
||||||
|
$(Package/nginx-mod-luci/default)
|
||||||
|
DEPENDS += +nginx
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/nginx-mod-luci/description
|
define Package/nginx-mod-luci/description
|
||||||
Support file for LuCI in nginx (include custom nginx configuration, autostart script for uwsgi)
|
Support file for LuCI in nginx. Include custom nginx configuration, autostart script for uwsgi.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/nginx-mod-luci-ssl
|
define Package/nginx-mod-luci-ssl
|
||||||
SECTION:=net
|
$(Package/nginx-mod-luci/default)
|
||||||
CATEGORY:=Network
|
TITLE += with HTTPS support
|
||||||
SUBMENU:=Web Servers/Proxies
|
DEPENDS += +nginx-ssl
|
||||||
TITLE:=Support file for Nginx (SSL)
|
|
||||||
URL:=http://nginx.org/
|
|
||||||
DEPENDS:=nginx +nginx-mod-luci
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/nginx-mod-luci-ssl/description
|
Package/nginx-mod-luci-ssl/description = $(define Package/nginx-mod-luci/description) \
|
||||||
Support file for LuCI in nginx (include custom nginx configuration, autostart script for uwsgi, redirect from http to https)
|
This also include redirect from http to https and cert autogeneration.
|
||||||
endef
|
|
||||||
|
|
||||||
TARGET_CFLAGS += -fvisibility=hidden -ffunction-sections -fdata-sections -DNGX_LUA_NO_BY_LUA_BLOCK -DNGX_HAVE_GCC_ATOMIC
|
TARGET_CFLAGS += -fvisibility=hidden -ffunction-sections -fdata-sections -DNGX_LUA_NO_BY_LUA_BLOCK
|
||||||
TARGET_LDFLAGS += -Wl,--gc-sections
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
||||||
|
|
||||||
define Build/Configure
|
ifeq ($(CONFIG_NGINX_LUA),y)
|
||||||
( cd $(PKG_BUILD_DIR) ; \
|
CONFIGURE_VARS += LUA_INC=$(STAGING_DIR)/usr/include \
|
||||||
$(if $(CONFIG_NGINX_LUA),LUA_INC=$(STAGING_DIR)/usr/include LUA_LIB=$(STAGING_DIR)/usr/lib) \
|
LUA_LIB=$(STAGING_DIR)/usr/lib
|
||||||
./configure \
|
endif
|
||||||
|
|
||||||
|
CONFIGURE_ARGS += \
|
||||||
--crossbuild=Linux::$(ARCH) \
|
--crossbuild=Linux::$(ARCH) \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--conf-path=/etc/nginx/nginx.conf \
|
--conf-path=/etc/nginx/nginx.conf \
|
||||||
|
@ -268,9 +347,7 @@ define Build/Configure
|
||||||
--with-cc="$(TARGET_CC)" \
|
--with-cc="$(TARGET_CC)" \
|
||||||
--with-cc-opt="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
|
--with-cc-opt="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
|
||||||
--with-ld-opt="$(TARGET_LDFLAGS)" \
|
--with-ld-opt="$(TARGET_LDFLAGS)" \
|
||||||
--without-http_upstream_zone_module \
|
--without-http_upstream_zone_module
|
||||||
)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/nginx-mod-luci/install
|
define Package/nginx-mod-luci/install
|
||||||
$(INSTALL_DIR) $(1)/etc/nginx
|
$(INSTALL_DIR) $(1)/etc/nginx
|
||||||
|
@ -281,6 +358,7 @@ define Package/nginx-mod-luci/install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/nginx-mod-luci-ssl/install
|
define Package/nginx-mod-luci-ssl/install
|
||||||
|
$(Package/nginx-mod-luci/install)
|
||||||
$(INSTALL_DIR) $(1)/etc/nginx
|
$(INSTALL_DIR) $(1)/etc/nginx
|
||||||
$(INSTALL_BIN) ./files-luci-support/luci_nginx_ssl.conf $(1)/etc/nginx/luci_nginx_ssl.conf
|
$(INSTALL_BIN) ./files-luci-support/luci_nginx_ssl.conf $(1)/etc/nginx/luci_nginx_ssl.conf
|
||||||
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
||||||
|
@ -303,67 +381,130 @@ endif
|
||||||
$(if $(CONFIG_NGINX_NAXSI),$(chmod 0640 $(1)/etc/nginx/naxsi_core.rules))
|
$(if $(CONFIG_NGINX_NAXSI),$(chmod 0640 $(1)/etc/nginx/naxsi_core.rules))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Package/nginx-ssl/install = $(Package/nginx/install)
|
||||||
|
Package/nginx-all-module/install = $(Package/nginx/install)
|
||||||
|
|
||||||
define Build/Prepare
|
define Build/Prepare
|
||||||
$(call Build/Prepare/Default)
|
$(Build/Prepare/Default)
|
||||||
$(if $(CONFIG_NGINX_NAXSI),$(call Prepare/nginx-naxsi))
|
$(Prepare/nginx-naxsi)
|
||||||
$(if $(CONFIG_NGINX_LUA),$(call Prepare/lua-nginx))
|
$(Prepare/lua-nginx)
|
||||||
$(if $(CONFIG_NGINX_HTTP_BROTLI),$(call Prepare/nginx-brotli))
|
$(Prepare/nginx-brotli)
|
||||||
$(if $(CONFIG_NGINX_HEADERS_MORE),$(call Prepare/nginx-headers-more))
|
$(Prepare/nginx-headers-more)
|
||||||
|
$(Prepare/nginx-rtmp)
|
||||||
|
$(Prepare/nginx-ts)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Download/nginx-headers-more
|
|
||||||
|
ifeq ($(CONFIG_NGINX_HEADERS_MORE),y)
|
||||||
|
define Download/nginx-headers-more
|
||||||
VERSION:=a9f7c7e86cc7441d04e2f11f01c2e3a9c4b0301d
|
VERSION:=a9f7c7e86cc7441d04e2f11f01c2e3a9c4b0301d
|
||||||
SUBDIR:=nginx-headers-more
|
SUBDIR:=nginx-headers-more
|
||||||
FILE:=headers-more-nginx-module-$(PKG_VERSION)-$$(VERSION).tar.gz
|
FILE:=headers-more-nginx-module-$(PKG_VERSION)-$$(VERSION).tar.gz
|
||||||
URL:=https://github.com/openresty/headers-more-nginx-module.git
|
URL:=https://github.com/openresty/headers-more-nginx-module.git
|
||||||
|
MIRROR_HASH:=432609015719aaa7241e5166c7cda427acbe004f725887f78ef629d51bd9cb3f
|
||||||
PROTO:=git
|
PROTO:=git
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Prepare/nginx-headers-more
|
|
||||||
$(eval $(call Download,nginx-headers-more))
|
$(eval $(call Download,nginx-headers-more))
|
||||||
gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Download/nginx-brotli
|
define Prepare/nginx-headers-more
|
||||||
VERSION:=37ab9b2933a0b756ba3447000b7f31d432ed8228
|
$(eval $(Download/nginx-headers-more))
|
||||||
|
gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_NGINX_HTTP_BROTLI),y)
|
||||||
|
define Download/nginx-brotli
|
||||||
|
VERSION:=e26248ee361c04e25f581b92b85d95681bdffb39
|
||||||
SUBDIR:=nginx-brotli
|
SUBDIR:=nginx-brotli
|
||||||
FILE:=ngx-brotli-module-$(PKG_VERSION)-$$(VERSION).tar.gz
|
FILE:=ngx-brotli-module-$(PKG_VERSION)-$$(VERSION).tar.gz
|
||||||
URL:=https://github.com/eustas/ngx_brotli.git
|
URL:=https://github.com/eustas/ngx_brotli.git
|
||||||
|
MIRROR_HASH:=76b891ba49f82f0cfbc9cba875646e26ee986b522373e0aa2698a9923a4adcdb
|
||||||
PROTO:=git
|
PROTO:=git
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Prepare/nginx-brotli
|
|
||||||
$(eval $(call Download,nginx-brotli))
|
$(eval $(call Download,nginx-brotli))
|
||||||
gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Download/nginx-naxsi
|
define Prepare/nginx-brotli
|
||||||
VERSION:=fc4740f9734cabc1ce4c9d4cddc4b472eab1cc4b
|
$(eval $(Download/nginx-brotli))
|
||||||
|
gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_NGINX_RTMP_MODULE),y)
|
||||||
|
define Download/nginx-rtmp
|
||||||
|
VERSION:=791b6136f02bc9613daf178723ac09f4df5a3bbf
|
||||||
|
SUBDIR:=nginx-rtmp
|
||||||
|
FILE:=ngx-rtmp-module-$(PKG_VERSION)-$$(VERSION).tar.gz
|
||||||
|
URL:=https://github.com/arut/nginx-rtmp-module.git
|
||||||
|
MIRROR_HASH:=8db3f7b545ce98f47415e0436e12dfb55ae787afd3cd9515b5642c7b9dc0ef00
|
||||||
|
PROTO:=git
|
||||||
|
endef
|
||||||
|
$(eval $(call Download,nginx-rtmp))
|
||||||
|
|
||||||
|
define Prepare/nginx-rtmp
|
||||||
|
$(eval $(call Download,nginx-rtmp))
|
||||||
|
gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_NGINX_TS_MODULE),y)
|
||||||
|
define Download/nginx-ts
|
||||||
|
VERSION:=ef2f874d95cc75747eb625a292524a702aefb0fd
|
||||||
|
SUBDIR:=nginx-ts
|
||||||
|
FILE:=ngx-ts-module-$(PKG_VERSION)-$$(VERSION).tar.gz
|
||||||
|
URL:=https://github.com/arut/nginx-ts-module.git
|
||||||
|
MIRROR_HASH:=31ecc9968b928886b54884138eafe2fa747648bca5094d4c3132e8ae9509d1d3
|
||||||
|
PROTO:=git
|
||||||
|
endef
|
||||||
|
$(eval $(call Download,nginx-ts))
|
||||||
|
|
||||||
|
define Prepare/nginx-ts
|
||||||
|
$(eval $(call Download,nginx-ts))
|
||||||
|
gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_NGINX_NAXSI),y)
|
||||||
|
define Download/nginx-naxsi
|
||||||
|
VERSION:=951123ad456bdf5ac94e8d8819342fe3d49bc002
|
||||||
SUBDIR:=nginx-naxsi
|
SUBDIR:=nginx-naxsi
|
||||||
FILE:=nginx-naxsi-module-$(PKG_VERSION)-$$(VERSION).tar.gz
|
FILE:=nginx-naxsi-module-$(PKG_VERSION)-$$(VERSION).tar.gz
|
||||||
URL:=https://github.com/nbs-system/naxsi.git
|
URL:=https://github.com/nbs-system/naxsi.git
|
||||||
|
MIRROR_HASH:=7ab791f2ff38096f48013141bbfe20ba213d5e04dcac08ca82e0cac07d5c30f0
|
||||||
PROTO:=git
|
PROTO:=git
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Prepare/nginx-naxsi
|
|
||||||
$(eval $(call Download,nginx-naxsi))
|
$(eval $(call Download,nginx-naxsi))
|
||||||
gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Download/lua-nginx
|
define Prepare/nginx-naxsi
|
||||||
VERSION:=55743aeba3075b34a250380b32bad6366eae6c30
|
$(eval $(Download/nginx-naxsi))
|
||||||
|
gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_NGINX_LUA),y)
|
||||||
|
define Download/lua-nginx
|
||||||
|
VERSION:=576a10d246daf81c0ce1b959c50ee807769c01a8
|
||||||
SUBDIR:=lua-nginx
|
SUBDIR:=lua-nginx
|
||||||
FILE:=lua-nginx-module-$(PKG_VERSION)-$$(VERSION).tar.gz
|
FILE:=lua-nginx-module-$(PKG_VERSION)-$$(VERSION).tar.gz
|
||||||
URL:=https://github.com/openresty/lua-nginx-module.git
|
URL:=https://github.com/openresty/lua-nginx-module.git
|
||||||
|
MIRROR_HASH:=85ab2fc752d4e09f266209fdec507b30c57bb966c34bbff148cf3459ae5cac80
|
||||||
PROTO:=git
|
PROTO:=git
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Prepare/lua-nginx
|
|
||||||
$(eval $(call Download,lua-nginx))
|
$(eval $(call Download,lua-nginx))
|
||||||
|
|
||||||
|
define Prepare/lua-nginx
|
||||||
|
$(eval $(Download/lua-nginx))
|
||||||
gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
|
gzip -dc $(DL_DIR)/$(FILE) | tar -C $(PKG_BUILD_DIR) $(TAR_OPTIONS)
|
||||||
$(call PatchDir,$(PKG_BUILD_DIR),./patches-lua-nginx)
|
$(call PatchDir,$(PKG_BUILD_DIR),./patches-lua-nginx)
|
||||||
endef
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(call BuildPackage,nginx))
|
$(eval $(call BuildPackage,nginx))
|
||||||
|
$(eval $(call BuildPackage,nginx-ssl))
|
||||||
|
$(eval $(call BuildPackage,nginx-all-module))
|
||||||
$(eval $(call BuildPackage,nginx-mod-luci))
|
$(eval $(call BuildPackage,nginx-mod-luci))
|
||||||
$(eval $(call BuildPackage,nginx-mod-luci-ssl))
|
$(eval $(call BuildPackage,nginx-mod-luci-ssl))
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ -f "/etc/nginx/luci_nginx.conf" ] && [ -f "/etc/nginx/nginx.conf" ]; then
|
if [ -f "/etc/nginx/luci_nginx.conf" ] && [ -f "/etc/nginx/nginx.conf" ]; then
|
||||||
if [ ! "$(cat '/etc/nginx/nginx.conf' | grep -q 'luci_uwsgi.conf')" ]; then
|
if [ ! "$(cat '/etc/nginx/nginx.conf' | grep 'luci_uwsgi.conf')" ]; then
|
||||||
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf_old
|
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf_old
|
||||||
mv /etc/nginx/luci_nginx.conf /etc/nginx/nginx.conf
|
mv /etc/nginx/luci_nginx.conf /etc/nginx/nginx.conf
|
||||||
core_number=$(grep -c ^processor /proc/cpuinfo)
|
core_number=$(grep -c ^processor /proc/cpuinfo)
|
||||||
|
@ -20,6 +20,8 @@ if [ -f "/etc/nginx/luci_nginx.conf" ] && [ -f "/etc/nginx/nginx.conf" ]; then
|
||||||
else
|
else
|
||||||
/etc/init.d/uwsgi start
|
/etc/init.d/uwsgi start
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
rm /etc/nginx/luci_nginx.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
|
|
||||||
if [ -f "/etc/nginx/luci_nginx_ssl.conf" ] && [ -f "/etc/nginx/nginx.conf" ]; then
|
if [ -f "/etc/nginx/luci_nginx_ssl.conf" ] && [ -f "/etc/nginx/nginx.conf" ]; then
|
||||||
if [ ! "$(cat '/etc/nginx/nginx.conf' | grep -q 'return 301 https://$host$request_uri;')" ]; then
|
if [ ! "$(cat '/etc/nginx/nginx.conf' | grep 'return 301 https://$host$request_uri;')" ]; then
|
||||||
if [ -f "/etc/nginx/nginx.conf_old" ]; then
|
if [ -f "/etc/nginx/nginx.conf_old" ]; then
|
||||||
rm /etc/nginx/nginx.conf
|
rm /etc/nginx/nginx.conf
|
||||||
else
|
else
|
||||||
|
@ -16,6 +16,8 @@ if [ -f "/etc/nginx/luci_nginx_ssl.conf" ] && [ -f "/etc/nginx/nginx.conf" ]; th
|
||||||
else
|
else
|
||||||
/etc/init.d/nginx start
|
/etc/init.d/nginx start
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
rm /etc/nginx/luci_nginx_ssl.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
user root;
|
user nobody nogroup;
|
||||||
worker_processes 1;
|
worker_processes 1;
|
||||||
|
|
||||||
#error_log logs/error.log;
|
#error_log logs/error.log;
|
||||||
|
|
12
nginx/patches/201-ignore-invalid-options.patch
Normal file
12
nginx/patches/201-ignore-invalid-options.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
--- a/auto/options
|
||||||
|
+++ b/auto/options
|
||||||
|
@@ -391,8 +391,7 @@
|
||||||
|
--test-build-solaris-sendfilev) NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
- echo "$0: error: invalid option \"$option\""
|
||||||
|
- exit 1
|
||||||
|
+ echo "$0: error: ignoring invalid option \"$option\""
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
Loading…
Add table
Add a link
Reference in a new issue