Files
ports/www/lua-stream-nginx-module/files/patch-src_ngx__stream__lua__module.c
T
Jochen Neumeister c08f758786 www/{nginx,nginx-devel,freenginx}: use lua-stream-nginx-module port
Replace the embedded LUASTREAM GH_TUPLE handling with a
BUILD_DEPENDS on www/lua-stream-nginx-module and use the
module sources from the dedicated port during the build.

Add freenginx compatibility patches for lua-stream-nginx-module.

Also update lua-stream-nginx-module to version 0.0.17.

PR:	294426
Sponsored by:	Netzkommune GmbH
2026-05-25 19:08:15 +02:00

21 lines
811 B
C

--- src/ngx_stream_lua_module.c.orig
+++ src/ngx_stream_lua_module.c
@@ -916,7 +916,7 @@ ngx_stream_lua_merge_srv_conf(ngx_conf_t
ngx_stream_lua_srv_conf_t *conf = child;
#if (NGX_STREAM_SSL)
-#if defined(nginx_version) && nginx_version >= 1025005
+#if defined(nginx_version) && nginx_version >= 1025005 && !defined(freenginx)
ngx_stream_ssl_srv_conf_t *sscf;
#else
ngx_stream_ssl_conf_t *sscf;
@@ -925,7 +925,7 @@ ngx_stream_lua_merge_srv_conf(ngx_conf_t
dd("merge srv conf");
sscf = ngx_stream_conf_get_module_srv_conf(cf, ngx_stream_ssl_module);
-#if defined(nginx_version) && nginx_version >= 1025005
+#if defined(nginx_version) && nginx_version >= 1025005 && !defined(freenginx)
if (sscf && sscf->ssl.ctx) {
#else
if (sscf && sscf->listen) {