Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Aug 2023 13:04:39 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0e9787f2f5d7 - main - www/angie-module-njs: Angie NJS dynamic module
Message-ID:  <202308091304.379D4d3D090260@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0e9787f2f5d748a7e37609278567dd8c7b42035e

commit 0e9787f2f5d748a7e37609278567dd8c7b42035e
Author:     Oleg A. Mamontov <oleg@mamontov.net>
AuthorDate: 2023-08-07 18:37:18 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-08-09 13:01:17 +0000

    www/angie-module-njs: Angie NJS dynamic module
    
    Module is a subset of the JavaScript language that allows extending
    Angie functionality.
    
    PR:             272999
---
 www/Makefile                              |  1 +
 www/angie-module-njs/Makefile             | 32 +++++++++++++++++++++++++++++++
 www/angie-module-njs/files/pkg-message.in | 18 +++++++++++++++++
 www/angie-module-njs/pkg-descr            |  3 +++
 www/angie-module-njs/pkg-plist            |  6 ++++++
 5 files changed, 60 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index f06151a65b6a..4de59147fde0 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -34,6 +34,7 @@
     SUBDIR += angie-module-image-filter
     SUBDIR += angie-module-jwt
     SUBDIR += angie-module-keyval
+    SUBDIR += angie-module-njs
     SUBDIR += anyremote2html
     SUBDIR += apache-mode.el
     SUBDIR += apache24
diff --git a/www/angie-module-njs/Makefile b/www/angie-module-njs/Makefile
new file mode 100644
index 000000000000..972d8f5f11c6
--- /dev/null
+++ b/www/angie-module-njs/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	angie-module-njs
+GH_TUPLE=	nginx:njs:0.8.0:module
+
+COMMENT=	Angie NJS dynamic module
+
+LIB_DEPENDS=	libxslt.so:textproc/libxslt
+
+USES=		libedit
+
+CONFIGURE_ADD=	--add-dynamic-module=${WRKSRC_module}/nginx
+
+MASTERDIR=	${.CURDIR}/../../www/angie
+
+do-install:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${MODDIR}
+
+.for i in ngx_http_js_module ngx_stream_js_module
+	${INSTALL_LIB} ${WRKSRC}/objs/${i}.so ${STAGEDIR}${MODDIR}
+.endfor
+
+.for i in CHANGES README
+	${INSTALL_MAN} ${WRKSRC_module}/${i} ${STAGEDIR}${DOCSDIR}
+.endfor
+
+do-install-DEBUG-on:
+.for i in ngx_http_js_module ngx_stream_js_module
+	${INSTALL} ${COPY} -m ${_SHAREMODE} ${WRKSRC_DEBUG}/objs/${i}.so \
+	    ${STAGEDIR}${MODDIR}/${i}-debug.so
+.endfor
+
+.include "${MASTERDIR}/Makefile"
diff --git a/www/angie-module-njs/files/pkg-message.in b/www/angie-module-njs/files/pkg-message.in
new file mode 100644
index 000000000000..de4d16525aad
--- /dev/null
+++ b/www/angie-module-njs/files/pkg-message.in
@@ -0,0 +1,18 @@
+[
+{ type: install
+  message: <<EOM
+
+The njs dynamic modules for Angie have been installed.
+To enable these modules, add the following to %%PREFIX%%/etc/angie/angie.conf
+and reload angie:
+
+    load_module modules/ngx_http_js_module.so;
+    load_module modules/ngx_stream_js_module.so;
+
+Please refer to the njs documentation for further details:
+https://angie.software/js_reference/
+https://angie.software/http_js/
+https://angie.software/stream_js/
+EOM
+}
+]
diff --git a/www/angie-module-njs/pkg-descr b/www/angie-module-njs/pkg-descr
new file mode 100644
index 000000000000..5ea80e0adaa9
--- /dev/null
+++ b/www/angie-module-njs/pkg-descr
@@ -0,0 +1,3 @@
+Module is a subset of the JavaScript language that allows extending
+Angie functionality. Package contains http_js and stream_js modules to
+provide objects, methods and properties for extending related functionality.
diff --git a/www/angie-module-njs/pkg-plist b/www/angie-module-njs/pkg-plist
new file mode 100644
index 000000000000..f18a3dc58a9a
--- /dev/null
+++ b/www/angie-module-njs/pkg-plist
@@ -0,0 +1,6 @@
+%%DOCSDIR%%/CHANGES
+%%DOCSDIR%%/README
+%%MODDIR%%/ngx_http_js_module.so
+%%MODDIR%%/ngx_stream_js_module.so
+%%DEBUG%%%%MODDIR%%/ngx_http_js_module-debug.so
+%%DEBUG%%%%MODDIR%%/ngx_stream_js_module-debug.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308091304.379D4d3D090260>