-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
www/angie-module-njs: Angie NJS dynamic module
Module is a subset of the JavaScript language that allows extending Angie functionality. PR: 272999
- Loading branch information
1 parent
31122ef
commit 0e9787f
Showing
5 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |