Skip to content

Commit

Permalink
www/nginx: Add support for 3rd party stream-lua-nginx-module
Browse files Browse the repository at this point in the history
PR:		277719
Approved by:	maintainer timeout
Reported by:	Eirik Oeverby <ltning-freebsd@anduin.net>
Sponsored by:	Modirum MDPay
Sponsored by:	Klara, Inc.
Co-authored-by:	Xavier Beaudouin <kiwi@oav.net>

(cherry picked from commit edac05f)
  • Loading branch information
ltning authored and 0mp committed May 13, 2024
1 parent 06aa8bb commit 5f61eef
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion www/nginx/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= nginx
PORTVERSION= 1.24.0
PORTREVISION?= 16
PORTREVISION?= 17
PORTEPOCH= 3
CATEGORIES= www
MASTER_SITES= https://nginx.org/download/ \
Expand Down
10 changes: 9 additions & 1 deletion www/nginx/Makefile.extmod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ OPTIONS_GROUP_THIRDPARTYGRP= AJP AWS_AUTH BROTLI CACHE_PURGE CLOJURE COOKIE_FLAG
HTTP_JSON_STATUS HTTP_MOGILEFS HTTP_MP4_H264 HTTP_NOTICE HTTP_PROXY_CONNECT HTTP_PUSH \
HTTP_PUSH_STREAM HTTP_REDIS HTTP_SLICE_AHEAD HTTP_SUBS_FILTER HTTP_TARANTOOL \
HTTP_UPLOAD HTTP_UPLOAD_PROGRESS HTTP_UPSTREAM_CHECK HTTP_UPSTREAM_FAIR \
HTTP_UPSTREAM_STICKY HTTP_VIDEO_THUMBEXTRACTOR HTTP_ZIP ICONV LET LINK LUA MEMC \
HTTP_UPSTREAM_STICKY HTTP_VIDEO_THUMBEXTRACTOR HTTP_ZIP ICONV LET LINK LUA LUASTREAM MEMC \
MODSECURITY3 NAXSI PASSENGER POSTGRES RDS_CSV RDS_JSON REDIS2\
RTMP SET_MISC SFLOW SHIBBOLETH SLOWFS_CACHE SRCACHE STS VOD VTS \
XSS WEBSOCKIFY
Expand Down Expand Up @@ -229,6 +229,14 @@ LUA_CONFIGURE_ENV= LUAJIT_INC=${LOCALBASE}/include/luajit-2.1 \
LUA_GH_TUPLE= openresty:lua-nginx-module:v0.10.26:lua
LUA_VARS= DSO_EXTMODS+=lua

LUASTREAM_IMPLIES= DEVEL_KIT
LUASTREAM_LIB_DEPENDS= libluajit-5.1.so:lang/luajit-openresty
LUASTREAM_RUN_DEPENDS= lua-resty-core>0:www/lua-resty-core
LUASTREAM_CONFIGURE_ENV=LUAJIT_INC=${LOCALBASE}/include/luajit-2.1 \
LUAJIT_LIB=${LOCALBASE}/lib
LUASTREAM_GH_TUPLE= openresty:stream-lua-nginx-module:v0.0.14:luastream
LUASTREAM_VARS= DSO_EXTMODS+=luastream

LINK_GH_TUPLE= Taymindis:nginx-link-function:3.2.4:link
LINK_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-nginx-link-function-config \
${PATCHDIR}/extra-patch-ngx_link_func_module.c
Expand Down
1 change: 1 addition & 0 deletions www/nginx/Makefile.options.desc
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ IPV6_DESC= Enable IPv6 support
LET_DESC= 3rd party let module
LINK_DESC= 3rd party link function module
LUA_DESC= 3rd party lua module
LUASTREAM_DESC= 3rd party lua stream module
MAILGRP_DESC= Modules that require MAIL module
MAIL_DESC= Enable IMAP4/POP3/SMTP proxy module
MAIL_IMAP_DESC= Enable IMAP4 proxy module
Expand Down
2 changes: 2 additions & 0 deletions www/nginx/distinfo
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,5 @@ SHA256 (tg123-websockify-nginx-module-c11bc9a_GH0.tar.gz) = aca454bffcee2476dc92
SIZE (tg123-websockify-nginx-module-c11bc9a_GH0.tar.gz) = 14646
SHA256 (openresty-xss-nginx-module-v0.06_GH0.tar.gz) = 0b12bbc53a41f3e3d6df419c173b8c87434be3e6cd255a8193aa91345a2de6cf
SIZE (openresty-xss-nginx-module-v0.06_GH0.tar.gz) = 12448
SHA256 (openresty-stream-lua-nginx-module-v0.0.14_GH0.tar.gz) = 8e2ff6ad5f91127da3c01757e7e654f1addf9769450d9159601d2cc153953c47
SIZE (openresty-stream-lua-nginx-module-v0.0.14_GH0.tar.gz) = 381313
1 change: 1 addition & 0 deletions www/nginx/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
%%DSO%%%%LET%%libexec/nginx/ngx_http_let_module.so
%%DSO%%%%LINK%%libexec/nginx/ngx_http_link_func_module.so
%%DSO%%%%LUA%%libexec/nginx/ngx_http_lua_module.so
%%DSO%%%%LUASTREAM%%libexec/nginx/ngx_stream_lua_module.so
%%DSO%%%%MAIL%%libexec/nginx/ngx_mail_module.so
%%DSO%%%%MAIL%%%%CT%%libexec/nginx/ngx_mail_ssl_ct_module.so
%%DSO%%%%MEMC%%libexec/nginx/ngx_http_memc_module.so
Expand Down

0 comments on commit 5f61eef

Please sign in to comment.