From nobody Sun May 22 05:44:24 2022 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 BA3261B3E1E0; Sun, 22 May 2022 05:44:24 +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 4L5TtJ4FM2z4VFW; Sun, 22 May 2022 05:44:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653198264; 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=o1qZBvlXNwbv6frWsajVEMAwr2xavhyNgsdSMXGInJM=; b=uLQ5SIE329oyoSLHVUSeNkcE/EASd8jjHStLvNh96f/2Wj4OqJoYEiMDpB80Zmyoxj+44o 1OPc6rzQ8xy4VK5Wtnmt0xLxN++z262vcWHYdmtW8j+GEODp8nitg3KUaqaPQOEbA1hU4i gIbL7ECID0fq7eVbxIA22EIrc78V+ZXM1puno655HYfR6XD4EpOMvAr8MmyP3JjPYNqrmt P/MflRewa2VoA2N2gBVd5zMNIdK3gULOBKmfXMNwsnOq7JRK2KIy65nNRzXVMiKbyC3jlK gd3rEAWE1Dfxlu55aJ9ISGY2EqiMgxE2WpoF3dY/TLDMkB4qHqhRvClK6O+hiQ== 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 6516C159D6; Sun, 22 May 2022 05:44:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24M5iO4S005427; Sun, 22 May 2022 05:44:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24M5iOfl005426; Sun, 22 May 2022 05:44:24 GMT (envelope-from git) Date: Sun, 22 May 2022 05:44:24 GMT Message-Id: <202205220544.24M5iOfl005426@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: 7e40d53281a2 - main - security/gsa: New port: Greenbone Security Assistant webpage written in React 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: 7e40d53281a2ff7cbe48724bcfbc9eed3921265d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653198264; 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=o1qZBvlXNwbv6frWsajVEMAwr2xavhyNgsdSMXGInJM=; b=qaBI7gXYe2homcXBqoXPt63ySCpWYOLW9lFPyD0sPyi7CoHve/NaQ//VIT0nzViZ+tyNfH 4BCJj0QHKpVl03TdQLrbl+/tx4WxdvnX63kIe6aL1ezNHIDNgGfixccbFOwWFVWNBHv6cG SK2/MDAoHyYzMQmPBcC6BehHHBaDuxcLTmBOBk9VqlVRhTxCTlVxjpi/5ueWMC41yOTopE Zf1Td2HILP94Dm6Mw1MHgYJmjxksdmr2XWQfVy0/e+T79f+lEaEIGciURuw5dB4TVLXO0O GxInL9sPsYJyDS6V8r3AvHO3AB/quBAH4ZYXwChcUA+z/evnW5vsWwiWRXgXvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653198264; a=rsa-sha256; cv=none; b=PjVejmccAHz5mX89+tThY9Gb3PFv5Z/rZMoDu6QVKG9sI2NmNt8VaQt2NBEbeSd/eBG2HY gKIkTk50vg1MbNDIXFYiUys1m0/mHM87dKDhO7QydAaRktZ+vSvvcMG82VtpPMSHvhBmzs p7wFN4qlPpvx+gDXAKMt2JpLZP8n5+3b2gt6spjMnF6cU0DwiZgd88+TL1AhkbGgGqp4SD +c2Ud0sFkPQcdthYUhno11/SGj5jCIJLxVQifNxfh3s5IBQdhwHK+IEzeCjULrbOH0l6yL RuncoRIib+11cUztEmdf0SF4bcpKGdoZyJyx6hMX2iRws11pnzVt7bWtBIEgtg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=7e40d53281a2ff7cbe48724bcfbc9eed3921265d commit 7e40d53281a2ff7cbe48724bcfbc9eed3921265d Author: Jose Alonso Cardenas Marquez AuthorDate: 2022-05-22 05:20:34 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2022-05-22 05:42:10 +0000 security/gsa: New port: Greenbone Security Assistant webpage written in React - security/greenbone-security-assistant was splitted into gsa and gsad ports --- security/gsa/Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ security/gsa/distinfo | 5 +++++ security/gsa/pkg-descr | 10 ++++++++++ 3 files changed, 63 insertions(+) diff --git a/security/gsa/Makefile b/security/gsa/Makefile new file mode 100644 index 000000000000..6423c3c86c57 --- /dev/null +++ b/security/gsa/Makefile @@ -0,0 +1,48 @@ +PORTNAME= gsa +DISTVERSIONPREFIX= v +DISTVERSION= 21.4.4 +CATEGORIES= security +MASTER_SITES= LOCAL/acm/gsa/:yarn_cache +DISTFILES= ${PORTNAME}-cache${EXTRACT_SUFX}:yarn_cache + +MAINTAINER= acm@FreeBSD.org +COMMENT= Greenbone Security Assistant webpage written in React + +LICENSE= AGPLv3+ + +BUILD_DEPENDS= yarn:www/yarn +RUN_DEPENDS= ${LOCALBASE}/sbin/gsad:security/gsad + +USES= nodejs:build + +USE_GITHUB= yes +GH_ACCOUNT= greenbone +GH_PROJECT= gsa + +YARN_BIN= ${LOCALBASE}/bin/yarn +YARN_ARGS= --offline + +post-patch: + ${ECHO_CMD} 'yarn-offline-mirror "${WRKDIR}/yarn-offline-cache"' >> \ + ${WRKSRC}/.yarnrc + +do-build: + @cd ${WRKSRC} && \ + ${YARN_BIN} ${YARN_ARGS} + @cd ${WRKSRC} && \ + ${YARN_BIN} ${YARN_ARGS} build + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/gvm/gsad/web + + (cd ${WRKSRC}/build && ${COPYTREE_SHARE} . \ + ${STAGEDIR}/${PREFIX}/share/gvm/gsad/web) + +post-install: + @${ECHO_CMD} "share/gvm/gsad/web/index.html" >> ${TMPPLIST} + @${ECHO_CMD} "share/gvm/gsad/web/robots.txt" >> ${TMPPLIST} + @cd ${WRKSRC}/build && \ + ${FIND} -s img locales static -not -type d \ + -exec ${ECHO_CMD} "share/gvm/gsad/web/{}" \; >> ${TMPPLIST} + +.include diff --git a/security/gsa/distinfo b/security/gsa/distinfo new file mode 100644 index 000000000000..afff531a586d --- /dev/null +++ b/security/gsa/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1650923898 +SHA256 (gsa-cache.tar.gz) = 0d020dddef6d6157fd1565b9b392c8ca5958eb094570e2fb38191c5f358ac0a8 +SIZE (gsa-cache.tar.gz) = 61959406 +SHA256 (greenbone-gsa-v21.4.4_GH0.tar.gz) = 251e2ffed64eba49a4ca196775fbfe9543510fb737431fc103cca009ee4c9490 +SIZE (greenbone-gsa-v21.4.4_GH0.tar.gz) = 2471442 diff --git a/security/gsa/pkg-descr b/security/gsa/pkg-descr new file mode 100644 index 000000000000..7c5e8859d13d --- /dev/null +++ b/security/gsa/pkg-descr @@ -0,0 +1,10 @@ +The Greenbone Security Assistant is the web interface developed for the +Greenbone Security Manager appliances. + +It connects to the Greenbone Vulnerability Manager GVM to provide a +full-featured user interface for vulnerability management. + +Greenbone Security Assistant consists of GSA - The webpage written in React +and GSAD - The HTTP server talking to the GVM daemon + +WWW: https://github.com/greenbone/gsa