From nobody Fri Oct 20 07:07:41 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SBbJF4L0Fz4xQxy; Fri, 20 Oct 2023 07:07:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SBbJF354jz3c0t; Fri, 20 Oct 2023 07:07:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697785661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qrNW8hO1SL4qD8nevujmTgBgzkFOMA92vDWUzilmdTM=; b=Y1oSzFdMrphE94O5mdYYwLVoi4bovS83TFCGRdm5qsK5xNdYHrzz4VDY38wZYdDjP+4+t5 tCvyeDV3BYBQ4wKv90w+Iakm89kK+wmlNvizApJJnYotRhdRIY9h0kLOV1/ZiJMmu/G39F xeDYz0R62V3sxb2dOh9Ag8xk3Fb1OovF8kzDQYyOrCFDs/SgWpY+biqetcm93SFo3jcP8K 6mYaB0PK1q/ove+5elSodGAm5yy7REk7FmIVkLR50QDXYd7pKc6d0K3AeBAz8BbetK55rl XujxSiAudKSTtPUdyUKAUPGXqXXZWpiR/IQoKDdSqG30vajlZppPG9tbyM88MQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697785661; a=rsa-sha256; cv=none; b=u4MRHNVX+n6tHLO9xYjLPud4VTcagRr62g3dm30Ycspl9SiGXD7vLGj3QJ7y2sH3tv8L50 y5S+oYGhIF8cBSFXYgkgyXXsBLkI63mVaI8ccxfvjlKhH+YpM+0EFZ8qu1kr55GhWXHamg oAJZmiyzNi7wzumfS3oJVAueg9V+7AkERqtwwix9INFJ53xSWFVPNSJDZv/dRhIbt0z23h iRI/K6rOXprwAfLBGWlJTmpTEHTaddEYXKWxQrkRD+SW8xSfOlyL3ibm4Hg4hoZLki2KcT YqOr8qVZezVnrZi7wLrtRCQD0qvknaW+wM/U5EBr15ghegFHPxiXOisK+HN/5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697785661; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qrNW8hO1SL4qD8nevujmTgBgzkFOMA92vDWUzilmdTM=; b=M2BkOTBE4X3huv5MIj+CgyLneyuhQxAj79eFkVF+ReheENn5bJzYraOtfZHcm+vgwGTlDe x8wpdF+IwpYXcNsQLIUxd+fvrnFQ4/bLd9gch6dwufrIuneCbfw8FpDvKkN2znwSHMqt/w 5EmXI+SSg5NV/4Cf3TvZBxa7r7S6VL0jejfsq51B/hSrrd4ocMF+ZEDxv7dzv/qurijyMT 5TXY1qJL8Pt5PhwggWrXhigBgfhjyY29NkU2O6AtjCjwm3JljfOo5O/peTXojYGsDnFt9O pD84YlU1OpZPBFF/BTp5bvWmSjf9MQomNrv4lZkYABiL53ThYIf10pVzT7yS6A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SBbJF24bqz7h4; Fri, 20 Oct 2023 07:07:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39K77flL041468; Fri, 20 Oct 2023 07:07:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39K77fo0041465; Fri, 20 Oct 2023 07:07:41 GMT (envelope-from git) Date: Fri, 20 Oct 2023 07:07:41 GMT Message-Id: <202310200707.39K77fo0041465@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: 3d5bec0e07b8 - main - security/gsa: Fix build List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3d5bec0e07b8106bc02a875b7efb27dc7438723f Auto-Submitted: auto-generated The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=3d5bec0e07b8106bc02a875b7efb27dc7438723f commit 3d5bec0e07b8106bc02a875b7efb27dc7438723f Author: Jose Alonso Cardenas Marquez AuthorDate: 2023-10-20 07:05:11 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2023-10-20 07:05:11 +0000 security/gsa: Fix build - Move from yarn to npm PR: 274276 Reported by: Trond Endrestøl --- security/gsa/Makefile | 26 ++++++++++++-------------- security/gsa/distinfo | 6 +++--- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/security/gsa/Makefile b/security/gsa/Makefile index c70c532ad595..e0dfa1405e9e 100644 --- a/security/gsa/Makefile +++ b/security/gsa/Makefile @@ -1,7 +1,7 @@ PORTNAME= gsa DISTVERSIONPREFIX= v DISTVERSION= 22.7.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MAINTAINER= acm@FreeBSD.org @@ -10,7 +10,7 @@ WWW= https://github.com/greenbone/gsa LICENSE= AGPLv3+ -BUILD_DEPENDS= yarn:www/yarn +BUILD_DEPENDS= npm-node18>0:www/npm-node18 RUN_DEPENDS= ${LOCALBASE}/sbin/gsad:security/gsad USES= nodejs:build @@ -19,7 +19,7 @@ USE_GITHUB= yes GH_ACCOUNT= greenbone GH_PROJECT= gsa -YARN_BIN= ${LOCALBASE}/bin/yarn +NPM_BIN= ${LOCALBASE}/bin/npm # to rebuild the deps archive: # 1. set DEV_UPDATE_MODE=yes @@ -29,27 +29,25 @@ YARN_BIN= ${LOCALBASE}/bin/yarn # 5. make clean makesum DEV_UPDATE_MODE= no -DEPS_CACHE_DIR= ${WRKDIR} +DEPS_CACHE_DIR= ${WRKSRC} .if (${DEV_UPDATE_MODE} == "yes") +NPM_ARGS= install post-build: - @cd ${DEPS_CACHE_DIR} && ${TAR} czf ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-cache-${DISTVERSION}${EXTRACT_SUFX} yarn-offline-cache + @cd ${DEPS_CACHE_DIR} && ${TAR} czf ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-cache-${DISTVERSION}${EXTRACT_SUFX} node_modules @${ECHO} "(!!!) Please upload the cache archive: ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-cache-${DISTVERSION}${EXTRACT_SUFX}" .else -MASTER_SITES+= LOCAL/acm/gsa/:yarn_cache -DISTFILES+= ${PORTNAME}-cache-${DISTVERSION}${EXTRACT_SUFX}:yarn_cache -YARN_ARGS= --offline +MASTER_SITES+= LOCAL/acm/gsa/:npm_cache +DISTFILES+= ${PORTNAME}-cache-${DISTVERSION}${EXTRACT_SUFX}:npm_cache +NPM_ARGS= run build .endif -post-patch: - ${ECHO_CMD} 'yarn-offline-mirror "${WRKDIR}/yarn-offline-cache"' >> \ - ${WRKSRC}/.yarnrc +post-extract: + @${MV} ${WRKDIR}/node_modules ${WRKSRC} do-build: @cd ${WRKSRC} && \ - ${YARN_BIN} ${YARN_ARGS} - @cd ${WRKSRC} && \ - ${YARN_BIN} ${YARN_ARGS} build + ${NPM_BIN} ${NPM_ARGS} do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/share/gvm/gsad/web diff --git a/security/gsa/distinfo b/security/gsa/distinfo index 348588172587..96842f914306 100644 --- a/security/gsa/distinfo +++ b/security/gsa/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1696526628 -SHA256 (gsa-cache-22.7.1.tar.gz) = 56c1a1c900c2b45d711a1f31588fb98a90979b0866c68ec391795d0e9a2bc6fc -SIZE (gsa-cache-22.7.1.tar.gz) = 48729903 +TIMESTAMP = 1697784180 +SHA256 (gsa-cache-22.7.1.tar.gz) = cdb0a815e3069eb24f43012ad16a51a9d171a35b04ddae7da769f09651f6d4ed +SIZE (gsa-cache-22.7.1.tar.gz) = 67963784 SHA256 (greenbone-gsa-v22.7.1_GH0.tar.gz) = 89c159db61df19fe21713fa02c0454e730653673e7ef9b4dc30485666a631a05 SIZE (greenbone-gsa-v22.7.1_GH0.tar.gz) = 3607415