Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2026 15:37:05 +0000
From:      Jochen Neumeister <joneum@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 39e6c1c39870 - main - www/nginx-module-lua: Add new port
Message-ID:  <6a15be21.256d6.6f03d1e3@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by joneum:

URL: https://cgit.FreeBSD.org/ports/commit/?id=39e6c1c3987096cf99484037c751e27721539af6

commit 39e6c1c3987096cf99484037c751e27721539af6
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-05-26 15:35:43 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-05-26 15:36:51 +0000

    www/nginx-module-lua: Add new port
    
    Add a new port for the OpenResty lua-nginx-module dynamic
    module for nginx.
    
    WWW: https://github.com/openresty/lua-nginx-module
    
    Sponsored by:   Netzkommune GmbH
---
 www/Makefile                   |  1 +
 www/nginx-module-lua/Makefile  | 52 ++++++++++++++++++++++++++++++++++++++++++
 www/nginx-module-lua/distinfo  |  7 ++++++
 www/nginx-module-lua/pkg-descr |  5 ++++
 4 files changed, 65 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 78d795b9a948..53fd5e1d8465 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -511,6 +511,7 @@
     SUBDIR += nginx-devel
     SUBDIR += nginx-full
     SUBDIR += nginx-lite
+    SUBDIR += nginx-module-lua
     SUBDIR += nginx-naxsi
     SUBDIR += nginx-prometheus-exporter
     SUBDIR += nginx-ultimate-bad-bot-blocker
diff --git a/www/nginx-module-lua/Makefile b/www/nginx-module-lua/Makefile
new file mode 100644
index 000000000000..c63306adcee2
--- /dev/null
+++ b/www/nginx-module-lua/Makefile
@@ -0,0 +1,52 @@
+PORTNAME=	nginx-module-lua
+DISTVERSION=	0.10.29
+CATEGORIES=	www
+MASTER_SITES=	https://nginx.org/download/:nginx
+DISTFILES=	nginx-${NGINX_VERSION}.tar.gz:nginx
+
+MAINTAINER=	joneum@FreeBSD.org
+COMMENT=	Lua dynamic module for nginx
+WWW=		https://github.com/openresty/lua-nginx-module
+
+LICENSE=	BSD2CLAUSE
+
+BUILD_DEPENDS=	nginx:www/nginx
+RUN_DEPENDS=	lua-resty-core>=0.1.32:www/lua-resty-core
+
+USES=		compiler:c11 gmake luajit:luajit-openresty ssl
+
+USE_GITHUB=	nodefault
+GH_TUPLE=	openresty:lua-nginx-module:v${DISTVERSION}:lua \
+		vision5:ngx_devel_kit:v0.3.4:ndk
+
+NGINX_VERSION=	1.30.2
+WRKSRC=		${WRKDIR}/nginx-${NGINX_VERSION}
+
+CONFIGURE_ENV=	LUAJIT_INC=${LOCALBASE}/include/luajit-2.1 \
+		LUAJIT_LIB=${LOCALBASE}/lib
+
+CONFIGURE_ARGS=	--with-compat \
+		--with-cc-opt="-I${LOCALBASE}/include" \
+		--with-ld-opt="-L${LOCALBASE}/lib" \
+		--add-dynamic-module=${WRKSRC_ndk} \
+		--add-dynamic-module=${WRKSRC_lua}
+
+PLIST_FILES=	libexec/nginx/ngx_http_lua_module.so
+
+do-configure:
+	cd ${WRKSRC} && \
+		${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS}
+
+do-build:
+	cd ${WRKSRC} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} modules
+
+do-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nginx
+	${INSTALL_LIB} ${WRKSRC}/objs/ngx_http_lua_module.so \
+		${STAGEDIR}${PREFIX}/libexec/nginx/ngx_http_lua_module.so
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/nginx/ngx_http_lua_module.so
+
+.include <bsd.port.mk>
diff --git a/www/nginx-module-lua/distinfo b/www/nginx-module-lua/distinfo
new file mode 100644
index 000000000000..968069c67b66
--- /dev/null
+++ b/www/nginx-module-lua/distinfo
@@ -0,0 +1,7 @@
+TIMESTAMP = 1779806506
+SHA256 (nginx-1.30.2.tar.gz) = 7df3090907fca3cc0e456d6dc00ceb230da74ea88026ceff0affc29dbbd9ac4c
+SIZE (nginx-1.30.2.tar.gz) = 1325247
+SHA256 (openresty-lua-nginx-module-v0.10.29_GH0.tar.gz) = ca2c2122b909529bf9d1a89e9a5763835a2bd2629def8cb279c550f638f0a78f
+SIZE (openresty-lua-nginx-module-v0.10.29_GH0.tar.gz) = 892502
+SHA256 (vision5-ngx_devel_kit-v0.3.4_GH0.tar.gz) = 14a28063294f645d457b1eb10e3c23bbba44398f1c5f021421b58b6f8ab31662
+SIZE (vision5-ngx_devel_kit-v0.3.4_GH0.tar.gz) = 66474
diff --git a/www/nginx-module-lua/pkg-descr b/www/nginx-module-lua/pkg-descr
new file mode 100644
index 000000000000..622be65ddf92
--- /dev/null
+++ b/www/nginx-module-lua/pkg-descr
@@ -0,0 +1,5 @@
+lua-nginx-module embeds Lua into nginx and provides a powerful scripting
+environment for nginx HTTP request processing.
+
+It is part of the OpenResty ecosystem and is commonly used together with
+lua-resty-core and ngx_devel_kit.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a15be21.256d6.6f03d1e3>