mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
net-analyzer/greenbone-feed-sync: drop 23.10.0-r1
Signed-off-by: Giuseppe Foti <foti.giuseppe@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44418 Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
parent
7b20e96890
commit
20694aff70
@ -1,2 +1 @@
|
||||
DIST greenbone-feed-sync-23.10.0.tar.gz 63001 BLAKE2B 5566cef8649e578cb498f0a5bc1e41f237a3702698b2012f3a62d8f5f647e6b1e3253c7d92e4a9fc82ad7991de8010b94ba8c1194a820511c49e5f5262e471ff SHA512 fe5864c4e650f17a072cd6e4153779ea33ad8f0ac28e92114b40c465a04b70791b603ccbe82934dcdad13fce2003e2d9786cec75854efecf8aefa74c7ce178f4
|
||||
DIST greenbone-feed-sync-25.1.0.tar.gz 65345 BLAKE2B cf0c8ce7b7387b70ea00a87ecc48b12f1529b80e92f13dadfc31c15c81bd549261aa4ec83124c16be4833fc202c0b5000ca0ef92ca2d5fa5f8686ba4c01b63e8 SHA512 970aa6b0b75fabc45629dca3f036a3fca925fa03e52f704033a1d4497e77afaedcbfe9afea94400ab1b136bb19d8829cdab45d6c3c9de6088e9a48da0871128f
|
||||
|
||||
@ -1,68 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..13} pypy3_11 )
|
||||
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 ~x86"
|
||||
IUSE="cron"
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="
|
||||
acct-user/gvm
|
||||
net-misc/rsync
|
||||
>=net-analyzer/gvmd-22.5.0
|
||||
>=dev-python/rich-13.2.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
cron? ( virtual/cron )
|
||||
"
|
||||
|
||||
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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user