Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 229DE1A921F for ; Mon, 14 Mar 2022 02:52:51 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 52A1084F0D; Mon, 14 Mar 2022 02:52:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 8D77784D5D for ; Mon, 14 Mar 2022 02:52:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id XN9BJAdAYZJ4 for ; Mon, 14 Mar 2022 02:52:48 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id DEC3884CE2 for ; Mon, 14 Mar 2022 02:52:48 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id D5EA0FB24; Mon, 14 Mar 2022 02:52:48 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1647226368292670" MIME-Version: 1.0 Date: Mon, 14 Mar 2022 02:52:48 +0000 From: "Sergey A. Osokin" Subject: CVS commit: pkgsrc/lang/njs To: pkgsrc-changes@NetBSD.org Reply-To: osa@netbsd.org X-Mailer: log_accum Message-Id: <20220314025248.D5EA0FB24@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1647226368292670 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: osa Date: Mon Mar 14 02:52:48 UTC 2022 Added Files: pkgsrc/lang/njs: DESCR Makefile PLIST distinfo options.mk Log Message: lang/njs: add new port NGINX JavaScript (njs) command line utility NGINX JavaScript, also knows as njs, is a subset of the JavaScript language that allows extending nginx functionality. njs is created in compliance with ECMAScript 5.1 (strict mode) with some ECMAScript 6 and later extensions. It's easy to use njs command line utility to develop and debug additional functionality. Also, it's light-weight and very useful as a shebang in some cases as the nodejs substitutor. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/lang/njs/DESCR pkgsrc/lang/njs/Makefile \ pkgsrc/lang/njs/PLIST pkgsrc/lang/njs/distinfo pkgsrc/lang/njs/options.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1647226368292670 Content-Disposition: inline Content-Length: 3274 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/lang/njs/DESCR diff -u /dev/null pkgsrc/lang/njs/DESCR:1.1 --- /dev/null Mon Mar 14 02:52:48 2022 +++ pkgsrc/lang/njs/DESCR Mon Mar 14 02:52:48 2022 @@ -0,0 +1,4 @@ +njs scripting language, or just njs, is a subset of the JavaScript language +that allows extending nginx functionality. njs is created in compliance +with ECMAScript 5.1 (strict mode) with some ECMAScript 6 and later +extensions. The compliance is still evolving. Index: pkgsrc/lang/njs/Makefile diff -u /dev/null pkgsrc/lang/njs/Makefile:1.1 --- /dev/null Mon Mar 14 02:52:48 2022 +++ pkgsrc/lang/njs/Makefile Mon Mar 14 02:52:48 2022 @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1 2022/03/14 02:52:48 osa Exp $ + +DISTNAME= njs-0.7.2 +CATEGORIES= lang www +MASTER_SITES= ${MASTER_SITE_GITHUB:=nginx/} +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= osa@NetBSD.org +HOMEPAGE= https://nginx.org/en/docs/njs +COMMENT= NGINX JavaScript command line utility +LICENSE= 2-clause-bsd + +USE_LANGUAGES= c + +HAS_CONFIGURE= yes + +INSTALLATION_DIRS+= bin + +do-build: + ${RUN} cd ${WRKSRC} && ${BUILD_MAKE_CMD} njs + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/build/njs ${DESTDIR}${PREFIX}/bin/njs + +.include "options.mk" +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/lang/njs/PLIST diff -u /dev/null pkgsrc/lang/njs/PLIST:1.1 --- /dev/null Mon Mar 14 02:52:48 2022 +++ pkgsrc/lang/njs/PLIST Mon Mar 14 02:52:48 2022 @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2022/03/14 02:52:48 osa Exp $ +bin/njs Index: pkgsrc/lang/njs/distinfo diff -u /dev/null pkgsrc/lang/njs/distinfo:1.1 --- /dev/null Mon Mar 14 02:52:48 2022 +++ pkgsrc/lang/njs/distinfo Mon Mar 14 02:52:48 2022 @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2022/03/14 02:52:48 osa Exp $ + +BLAKE2s (njs-0.7.2.tar.gz) = 6aa7f4d62a9012badde72236cd4d2d8c32a3ea7842b582a7211a4dc836835af1 +SHA512 (njs-0.7.2.tar.gz) = 7ff9c8f4e8cf1a3aeb0f2ed9f37e2b3f4966812966d1aca17dae8b454dd7fa725ccdc631b7dc1f3434f588e589f4cd419b9e087f3c745cd6ca092a683c92d82f +Size (njs-0.7.2.tar.gz) = 584483 bytes Index: pkgsrc/lang/njs/options.mk diff -u /dev/null pkgsrc/lang/njs/options.mk:1.1 --- /dev/null Mon Mar 14 02:52:48 2022 +++ pkgsrc/lang/njs/options.mk Mon Mar 14 02:52:48 2022 @@ -0,0 +1,38 @@ +# $NetBSD: options.mk,v 1.1 2022/03/14 02:52:48 osa Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.njs +PKG_SUPPORTED_OPTIONS= pcre pcre2 ssl +PKG_SUGGESTED_OPTIONS= pcre ssl + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mpcre) +.include "../../devel/pcre/buildlink3.mk" +SUBST_CLASSES+= fix-pcre +SUBST_STAGE.fix-pcre= pre-configure +SUBST_FILES.fix-pcre= auto/pcre +SUBST_SED.fix-pcre= -e 's,/usr/pkg,${BUILDLINK_PREFIX.pcre},g' +SUBST_NOOP_OK.fix-pcre= yes +.else +CONFIGURE_ARGS+= --no-pcre2 +.endif + +.if !empty(PKG_OPTIONS:Mpcre2) +.include "../../devel/pcre2/buildlink3.mk" +SUBST_CLASSES+= fix-pcre2 +SUBST_STAGE.fix-pcre2= pre-configure +SUBST_FILES.fix-pcre2= auto/pcre +SUBST_SED.fix-pcre2= -e 's,/usr/pkg,${BUILDLINK_PREFIX.pcre2},g' +SUBST_NOOP_OK.fix-pcre2=yes +.endif + +.if empty(PKG_OPTIONS:Mpcre2) && empty(PKG_OPTIONS:Mpcre) +CONFIGURE_ARGS+= --no-pcre +CONFIGURE_ARGS+= --no-pcre2 +.endif + +.if !empty(PKG_OPTIONS:Mssl) +.include "../../security/openssl/buildlink3.mk" +.else +CONFIGURE_ARGS+= --no-openssl +.endif --_----------=_1647226368292670--