mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
net-analyzer/openvas-scanner: version bump to 20.8.1
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Jonas Licht <jonas.licht@fem.tu-ilmenau.de> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST openvas-scanner-20.8.1.tar.gz 431985 BLAKE2B 60b328dc261bf48f37aa2727f4b63904c898467f989abef8f05e29329a24d0d98c13690005c5c7a8c93f899db709771ea60832927f169f6779707a1fac602368 SHA512 6114f37a91a3dd42c3693f10548a7727fb88fbe535ce511b164a440d5ace1c736d4c8a45db9a7e83b9abbd376c4d6b13afd3d23a995a5d089329a2bb8bd71cec
|
||||
DIST openvas-scanner-6.0.1.tar.gz 522100 BLAKE2B af82b41736329bd90ba1ea73a0ace36d4115375f81a7aaff5d3bd50f21cfa3195cdf4012aa952da52c4103a31475de5c5790ef3e2e36180aa06737371fa0e5a0 SHA512 db4087fffe1d50e232fa1e51325cf7f142237e2bd3cc5dcaa1e7058a4871300f352f2c0e700eae72ea9412c347b072e9d1f2eca508b27cb30f36c6895ec95147
|
||||
DIST openvas-scanner-7.0.1.tar.gz 429012 BLAKE2B 13fd0fef2ce88f6789da9f00e8f35329e915ebc74a29b3bd52af93c6b70292d055fa1159aec4041d79a785971a583eb514e8700d1d38a76775446e40af9b2fac SHA512 201ea02b25bf247320437ae5c82bdc95db981cc6bd99fdece9403573434db122cdc8db7b82a08cba34b6d67d5794b2364f798847c79b421495666adc95a02571
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# GVM cron script that updates feed.
|
||||
|
||||
# Start to update FEED & First NVT.
|
||||
try=0
|
||||
until [ $try -ge 5 ]; do
|
||||
greenbone-feed-sync --type GVMD_DATA --curl &>/dev/null && break
|
||||
try=$[$try+1]
|
||||
sleep 30
|
||||
done
|
||||
|
||||
# Check status
|
||||
if [ $? -eq 0 ]; then
|
||||
# Avoid your IP temporary banned because of multiple connection
|
||||
sleep 5
|
||||
# Try to update scapdata.
|
||||
try=0
|
||||
until [ $try -ge 5 ]; do
|
||||
greenbone-feed-sync --type SCAP &>/dev/null && break
|
||||
try=$[$try+1]
|
||||
sleep 30
|
||||
done
|
||||
|
||||
# Check status
|
||||
if [ $? -eq 0 ]; then
|
||||
# Avoid your IP temporary banned because of multiple connection
|
||||
sleep 5
|
||||
# Try to update certdata
|
||||
try=0
|
||||
until [ $try -ge 5 ]; do
|
||||
greenbone-feed-sync --type CERT &>/dev/null && break
|
||||
try=$[$try+1]
|
||||
sleep 30
|
||||
done
|
||||
|
||||
# Check status
|
||||
if [ $? -eq 0 ]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@@ -0,0 +1,129 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR="emake"
|
||||
inherit cmake flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PN="openvas"
|
||||
MY_DN="openvassd"
|
||||
|
||||
DESCRIPTION="Open Vulnerability Assessment Scanner"
|
||||
HOMEPAGE="https://www.greenbone.net/en/ https://github.com/greenbone/openvas-scanner/"
|
||||
SRC_URI="https://github.com/greenbone/openvas-scanner/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2 GPL-2+"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="cron extras snmp test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
acct-group/gvm
|
||||
acct-user/gvm
|
||||
app-crypt/gpgme:=
|
||||
dev-db/redis
|
||||
dev-libs/glib
|
||||
dev-libs/libgcrypt:=
|
||||
dev-libs/libksba
|
||||
>=net-analyzer/gvm-libs-20.8.0
|
||||
snmp? ( net-analyzer/net-snmp:= )
|
||||
net-libs/gnutls:=
|
||||
net-libs/libpcap
|
||||
net-libs/libssh:="
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}"
|
||||
|
||||
BDEPEND="
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
extras? (
|
||||
app-doc/doxygen[dot]
|
||||
app-doc/xmltoman
|
||||
app-text/htmldoc
|
||||
dev-perl/CGI
|
||||
dev-perl/SQL-Translator
|
||||
)
|
||||
test? ( dev-libs/cgreen )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.0.1-disable-automagic-dep.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
# QA-Fix | Correct FHS/Gentoo policy paths for 7.0.0
|
||||
sed -i -e "s*/doc/openvas-scanner/*/doc/openvas-scanner-${PV}/*g" "$S"/src/CMakeLists.txt || die
|
||||
# QA-Fix | Remove !CLANG doxygen warnings for 7.0.0
|
||||
if use extras; then
|
||||
if ! tc-is-clang; then
|
||||
local f
|
||||
for f in doc/*.in
|
||||
do
|
||||
sed -i \
|
||||
-e "s*CLANG_ASSISTED_PARSING = NO*#CLANG_ASSISTED_PARSING = NO*g" \
|
||||
-e "s*CLANG_OPTIONS*#CLANG_OPTIONS*g" \
|
||||
"${f}" || die "couldn't disable CLANG parsing"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
#Remove tests that doesn't work in the network sandbox
|
||||
if use test; then
|
||||
sed -i 's/add_test (pcap-test pcap-test)/ /g' misc/CMakeLists.txt || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
"-DLOCALSTATEDIR=${EPREFIX}/var"
|
||||
"-DSYSCONFDIR=${EPREFIX}/etc"
|
||||
"-DSBINDIR=${EPREFIX}/usr/bin"
|
||||
"-DBUILD_WITH_SNMP=$(usex snmp)"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
if use extras; then
|
||||
cmake_build -C "${BUILD_DIR}" doc
|
||||
cmake_build doc-full -C "${BUILD_DIR}" doc
|
||||
fi
|
||||
cmake_build rebuild_cache
|
||||
if use test; then
|
||||
cmake_build tests
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use extras; then
|
||||
local HTML_DOCS=( "${BUILD_DIR}"/doc/generated/html/. )
|
||||
fi
|
||||
cmake_src_install
|
||||
|
||||
if use cron; then
|
||||
# Install the cron job if they want it.
|
||||
exeinto /etc/gvm
|
||||
newexe "${FILESDIR}/gvm-feed-sync-${PV}.sh" gvm-feed-sync.sh
|
||||
fowners gvm:gvm /etc/gvm/gvm-feed-sync.sh
|
||||
|
||||
insinto /etc/cron.d
|
||||
newins "${FILESDIR}"/gvm-feed-sync.cron gvm
|
||||
fi
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${MY_DN}.logrotate" "${MY_DN}"
|
||||
|
||||
# Set proper permissions on required files/directories
|
||||
keepdir /var/log/gvm
|
||||
fowners gvm:gvm /var/log/gvm
|
||||
keepdir /var/lib/openvas/{gnupg,plugins}
|
||||
fowners -R gvm:gvm /var/lib/openvas
|
||||
|
||||
insinto /etc/openvas
|
||||
doins "${FILESDIR}/openvas.conf"
|
||||
}
|
||||
Reference in New Issue
Block a user