1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add HTTP/2 protocol support.

Please read http://nginx.org/patches/http2/README.txt for details.
This commit is contained in:
Sergey A. Osokin 2015-08-10 22:19:51 +00:00
parent d52f3b6656
commit 6d43a7284f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393916
2 changed files with 19 additions and 0 deletions

View File

@ -52,6 +52,7 @@ OPTIONS_DEFINE= \
MAIL_SMTP \
MAIL_SSL \
SPDY \
HTTPV2 \
STREAM \
STREAM_SSL \
THREADS \
@ -145,6 +146,7 @@ MAIL_POP3_DESC= Enable POP3 proxy module
MAIL_SMTP_DESC= Enable SMTP proxy module
MAIL_SSL_DESC= Enable mail_ssl module
SPDY_DESC= Enable SPDY protocol support (SSL req.)
HTTPV2_DESC= Enable HTTP/2 protocol support (SSL req.)
STREAM_DESC= Enable stream module
STREAM_SSL_DESC= Enable stream_ssl module (SSL req.)
THREADS_DESC= Enable threads support
@ -818,12 +820,27 @@ GH_TAGNAME+= v${NGINX_XSS_VERSION}:xss
CONFIGURE_ARGS+=--add-module=${WRKSRC_xss}
.endif
.if ${PORT_OPTIONS:MSPDY} && ${PORT_OPTIONS:MHTTPV2}
IGNORE= current HTTP/2 implementation replaces SPDY module support, please disable SPDY
.endif
.if ${PORT_OPTIONS:MSPDY}
NGINX_OPENSSL= yes
USE_HTTP_SSL= yes
CONFIGURE_ARGS+=--with-http_spdy_module
.endif
.if ${PORT_OPTIONS:MHTTPV2}
NGINX_OPENSSL= yes
USE_HTTP_SSL= yes
CONFIGURE_ARGS+=--with-http_v2_module
USE_OPENSSL_PORT= yes
NGINX_HTTPV2_VERSION= 1
PATCH_SITES+= http://nginx.org/patches/http2/:httpv2
PATCHFILES+= patch.http2-v${NGINX_HTTPV2_VERSION}_${PORTVERSION}.txt:httpv2
PATCH_DIST_STRIP= -p1
.endif
.if ${PORT_OPTIONS:MSTREAM}
CONFIGURE_ARGS+=--with-stream
.if ${PORT_OPTIONS:MSTREAM_SSL}

View File

@ -114,3 +114,5 @@ SHA256 (calio-form-input-nginx-module-v0.07_GH0.tar.gz) = c0c56cc697a290e98b88d4
SIZE (calio-form-input-nginx-module-v0.07_GH0.tar.gz) = 10563
SHA256 (calio-iconv-nginx-module-v0.10_GH0.tar.gz) = 88e326eba7fdf9fd2376b1ba033b48cb0eee45136528cf5430ac9340088ce324
SIZE (calio-iconv-nginx-module-v0.10_GH0.tar.gz) = 12513
SHA256 (patch.http2-v1_1.9.3.txt) = 14e37643c43e24ed7de9cc57bd4a082ff3b5d85423a998dc1a3226c9d00b1d6e
SIZE (patch.http2-v1_1.9.3.txt) = 308749