Hi, lang/njs has been added to the ports tree recently, so here's the patch to enable nginx javascript for www/unit.
Thank you. -- Sergey A. Osokin
Index: Makefile.inc =================================================================== RCS file: /cvs/ports/www/unit/Makefile.inc,v retrieving revision 1.8 diff -u -p -r1.8 Makefile.inc --- Makefile.inc 16 May 2023 08:21:08 -0000 1.8 +++ Makefile.inc 26 May 2023 15:43:21 -0000 @@ -28,6 +28,7 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \ --runstatedir=${LOCALSTATEDIR}/run/unit \ --statedir=${LOCALSTATEDIR}/db/unit \ --tmpdir=${LOCALSTATEDIR}/tmp/unit \ + --njs \ --openssl \ --user=_unit \ --group=_unit Index: unit/Makefile =================================================================== RCS file: /cvs/ports/www/unit/unit/Makefile,v retrieving revision 1.5 diff -u -p -r1.5 Makefile --- unit/Makefile 26 Apr 2023 15:57:28 -0000 1.5 +++ unit/Makefile 26 May 2023 15:43:21 -0000 @@ -2,7 +2,8 @@ COMMENT= dynamic web application server WANTLIB= c crypto m pcre2-8 pthread ssl -LIB_DEPENDS= devel/pcre2 +LIB_DEPENDS= devel/pcre2 \ + lang/njs MODULES= lang/python MODPY_BUILDDEP= No