Skip to content

Commit

Permalink
www/angie-module-njs: Angie NJS dynamic module
Browse files Browse the repository at this point in the history
Module is a subset of the JavaScript language that allows extending
Angie functionality.

PR:		272999
  • Loading branch information
lonerr authored and clausecker committed Aug 9, 2023
1 parent 31122ef commit 0e9787f
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Expand Up @@ -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
Expand Down
32 changes: 32 additions & 0 deletions 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"
18 changes: 18 additions & 0 deletions 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
}
]
3 changes: 3 additions & 0 deletions 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.
6 changes: 6 additions & 0 deletions 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

0 comments on commit 0e9787f

Please sign in to comment.