diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-22 06:30:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-22 06:30:44 +0000 |
commit | 5a2cecfc8661e1d3a762adf05cf8eb142cd41710 (patch) | |
tree | 341806a72603cc8845e7e1595289e7a8b9570f2a /net-analyzer/notus-scanner | |
parent | d2bcdab82e5f5f38a8ab54026e8aa94edb1b77a6 (diff) |
Diffstat (limited to 'net-analyzer/notus-scanner')
-rw-r--r-- | net-analyzer/notus-scanner/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/notus-scanner/notus-scanner-22.6.5.ebuild | 78 |
2 files changed, 80 insertions, 0 deletions
diff --git a/net-analyzer/notus-scanner/Manifest b/net-analyzer/notus-scanner/Manifest index f88395f2aaea..47f3d8783428 100644 --- a/net-analyzer/notus-scanner/Manifest +++ b/net-analyzer/notus-scanner/Manifest @@ -5,6 +5,8 @@ AUX notus-scanner.service.conf 93 BLAKE2B 17030f4836aa96f45fdc9be67fb1b1924680ec AUX notus-scanner.toml 272 BLAKE2B 41cd9a81754ee06604373e8d4644362167ed7165c36d2c1c6b2b991bdf5efdea3f620a83ee489f113b9b3500e638d516565b3f8dd830df14a3abb551399dae20 SHA512 476d795b53ce5ef1eabc335122298b2a8c23b5476822cc7f062a6849ecb0e322cd73fabf8d1928c30e557109c08a1c920413da73fade7d5e68c55511bd2d1f6d DIST notus-scanner-22.6.3.tar.gz 293997 BLAKE2B 889416d2324088dc11f2df5146b3c88b276d1170552f55b2cb7ef49f4d8d855b98d6c0e53a1d49bd725b97b88c12df69a1997a38a614aa941dd699d0efb1de51 SHA512 fc3a05a3a9d61dd0b7a9913cfbbf507fec9dd3797a42a82283d14ab7fa8090fbc847487cf3a1d064f49572dda9acadba4bd7d30003fd32a179f572e327254546 DIST notus-scanner-22.6.4.tar.gz 293607 BLAKE2B 75bdbd9d6247a2b9afaf7b049b8b80b2a44714ad4d6c951c9d14898c8bce319c39c4a19162fe1a380ef638164f025c210346ee5659ed1caefdb91bef2a0906d7 SHA512 5a3f23425a1945636c6fd9dd7b3ad39cf6f02920c33aaa35e3aa7ae1dfb8962d60f8e8519047e631c0e72a1a75c56ac5350c9dd291c20947fac2d4cdbb7f6387 +DIST notus-scanner-22.6.5.tar.gz 294136 BLAKE2B 6dcf2b79e359578dde89fb7e12d135df48a4f76d4ca2ae7f5404c2a77938a8f2593db53ee13aac7ca9927b7812994de85b076e78f0eaa451a7868bbe0e23c511 SHA512 6dd8deee45a80c07e51e29a1e64953c359c832b2b8103ab6aab8bb0fe36c78f07c7d2841417305088d82585ca46b3e2eada1ad08c0032069fd779f8546e02cb8 EBUILD notus-scanner-22.6.3-r3.ebuild 2420 BLAKE2B ce6e80ed70553deeb2882e15c638d45d4248f7b960a8efc37ae95951f1ee7aeea64a943a667bc03319204c28d93c3480f3d83cb349a7c0ea5e1945fde0d40f25 SHA512 f74633b0d3fd53285e4991201dc39032b01fd696e8b7ba74309870d9db6808c7cef4a4992afbbc5598d4474650c6ac06457385eddd7ce52d356859448e718373 EBUILD notus-scanner-22.6.4-r2.ebuild 2126 BLAKE2B 4d744b8bfc976f78e944c0f76a5e9aaca54e9e67c492c1b40a668035fc7c36b2173571d4158419f0a5f11ee8717fe444b9a92aac0656f258ac86469a7f331651 SHA512 ff8dfccd47e27711f4c8be4ed9ea69729cae7d9300b3e936efa323fc61e8e4178e90f6a91ca4ad7cb716af79484a8a185c7daee47b1922831e97575fcfe84d2c +EBUILD notus-scanner-22.6.5.ebuild 2121 BLAKE2B 06056b727666017e9e53082789036db7b0d935270e665c4c6bf631de494ae4a3c271bc8044ad54b4223b34a8fc6bc86e6642608d634b301973799b40cf807300 SHA512 db8a9e414539f226bb8c733511e7344cebb886a2ad2ce4f72f4cf56fea8777d3f50a531c80f5ae5c180999420249430c375933e0d461baec9c143b60538f896a MISC metadata.xml 735 BLAKE2B 78af413540fe6af7214b65b50b50aaf9cf59280037ada5228d38e529d90752b0516bf1d7514e7d9436edd93b50cd8a9dadc1e9fbf84a5c57a0ff0cb45b712cc8 SHA512 fdb4ce92c1eede58fe267ed2a4832dd1d4e7a1694591efb3d2ff372a621320275c4090317cb57c50724ceb7e386fa28965e45b724b311127ecd8665e2908cf92 diff --git a/net-analyzer/notus-scanner/notus-scanner-22.6.5.ebuild b/net-analyzer/notus-scanner/notus-scanner-22.6.5.ebuild new file mode 100644 index 000000000000..d107404140b9 --- /dev/null +++ b/net-analyzer/notus-scanner/notus-scanner-22.6.5.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} pypy3 ) +DISTUTILS_USE_PEP517=poetry +inherit distutils-r1 greadme systemd + +DESCRIPTION="Notus is a vulnerability scanner for creating results from local security checks" +HOMEPAGE="https://github.com/greenbone/notus-scanner" +SRC_URI="https://github.com/greenbone/notus-scanner/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3 AGPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + acct-user/gvm + net-libs/paho-mqtt-c + >=dev-python/psutil-6.1[${PYTHON_USEDEP}] + >=dev-python/python-gnupg-0.5.3[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/paho-mqtt-1.5.1[${PYTHON_USEDEP}] + <dev-python/tomli-3[${PYTHON_USEDEP}] +" + +RDEPEND=" + ${DEPEND} + app-misc/mosquitto +" + +PATCHES=( + "${FILESDIR}"/notus-scanner-22.6.2-remove-tests.patch +) + +GREADME_DISABLE_AUTOFORMAT=1 + +distutils_enable_tests unittest + +python_install() { + distutils-r1_python_install + + insinto /etc/gvm + newins "${FILESDIR}/${PN}.toml" "${PN}.toml" + + # Set proper permissions on required files/directories + keepdir /var/lib/notus + keepdir /var/lib/notus/products + keepdir /var/lib/notus/advisories + keepdir /var/log/gvm + if ! use prefix; then + fowners -R gvm:gvm /etc/gvm + fowners -R gvm:gvm /var/lib/notus + fowners -R gvm:gvm /var/log/gvm + fi + + # Adding notus-scanner.log to logrotate + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotate" "${PN}" + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + + systemd_dounit config/${PN}.service + + systemd_install_serviced "${FILESDIR}/notus-scanner.service.conf" \ + ${PN}.service + + greadme_stdin <<-EOF +For validating the feed content, a GnuPG keychain with the Greenbone Community Feed +integrity key needs to be created. Please, read here on how to create it: + - https://greenbone.github.io/docs/latest/22.4/source-build/index.html#feed-validation + - https://wiki.gentoo.org/wiki/Greenbone_Vulnerability_Management#Notus_Scanner + +To enable feed validation, edit /etc/gvm/${PN}.toml and set + disable-hashsum-verification = false +EOF +} |