summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2022-05-09 13:44:07 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-05-09 14:07:16 +0200
commit65e6c54c1352d9fc3aa0f88d6f835f58e0a74c6c (patch)
tree5daa9f4e78897c5d1f1d422096f2ff4dda48ef94 /net-analyzer
parentnet-analyzer/python-gvm: update LICENSE (diff)
downloadgentoo-65e6c54c1352d9fc3aa0f88d6f835f58e0a74c6c.tar.gz
gentoo-65e6c54c1352d9fc3aa0f88d6f835f58e0a74c6c.tar.bz2
gentoo-65e6c54c1352d9fc3aa0f88d6f835f58e0a74c6c.zip
net-analyzer/openvas-scanner: drop USE cron, minor fixes
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/openvas-scanner/openvas-scanner-21.4.4-r2.ebuild (renamed from net-analyzer/openvas-scanner/openvas-scanner-21.4.4-r1.ebuild)36
1 files changed, 14 insertions, 22 deletions
diff --git a/net-analyzer/openvas-scanner/openvas-scanner-21.4.4-r1.ebuild b/net-analyzer/openvas-scanner/openvas-scanner-21.4.4-r2.ebuild
index 9ddbf782d358..59b7fae51932 100644
--- a/net-analyzer/openvas-scanner/openvas-scanner-21.4.4-r1.ebuild
+++ b/net-analyzer/openvas-scanner/openvas-scanner-21.4.4-r2.ebuild
@@ -3,24 +3,22 @@
EAPI=8
-CMAKE_MAKEFILE_GENERATOR="emake"
inherit cmake 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/"
+HOMEPAGE="https://www.greenbone.net 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 doc snmp test"
+IUSE="doc snmp test"
RESTRICT="!test? ( test )"
DEPEND="
- acct-group/gvm
acct-user/gvm
app-crypt/gpgme:=
dev-db/redis
@@ -32,11 +30,9 @@ DEPEND="
snmp? ( net-analyzer/net-snmp:= )
net-libs/gnutls:=
net-libs/libpcap
- net-libs/libssh:="
-
-RDEPEND="
- ${DEPEND}"
-
+ net-libs/libssh:=
+"
+RDEPEND="${DEPEND}"
BDEPEND="
sys-devel/bison
sys-devel/flex
@@ -48,7 +44,8 @@ BDEPEND="
dev-perl/CGI
dev-perl/SQL-Translator
)
- test? ( dev-libs/cgreen )"
+ test? ( dev-libs/cgreen )
+"
PATCHES=(
"${FILESDIR}"/${PN}-7.0.1-disable-automagic-dep.patch
@@ -109,24 +106,19 @@ src_install() {
fi
cmake_src_install
- if use cron; then
- # Install the cron job if they want it.
- exeinto /etc/gvm
- newexe "${FILESDIR}/gvm-feed-sync-20.8.1.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
+ if ! use prefix; then
+ fowners gvm:gvm /var/log/gvm
+ fi
+
keepdir /var/lib/openvas/{gnupg,plugins}
- fowners -R gvm:gvm /var/lib/openvas
+ if ! use prefix; then
+ fowners -R gvm:gvm /var/lib/openvas
+ fi
insinto /etc/openvas
doins "${FILESDIR}/openvas.conf"