| @@ -1,21 +1,22 @@ | | | @@ -1,21 +1,22 @@ |
1 | # $NetBSD: options.mk,v 1.53 2020/02/12 11:32:53 jperkin Exp $ | | 1 | # $NetBSD: options.mk,v 1.54 2020/02/20 23:34:38 abs Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nginx | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.nginx |
4 | PKG_SUPPORTED_OPTIONS= dav flv gtools inet6 luajit mail-proxy memcache naxsi \ | | 4 | PKG_SUPPORTED_OPTIONS= dav flv gtools inet6 luajit mail-proxy memcache naxsi \ |
5 | pcre push realip ssl sub uwsgi image-filter \ | | 5 | pcre push realip ssl sub uwsgi image-filter \ |
6 | debug slice status nginx-autodetect-cflags echo \ | | 6 | debug slice status nginx-autodetect-cflags echo \ |
7 | set-misc headers-more array-var encrypted-session \ | | 7 | set-misc headers-more array-var encrypted-session \ |
8 | form-input perl gzip http2 auth-request secure-link rtmp | | 8 | form-input perl gzip http2 auth-request secure-link rtmp \ |
| | | 9 | stream-ssl-preread |
9 | PKG_OPTIONS_LEGACY_OPTS+= v2:http2 | | 10 | PKG_OPTIONS_LEGACY_OPTS+= v2:http2 |
10 | | | 11 | |
11 | PKG_SUGGESTED_OPTIONS= inet6 pcre ssl | | 12 | PKG_SUGGESTED_OPTIONS= inet6 pcre ssl |
12 | | | 13 | |
13 | PLIST_VARS+= naxsi perl uwsgi | | 14 | PLIST_VARS+= naxsi perl uwsgi |
14 | | | 15 | |
15 | .include "../../mk/bsd.options.mk" | | 16 | .include "../../mk/bsd.options.mk" |
16 | | | 17 | |
17 | # documentation says naxsi must be the first module | | 18 | # documentation says naxsi must be the first module |
18 | .if !empty(PKG_OPTIONS:Mnaxsi) | | 19 | .if !empty(PKG_OPTIONS:Mnaxsi) |
19 | PLIST.naxsi= yes | | 20 | PLIST.naxsi= yes |
20 | CONFIGURE_ARGS+= --add-module=../${NAXSI_DISTNAME}/naxsi_src | | 21 | CONFIGURE_ARGS+= --add-module=../${NAXSI_DISTNAME}/naxsi_src |
21 | .endif | | 22 | .endif |
| @@ -216,23 +217,27 @@ PLIST.perl= yes | | | @@ -216,23 +217,27 @@ PLIST.perl= yes |
216 | | | 217 | |
217 | .if !empty(PKG_OPTIONS:Mgzip) | | 218 | .if !empty(PKG_OPTIONS:Mgzip) |
218 | CONFIGURE_ARGS+= --with-http_gzip_static_module | | 219 | CONFIGURE_ARGS+= --with-http_gzip_static_module |
219 | .endif | | 220 | .endif |
220 | | | 221 | |
221 | .if !empty(PKG_OPTIONS:Mauth-request) | | 222 | .if !empty(PKG_OPTIONS:Mauth-request) |
222 | CONFIGURE_ARGS+= --with-http_auth_request_module | | 223 | CONFIGURE_ARGS+= --with-http_auth_request_module |
223 | .endif | | 224 | .endif |
224 | | | 225 | |
225 | .if !empty(PKG_OPTIONS:Msecure-link) | | 226 | .if !empty(PKG_OPTIONS:Msecure-link) |
226 | CONFIGURE_ARGS+= --with-http_secure_link_module | | 227 | CONFIGURE_ARGS+= --with-http_secure_link_module |
227 | .endif | | 228 | .endif |
228 | | | 229 | |
| | | 230 | .if !empty(PKG_OPTIONS:Mstream-ssl-preread) |
| | | 231 | CONFIGURE_ARGS+= --with-stream --with-stream_ssl_preread_module |
| | | 232 | .endif |
| | | 233 | |
229 | .if !empty(PKG_OPTIONS:Mrtmp) | | 234 | .if !empty(PKG_OPTIONS:Mrtmp) |
230 | CONFIGURE_ARGS+= --add-module=../${RTMP_DISTNAME} | | 235 | CONFIGURE_ARGS+= --add-module=../${RTMP_DISTNAME} |
231 | .endif | | 236 | .endif |
232 | .if !empty(PKG_OPTIONS:Mrtmp) || make(makesum) | | 237 | .if !empty(PKG_OPTIONS:Mrtmp) || make(makesum) |
233 | RTMP_VERSION= 1.2.1 | | 238 | RTMP_VERSION= 1.2.1 |
234 | RTMP_DISTNAME= nginx-rtmp-module-${RTMP_VERSION} | | 239 | RTMP_DISTNAME= nginx-rtmp-module-${RTMP_VERSION} |
235 | RTMP_DISTFILE= ${RTMP_DISTNAME}.tar.gz | | 240 | RTMP_DISTFILE= ${RTMP_DISTNAME}.tar.gz |
236 | SITES.${RTMP_DISTFILE}= -https://github.com/arut/nginx-rtmp-module/archive/v${RTMP_VERSION}.tar.gz | | 241 | SITES.${RTMP_DISTFILE}= -https://github.com/arut/nginx-rtmp-module/archive/v${RTMP_VERSION}.tar.gz |
237 | DISTFILES+= ${RTMP_DISTFILE} | | 242 | DISTFILES+= ${RTMP_DISTFILE} |
238 | .endif | | 243 | .endif |