summaryrefslogtreecommitdiff
path: root/net-analyzer/greenbone-feed-sync
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:35:26 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:35:26 -0500
commitf716a9fe6455d39eef01e718aae68dae61c19704 (patch)
tree0c52bbae1c242fbc296bd650fcd1167685f81492 /net-analyzer/greenbone-feed-sync
parent3f9cf298e89cd5037b982abba06091224ee76daf (diff)
downloadbaldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.tar.gz
baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.tar.xz
baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.zip
Adding metadata
Diffstat (limited to 'net-analyzer/greenbone-feed-sync')
-rw-r--r--net-analyzer/greenbone-feed-sync/Manifest2
-rw-r--r--net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.cron7
-rw-r--r--net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.service11
-rw-r--r--net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.timer9
-rw-r--r--net-analyzer/greenbone-feed-sync/greenbone-feed-sync-25.1.0.ebuild102
-rw-r--r--net-analyzer/greenbone-feed-sync/greenbone-feed-sync-25.2.0.ebuild102
-rw-r--r--net-analyzer/greenbone-feed-sync/metadata.xml22
7 files changed, 0 insertions, 255 deletions
diff --git a/net-analyzer/greenbone-feed-sync/Manifest b/net-analyzer/greenbone-feed-sync/Manifest
deleted file mode 100644
index 5f121672a393..000000000000
--- a/net-analyzer/greenbone-feed-sync/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST greenbone-feed-sync-25.1.0.tar.gz 65345 BLAKE2B cf0c8ce7b7387b70ea00a87ecc48b12f1529b80e92f13dadfc31c15c81bd549261aa4ec83124c16be4833fc202c0b5000ca0ef92ca2d5fa5f8686ba4c01b63e8 SHA512 970aa6b0b75fabc45629dca3f036a3fca925fa03e52f704033a1d4497e77afaedcbfe9afea94400ab1b136bb19d8829cdab45d6c3c9de6088e9a48da0871128f
-DIST greenbone-feed-sync-25.2.0.tar.gz 75235 BLAKE2B af655cb9e76e97773ef19288b032d9516c18bd8e848ab622f699508b25a8a68d50040da2f86a8eea0c988a875a53166759f170ffb5e1c6956529fa55761b7772 SHA512 33b61109ea0f7b728c980e8a14f780b25ca5c06bc37e280e60bd25a69e9119594e6a40b1a795f9aa4e439e2c78a68e298822d879c93235228941ec005f55bd0c
diff --git a/net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.cron b/net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.cron
deleted file mode 100644
index 5b3755982966..000000000000
--- a/net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.cron
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-#
-# To enable sync via cron, execute "sudo -u gvm touch /etc/gvm/cron-feed-sync-enabled"
-if [[ ! -f /etc/gvm/cron-feed-sync-enabled ]]; then
- exit
-fi
-sudo -u gvm /usr/bin/greenbone-feed-sync --quiet --type all
diff --git a/net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.service b/net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.service
deleted file mode 100644
index 987fe731d47b..000000000000
--- a/net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=sync the Greenbone Community Feed
-
-[Service]
-Type=oneshot
-ExecStart=/usr/bin/greenbone-feed-sync --quiet --type all
-SyslogIdentifier=greenbone-feed-sync
-User=gvm
-
-[Install]
-WantedBy=multi-user.target
diff --git a/net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.timer b/net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.timer
deleted file mode 100644
index 9faf470e013c..000000000000
--- a/net-analyzer/greenbone-feed-sync/files/greenbone-feed-sync.timer
+++ /dev/null
@@ -1,9 +0,0 @@
-[Unit]
-Description=Daily update of all feeds of the Greenbone Vulerability Management (GMV) suite
-
-[Timer]
-OnCalendar=daily
-RandomizedDelaySec=2hour
-
-[Install]
-WantedBy=timers.target
diff --git a/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-25.1.0.ebuild b/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-25.1.0.ebuild
deleted file mode 100644
index 6ae553941f14..000000000000
--- a/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-25.1.0.ebuild
+++ /dev/null
@@ -1,102 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{13..14} )
-DISTUTILS_USE_PEP517=poetry
-inherit distutils-r1 systemd
-
-DESCRIPTION="New script for syncing the Greenbone Community Feed"
-HOMEPAGE="https://github.com/greenbone/greenbone-feed-sync"
-SRC_URI="https://github.com/greenbone/greenbone-feed-sync/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64"
-IUSE="cron"
-
-COMMON_DEPEND="
- acct-user/gvm
- net-misc/rsync
- >=net-analyzer/gvmd-22.5.0
- >=dev-python/rich-13.2.0[${PYTHON_USEDEP}]
- >=dev-python/shtab-1.7.0[${PYTHON_USEDEP}]
-"
-DEPEND="
- ${COMMON_DEPEND}
- test? ( >=net-analyzer/pontos-22.12.2[${PYTHON_USEDEP}] )
-"
-RDEPEND="
- ${COMMON_DEPEND}
- cron? ( virtual/cron )
-"
-
-distutils_enable_tests unittest
-
-src_test() {
- # Make a copy of the original config
- cp greenbone/feed/sync/config.py "${T}"/config.py.orig || die
-
- # Patch the config.py to not use files from /etc/gvm, as this may
- # cause a PermissionError. See https://bugs.gentoo.org/932836#c10
- sed -i \
- -e 's:DEFAULT_CONFIG_FILE = "/etc/gvm/greenbone-feed-sync.toml":DEFAULT_CONFIG_FILE = "'"${WORKDIR}/${P}-${TARGET}"'/install/etc/gvm/greenbone-feed-sync.toml":' \
- -e 's:DEFAULT_ENTERPRISE_KEY_PATH = "/etc/gvm/greenbone-enterprise-feed-key":DEFAULT_ENTERPRISE_KEY_PATH = "'"${WORKDIR}/${P}-${TARGET}"'/install/etc/gvm/greenbone-enterprise-feed-key":' \
- greenbone/feed/sync/config.py || die
-
- # Disable tests that require network access.
- sed -i \
- -e 's:test_do_not_run_as_root:_&:' \
- -e 's:test_sync_nvts:_&:' \
- -e 's:test_sync_nvts_quiet:_&:' \
- -e 's:test_sync_nvts_rsync_error:_&:' \
- -e 's:test_sync_nvts_verbose:_&:' \
- -e 's:test_sync_nvts:_&:' \
- -e 's:test_sync_nvts_error:_&:' \
- tests/test_main.py || die
-
- distutils-r1_src_test
-
- # Restore config.py after test.
- mv "${T}"/config.py.orig greenbone/feed/sync/config.py || die
-}
-
-python_install() {
- distutils-r1_python_install
-
- # greenbone-feed-sync should not be run as root to avoid changing file permissions
- insinto /etc/sudoers.d
- newins - greenbone-feed-sync <<-EOF
- gvm ALL = NOPASSWD: /usr/bin/greenbone-feed-sync
- EOF
-
- fperms 0750 /etc/sudoers.d
- fperms 0440 /etc/sudoers.d/greenbone-feed-sync
-
- if use cron; then
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/${PN}.cron ${PN}
- fi
-
- systemd_dounit "${FILESDIR}/${PN}.timer" "${FILESDIR}/${PN}.service"
-}
-
-pkg_postinst() {
- if [[ -n ${REPLACING_VERSIONS} ]]; then
- return
- fi
-
- if use cron; then
- elog
- elog "Edit ${EROOT}/etc/cron.weekly/greenbone-feed-sync to activate daily feed update!"
- elog
- fi
-
- if systemd_is_booted; then
- elog
- elog "To enable the systemd timer, run the following command:"
- elog " systemctl enable --now greenbone-feed-sync.timer"
- elog
- fi
-}
diff --git a/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-25.2.0.ebuild b/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-25.2.0.ebuild
deleted file mode 100644
index 9331f86da4fa..000000000000
--- a/net-analyzer/greenbone-feed-sync/greenbone-feed-sync-25.2.0.ebuild
+++ /dev/null
@@ -1,102 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{13..14} )
-DISTUTILS_USE_PEP517=poetry
-inherit distutils-r1 systemd
-
-DESCRIPTION="New script for syncing the Greenbone Community Feed"
-HOMEPAGE="https://github.com/greenbone/greenbone-feed-sync"
-SRC_URI="https://github.com/greenbone/greenbone-feed-sync/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64"
-IUSE="cron"
-
-COMMON_DEPEND="
- acct-user/gvm
- net-misc/rsync
- >=net-analyzer/gvmd-22.5.0
- >=dev-python/rich-13.2.0[${PYTHON_USEDEP}]
- >=dev-python/shtab-1.7.0[${PYTHON_USEDEP}]
-"
-DEPEND="
- ${COMMON_DEPEND}
- test? ( >=net-analyzer/pontos-22.12.2[${PYTHON_USEDEP}] )
-"
-RDEPEND="
- ${COMMON_DEPEND}
- cron? ( virtual/cron )
-"
-
-distutils_enable_tests unittest
-
-src_test() {
- # Make a copy of the original config
- cp greenbone/feed/sync/config.py "${T}"/config.py.orig || die
-
- # Patch the config.py to not use files from /etc/gvm, as this may
- # cause a PermissionError. See https://bugs.gentoo.org/932836#c10
- sed -i \
- -e 's:DEFAULT_CONFIG_FILE = "/etc/gvm/greenbone-feed-sync.toml":DEFAULT_CONFIG_FILE = "'"${WORKDIR}/${P}-${TARGET}"'/install/etc/gvm/greenbone-feed-sync.toml":' \
- -e 's:DEFAULT_ENTERPRISE_KEY_PATH = "/etc/gvm/greenbone-enterprise-feed-key":DEFAULT_ENTERPRISE_KEY_PATH = "'"${WORKDIR}/${P}-${TARGET}"'/install/etc/gvm/greenbone-enterprise-feed-key":' \
- greenbone/feed/sync/config.py || die
-
- # Disable tests that require network access.
- sed -i \
- -e 's:test_do_not_run_as_root:_&:' \
- -e 's:test_sync_nvts:_&:' \
- -e 's:test_sync_nvts_quiet:_&:' \
- -e 's:test_sync_nvts_rsync_error:_&:' \
- -e 's:test_sync_nvts_verbose:_&:' \
- -e 's:test_sync_nvts:_&:' \
- -e 's:test_sync_nvts_error:_&:' \
- tests/test_main.py || die
-
- distutils-r1_src_test
-
- # Restore config.py after test.
- mv "${T}"/config.py.orig greenbone/feed/sync/config.py || die
-}
-
-python_install() {
- distutils-r1_python_install
-
- # greenbone-feed-sync should not be run as root to avoid changing file permissions
- insinto /etc/sudoers.d
- newins - greenbone-feed-sync <<-EOF
- gvm ALL = NOPASSWD: /usr/bin/greenbone-feed-sync
- EOF
-
- fperms 0750 /etc/sudoers.d
- fperms 0440 /etc/sudoers.d/greenbone-feed-sync
-
- if use cron; then
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/${PN}.cron ${PN}
- fi
-
- systemd_dounit "${FILESDIR}/${PN}.timer" "${FILESDIR}/${PN}.service"
-}
-
-pkg_postinst() {
- if [[ -n ${REPLACING_VERSIONS} ]]; then
- return
- fi
-
- if use cron; then
- elog
- elog "Edit ${EROOT}/etc/cron.weekly/greenbone-feed-sync to activate daily feed update!"
- elog
- fi
-
- if systemd_is_booted; then
- elog
- elog "To enable the systemd timer, run the following command:"
- elog " systemctl enable --now greenbone-feed-sync.timer"
- elog
- fi
-}
diff --git a/net-analyzer/greenbone-feed-sync/metadata.xml b/net-analyzer/greenbone-feed-sync/metadata.xml
deleted file mode 100644
index 7f358764088e..000000000000
--- a/net-analyzer/greenbone-feed-sync/metadata.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person" proxied="yes">
- <email>foti.giuseppe@gmail.com</email>
- <name>Giuseppe Foti</name>
- </maintainer>
- <maintainer type="project" proxied="proxy">
- <email>proxy-maint@gentoo.org</email>
- <name>Proxy Maintainers</name>
- </maintainer>
- <use>
- <flag name="cron">Adds file to enable daily cron job to update Greenbone Community Feed's data"</flag>
- </use>
- <longdescription lang="en">
- This is the new script for syncing the Greenbone Community Feed.
- The greenbone-nvt-sync script was previously installed by net-analyzer/openvas-scanner.
- </longdescription>
- <upstream>
- <remote-id type="github">greenbone/greenbone-feed-sync</remote-id>
- </upstream>
-</pkgmetadata>