pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc www/nginx*: build and install njs command line utility



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c284f2a34ea4
branches:  trunk
changeset: 375253:c284f2a34ea4
user:      osa <osa%pkgsrc.org@localhost>
date:      Thu Mar 10 18:40:44 2022 +0000

description:
www/nginx*: build and install njs command line utility

Also, move NGINX JavaScript (njs) configure phase out of the NGINX build
phase.
Bump PKGREVISIONs.

diffstat:

 doc/CHANGES-2022          |   4 +++-
 www/nginx-devel/Makefile  |   4 ++--
 www/nginx-devel/PLIST     |   3 ++-
 www/nginx/Makefile        |   4 ++--
 www/nginx/Makefile.common |  14 +++++++++++++-
 www/nginx/PLIST           |   3 ++-
 www/nginx/options.mk      |   3 ++-
 7 files changed, 26 insertions(+), 9 deletions(-)

diffs (130 lines):

diff -r 425d2effd57d -r c284f2a34ea4 doc/CHANGES-2022
--- a/doc/CHANGES-2022  Thu Mar 10 17:52:51 2022 +0000
+++ b/doc/CHANGES-2022  Thu Mar 10 18:40:44 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: CHANGES-2022,v 1.1375 2022/03/10 16:29:46 nia Exp $
+$NetBSD: CHANGES-2022,v 1.1376 2022/03/10 18:40:44 osa Exp $
 
 Changes to the packages collection and infrastructure in 2022:
 
@@ -1738,3 +1738,5 @@
        Updated multimedia/mediainfo to 21.09 [ryoon 2022-03-10]
        Updated www/firefox91 to 91.7.0 [nia 2022-03-10]
        Updated www/firefox91-l10n to 91.7.0 [nia 2022-03-10]
+       Updated www/nginx to 1.20.2nb4 [osa 2022-03-10]
+       Updated www/nginx-devel to 1.21.6nb3 [osa 2022-03-10]
diff -r 425d2effd57d -r c284f2a34ea4 www/nginx-devel/Makefile
--- a/www/nginx-devel/Makefile  Thu Mar 10 17:52:51 2022 +0000
+++ b/www/nginx-devel/Makefile  Thu Mar 10 18:40:44 2022 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.72 2022/03/10 03:40:30 osa Exp $
+# $NetBSD: Makefile,v 1.73 2022/03/10 18:40:44 osa Exp $
 
 DISTNAME=      nginx-1.21.6
 
 MAINTAINER=    osa%NetBSD.org@localhost
 
-PKGREVISION=   2 
+PKGREVISION=   3 
 .include "../../www/nginx/Makefile.common"
 .include "../../mk/bsd.pkg.mk"
diff -r 425d2effd57d -r c284f2a34ea4 www/nginx-devel/PLIST
--- a/www/nginx-devel/PLIST     Thu Mar 10 17:52:51 2022 +0000
+++ b/www/nginx-devel/PLIST     Thu Mar 10 18:40:44 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2022/03/10 03:40:30 osa Exp $
+@comment $NetBSD: PLIST,v 1.7 2022/03/10 18:40:44 osa Exp $
 ${PLIST.dso}${PLIST.arrayvar}libexec/nginx/ngx_http_array_var_module.so
 ${PLIST.dso}${PLIST.cprg}libexec/nginx/ngx_http_cache_purge_module.so
 ${PLIST.dso}${PLIST.dav}libexec/nginx/ngx_http_dav_ext_module.so
@@ -22,6 +22,7 @@
 ${PLIST.dso}${PLIST.stream}libexec/nginx/ngx_stream_module.so
 ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/auto/nginx/nginx.${SOEXT}
 ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/nginx.pm
+${PLIST.njs}bin/njs
 man/man8/nginx.8
 sbin/nginx
 share/examples/nginx/conf/fastcgi.conf
diff -r 425d2effd57d -r c284f2a34ea4 www/nginx/Makefile
--- a/www/nginx/Makefile        Thu Mar 10 17:52:51 2022 +0000
+++ b/www/nginx/Makefile        Thu Mar 10 18:40:44 2022 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.107 2022/03/10 03:40:30 osa Exp $
+# $NetBSD: Makefile,v 1.108 2022/03/10 18:40:44 osa Exp $
 
 DISTNAME=      nginx-1.20.2
 
 MAINTAINER=    osa%NetBSD.org@localhost
 
-PKGREVISION=   3
+PKGREVISION=   4
 .include "../../www/nginx/Makefile.common"
 .include "../../mk/bsd.pkg.mk"
diff -r 425d2effd57d -r c284f2a34ea4 www/nginx/Makefile.common
--- a/www/nginx/Makefile.common Thu Mar 10 17:52:51 2022 +0000
+++ b/www/nginx/Makefile.common Thu Mar 10 18:40:44 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.21 2022/03/10 03:40:30 osa Exp $
+# $NetBSD: Makefile.common,v 1.22 2022/03/10 18:40:44 osa Exp $
 # used by www/nginx/Makefile
 # used by www/nginx-devel/Makefile
 
@@ -96,6 +96,14 @@
 .endif
 PLIST_SUBST+=  SOEXT=${SOEXT}
 
+post-configure:
+.if !empty(PKG_OPTIONS:Mnjs)
+       ${RUN} cd ${WRKDIR}/${NJS_DISTNAME} && ${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV}        \
+               ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} ${CONFIGURE_SCRIPT} ${NJS_CONFIGURE_ARGS} \
+               && ${PKGSRC_SETENV} ${MAKE_ENV} ${BUILD_MAKE_CMD} \
+               && ${MV} build/njs ${WRKDIR}/${NJS_DISTNAME}/njs
+.endif
+
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${DESTDIR}${PREFIX}/sbin/nginx
 .for file in ${EGFILES}
@@ -119,5 +127,9 @@
        (cd ${WRKSRC}/objs/ && ${FIND} . -name '*.so' -maxdepth 1 -type f \
                -exec ${INSTALL_PROGRAM} {} ${DESTDIR}${PREFIX}/libexec/nginx \;)
 .endif
+.if !empty(PKG_OPTIONS:Mnjs)
+       ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKDIR}/${NJS_DISTNAME}/njs ${DESTDIR}${PREFIX}/bin/njs
+.endif
 
 .include "../../devel/zlib/buildlink3.mk"
diff -r 425d2effd57d -r c284f2a34ea4 www/nginx/PLIST
--- a/www/nginx/PLIST   Thu Mar 10 17:52:51 2022 +0000
+++ b/www/nginx/PLIST   Thu Mar 10 18:40:44 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2022/03/10 03:40:30 osa Exp $
+@comment $NetBSD: PLIST,v 1.13 2022/03/10 18:40:44 osa Exp $
 ${PLIST.dso}${PLIST.arrayvar}libexec/nginx/ngx_http_array_var_module.so
 ${PLIST.dso}${PLIST.cprg}libexec/nginx/ngx_http_cache_purge_module.so
 ${PLIST.dso}${PLIST.dav}libexec/nginx/ngx_http_dav_ext_module.so
@@ -22,6 +22,7 @@
 ${PLIST.dso}${PLIST.stream}libexec/nginx/ngx_stream_module.so
 ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/auto/nginx/nginx.${SOEXT}
 ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/nginx.pm
+${PLIST.njs}bin/njs
 man/man8/nginx.8
 sbin/nginx
 share/examples/nginx/conf/fastcgi.conf
diff -r 425d2effd57d -r c284f2a34ea4 www/nginx/options.mk
--- a/www/nginx/options.mk      Thu Mar 10 17:52:51 2022 +0000
+++ b/www/nginx/options.mk      Thu Mar 10 18:40:44 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.73 2022/03/10 03:40:30 osa Exp $
+# $NetBSD: options.mk,v 1.74 2022/03/10 18:40:44 osa Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.nginx
 PKG_SUPPORTED_OPTIONS= array-var auth-request cache-purge dav debug
@@ -313,6 +313,7 @@
 NJS_VERSION=           0.7.2
 NJS_DISTNAME=          njs-${NJS_VERSION}
 NJS_DISTFILE=          ${NJS_DISTNAME}.tar.gz
+NJS_CONFIGURE_ARGS=    --no-pcre2
 SITES.${NJS_DISTFILE}= -${MASTER_SITE_GITHUB:=nginx/njs/archive/}${NJS_VERSION}.tar.gz
 DISTFILES+=            ${NJS_DISTFILE}
 DSO_EXTMODS+=          njs



Home | Main Index | Thread Index | Old Index