From nobody Thu Sep 21 16:50:26 2023 X-Original-To: dev-commits-ports-main@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 4Rs1c22n0Wz4thBG; Thu, 21 Sep 2023 16:50:26 +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 4Rs1c22Bf7z4Z9H; Thu, 21 Sep 2023 16:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695315026; 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=XDx2Ny8grgTHCYF/sp81kXl2AzR7YHF7cwDrGVeCaTQ=; b=uMBtTgaQQaDXORzzNl6J2GPLMEhHFBFZqTO9fX2Pp5619ybHxaHxC+mWbkf7TDxbo3B6cO zt8jHCPSVxiI6qAUua/UG6YQDvNqjDEAwOIuTr8MTSOJzRvwbEawViGLQIsP3F+fzZVUmA mvGnJnNjyUGH1wUoKVzNouQyJS6hn5BCvcqyZJkJAZ/tKkVObC46IsxO08xhHdZoiyOZwG M5IipSAMDu1iWLiAGO0JVtdXUOHjVpOROe6ThOkh2l+Zs7xKWMwWY5deg8V2EgUk5OsnlR SLSu3SgFlDmd0qnzQT7mSMHDImULFiiLGSHMkQwvN6OO6dl4StqzBpHQaGNhpg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695315026; a=rsa-sha256; cv=none; b=YZrx+u5iHXEq2MPqJjTOewb9BZvW8CG81ocPgcGhoR7XvVyL1WawNn31yEqutHtSUlRgRY YSbzMeMOt4bBHb6NVLKuOCD6fBqROGOo2qtx1JotHjYnHNBWaiJ0Ct/nIQVGH/FfojDOd0 vx5CHrgmKpJmKqO2XJyni/rFSJ4bYQZYqe3VeCGW2Si8k/NAyXTAFJ5RKBsKEzZ6FP/b7U hU/tHBfeVL27FYwU0KtOT7g1EFlxSeGYnDKVyYeF0fYmy07N/2h8HHkv27NSKV1MnzGBOs xw+KHD7RYggsK++yPqnIbcXEGUZ7w7rKaW69MnhY4XOAA5/7E7YB9Qw46U9mSw== 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=1695315026; 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=XDx2Ny8grgTHCYF/sp81kXl2AzR7YHF7cwDrGVeCaTQ=; b=md4bXLYeD7yhNP1BfRFMwpWv1XdL4qUglJB3XcxF33ld22RP/FlN36struXgeelEFmcCrY 3a5n/ohamRqek9kS6dTCmN40TkWNJoneSvzRAXybYwyQ8KPYbFoGc36bxchUlietJI/gbe 6T5huMDdXoD8gUEsnKYo6BHvkxiYcnsphulFS+sXkY69CYW1SrwhIZgBOcSl3pX5J2l2Um 2FZsCf4OQHvzlXbjaq135mGgaNPJFVHtzFMZmRFmmifel+z+DtomyAO8PV0l5wBDblORos 8I4JMEEbMddabcBGmmmTPexHmKx8G5Uz24PtbzGVJV+dgQoxk5MC8SKr0pEDjA== 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 4Rs1c20vKTzmml; Thu, 21 Sep 2023 16:50:26 +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 38LGoQSN033278; Thu, 21 Sep 2023 16:50:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38LGoQBb033275; Thu, 21 Sep 2023 16:50:26 GMT (envelope-from git) Date: Thu, 21 Sep 2023 16:50:26 GMT Message-Id: <202309211650.38LGoQBb033275@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: aaa196b77ee8 - main - security/py-greenbone-feed-sync: New port: new script for downloading the Greenbone Community Feed List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: aaa196b77ee89c811718cd846345e74f47d4c8ac Auto-Submitted: auto-generated The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=aaa196b77ee89c811718cd846345e74f47d4c8ac commit aaa196b77ee89c811718cd846345e74f47d4c8ac Author: Jose Alonso Cardenas Marquez AuthorDate: 2023-09-21 16:49:08 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2023-09-21 16:49:08 +0000 security/py-greenbone-feed-sync: New port: new script for downloading the Greenbone Community Feed https://github.com/greenbone/greenbone-feed-sync --- security/Makefile | 1 + security/py-greenbone-feed-sync/Makefile | 44 +++++++++++++++++ security/py-greenbone-feed-sync/distinfo | 3 ++ .../files/patch-greenbone-feed-sync_config.py | 15 ++++++ security/py-greenbone-feed-sync/pkg-descr | 1 + security/py-greenbone-feed-sync/pkg-plist | 57 ++++++++++++++++++++++ 6 files changed, 121 insertions(+) diff --git a/security/Makefile b/security/Makefile index 609837e80af0..43e8001596fc 100644 --- a/security/Makefile +++ b/security/Makefile @@ -920,6 +920,7 @@ SUBDIR += py-google-auth-oauthlib SUBDIR += py-gpgme SUBDIR += py-gpsoauth + SUBDIR += py-greenbone-feed-sync SUBDIR += py-gssapi SUBDIR += py-gvm-tools SUBDIR += py-hkdf diff --git a/security/py-greenbone-feed-sync/Makefile b/security/py-greenbone-feed-sync/Makefile new file mode 100644 index 000000000000..65f0c90bced0 --- /dev/null +++ b/security/py-greenbone-feed-sync/Makefile @@ -0,0 +1,44 @@ +PORTNAME= greenbone-feed-sync +DISTVERSION= 23.8.0 +DISTVERSIONPREFIX= v +CATEGORIES= security python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= acm@FreeBSD.org +COMMENT= new script for downloading the Greenbone Community Feed +WWW= https://github.com/greenbone/greenbone-feed-sync + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tomli>0:textproc/py-tomli@${PY_FLAVOR} \ + rsync:net/rsync + +USE_GITHUB= yes +GH_ACCOUNT= greenbone +GH_PROJECT= ${PORTNAME} + +USES= python +USE_PYTHON= pep517 + +NO_ARCH= yes + +USERS= gvm +GROUPS= ${USERS} + +post-extract: + ${MV} ${WRKSRC}/tests ${WRKSRC}/greenbone/ + +post-patch: + @${RM} ${WRKSRC}/greenbone/feed/sync/config.py.orig + @${REINPLACE_CMD} -i "" -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/greenbone/feed/sync/config.py + +post-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/gvm + @${MKDIR} ${STAGEDIR}/var/lib/gvm + @${MKDIR} ${STAGEDIR}/var/lib/openvas/plugins + @${MKDIR} ${STAGEDIR}/var/lib/notus + +.include diff --git a/security/py-greenbone-feed-sync/distinfo b/security/py-greenbone-feed-sync/distinfo new file mode 100644 index 000000000000..7744bdaef511 --- /dev/null +++ b/security/py-greenbone-feed-sync/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1695267921 +SHA256 (greenbone-greenbone-feed-sync-v23.8.0_GH0.tar.gz) = d1f37085010cde702017d4fdd71ddf840ffd5170d4ab6d66a3155a28eb759b7a +SIZE (greenbone-greenbone-feed-sync-v23.8.0_GH0.tar.gz) = 63822 diff --git a/security/py-greenbone-feed-sync/files/patch-greenbone-feed-sync_config.py b/security/py-greenbone-feed-sync/files/patch-greenbone-feed-sync_config.py new file mode 100644 index 000000000000..b7736118da6d --- /dev/null +++ b/security/py-greenbone-feed-sync/files/patch-greenbone-feed-sync_config.py @@ -0,0 +1,15 @@ +--- greenbone/feed/sync/config.py 2023-09-21 01:01:53.391475000 -0500 ++++ greenbone/feed/sync/config.py 2023-09-21 01:02:58.557438000 -0500 +@@ -69,10 +69,10 @@ + DEFAULT_GVMD_LOCK_FILE_PATH = "gvm/feed-update.lock" + DEFAULT_OPENVAS_LOCK_FILE_PATH = "openvas/feed-update.lock" + +-DEFAULT_CONFIG_FILE = "/etc/gvm/greenbone-feed-sync.toml" ++DEFAULT_CONFIG_FILE = "%%LOCALBASE%%/etc/gvm/greenbone-feed-sync.toml" + DEFAULT_USER_CONFIG_FILE = "~/.config/greenbone-feed-sync.toml" + +-DEFAULT_ENTERPRISE_KEY_PATH = "/etc/gvm/greenbone-enterprise-feed-key" ++DEFAULT_ENTERPRISE_KEY_PATH = "%%LOCALBASE%%/etc/gvm/greenbone-enterprise-feed-key" + + DEFAULT_GROUP = "gvm" + DEFAULT_USER = "gvm" diff --git a/security/py-greenbone-feed-sync/pkg-descr b/security/py-greenbone-feed-sync/pkg-descr new file mode 100644 index 000000000000..82fa26c017b6 --- /dev/null +++ b/security/py-greenbone-feed-sync/pkg-descr @@ -0,0 +1 @@ +New script for downloading the Greenbone Community Feed diff --git a/security/py-greenbone-feed-sync/pkg-plist b/security/py-greenbone-feed-sync/pkg-plist new file mode 100644 index 000000000000..ecbd20453c08 --- /dev/null +++ b/security/py-greenbone-feed-sync/pkg-plist @@ -0,0 +1,57 @@ +bin/greenbone-certdata-sync +bin/greenbone-feed-sync +bin/greenbone-nvt-sync +bin/greenbone-scapdata-sync +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__init__.py +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/__version__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/__version__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/config%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/config%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/errors%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/errors%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/helper%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/helper%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/main%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/main%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/parser%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/parser%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/rsync%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__pycache__/rsync%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/__version__.py +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/config.py +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/errors.py +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/helper.py +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/main.py +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/parser.py +%%PYTHON_SITELIBDIR%%/greenbone/feed/sync/rsync.py +%%PYTHON_SITELIBDIR%%/greenbone/tests/__init__.py +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/test_config%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/test_config%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/test_helper%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/test_helper%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/test_main%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/test_main%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/test_parser%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/test_parser%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/test_rsync%%PYTHON_EXT_SUFFIX%%.opt-1.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/__pycache__/test_rsync%%PYTHON_EXT_SUFFIX%%.pyc +%%PYTHON_SITELIBDIR%%/greenbone/tests/test_config.py +%%PYTHON_SITELIBDIR%%/greenbone/tests/test_helper.py +%%PYTHON_SITELIBDIR%%/greenbone/tests/test_main.py +%%PYTHON_SITELIBDIR%%/greenbone/tests/test_parser.py +%%PYTHON_SITELIBDIR%%/greenbone/tests/test_rsync.py +@dir(gvm,gvm,750) etc/gvm +@dir(gvm,gvm,750) /var/lib/gvm +@dir(gvm,gvm,750) /var/lib/notus +@dir(gvm,gvm,750) /var/lib/openvas/plugins +@dir(gvm,gvm,750) /var/lib/openvas +@dir etc/gvm +@dir /var/lib/gvm +@dir /var/lib/notus +@dir /var/lib/openvas/plugins +@dir /var/lib/openvas +@dir /var/lib