diff options
Diffstat (limited to 'net-analyzer/openvas-manager')
16 files changed, 470 insertions, 0 deletions
diff --git a/net-analyzer/openvas-manager/Manifest b/net-analyzer/openvas-manager/Manifest new file mode 100644 index 000000000000..1f9121a88b06 --- /dev/null +++ b/net-analyzer/openvas-manager/Manifest @@ -0,0 +1,5 @@ +DIST openvas-manager-5.0.10.tar.gz 1744247 SHA256 60b73e42939db1bb82c026c872a8dc51d65e421150dc7686bc6ef6e9a2cfc29f SHA512 946fcf3b4a977cca9d0f39795eac28fdc4c6dd9a56ea65d1be579b4735232634bd95284f07e8cd9849bde81bbaf690ee6c0a801e1500a8b1ddba2f6dc1033800 WHIRLPOOL 7dcd6d547f484df2a3f25eec2a669e6d6f37770e8e0b81c05a7b62a03e28608596c09c3f7b870445b7146213e47ea595866582f389e2ba2bfed150bbb2678497 +DIST openvas-manager-5.0.11.tar.gz 1744359 SHA256 4d5b93c34b0767d838828f810d6617e5c5d0141659e48a1765b00636144ca081 SHA512 740e842a8681e2647d753149c4dd1a01077d489e3719ad11143a3430feeff8ecc4847668f70c45a684f466548dd891e649180dde070e1d99375d26040017d2a5 WHIRLPOOL 09b1d84871c5c9383790d76ea011f32b3270ad3d25d7f93d7f5b02e69310b66d63808f870331aac411070074b21b8128aa5983f7d7790e7aafb7fe7a19065248 +DIST openvas-manager-6.0.3.tar.gz 1914785 SHA256 cdad83b6745ac77657c569b6196559cdeb71a95a8d63e3c54ae30e0ce26c79c6 SHA512 53f671b21c91fb621244498974d97e2682dcdd19d6da1ace5d150a5ec5dd9553df93484b723890fde5e673063739c5cc081c4ecad25bcdb1cbee2352c8442b76 WHIRLPOOL 9d58fee8a67ba1c87931e43d3b294194dc4ee50c6a1756cdec835dcd8c2dd2663262a197cc45e769f1842b6fa991a274eb67974f1510af9521a98834797c0ce2 +DIST openvas-manager-6.0.4.tar.gz 1920546 SHA256 12e77da14ec1a12865f001aade603042911346b59f9fef0404c69f25560d7224 SHA512 81c946aac6bb9de5802d71b75668c4cc3f15e9d43779ee55af7b1b469e23268b9ad3678324a355bee2bbbd5fabd7f4c78452e2e8ea567d59e0d0f41889e9ff9f WHIRLPOOL a905c962edb629f2640386069950ae04e2c906aadb77eeec0ef034843671480e901cfb13e9958bf051889d9b512ea937336ded61d02298aa82ca0796e65fbbca +DIST openvas-manager-6.0.5.tar.gz 1926160 SHA256 93cc47ed2722505e9a58b747a4587ed2161e2b586fe44b6d4da38d52813047c1 SHA512 ef76ba837c624e0d254aa4e9be4e1b95a9d40f6c2c6344b0487f7da61c5183a7a4b882cccce5e2ea473c9bf84525d68f46bd010ef751576da818acd749b38f44 WHIRLPOOL 4c8b4ce117fe4ede9063ed472b84099fc48f2d6b10ee96177aa2edb788604ead3ea723743804416288d5eed986cb8c789033f91bdc2e7f992b4f8cc84f046afc diff --git a/net-analyzer/openvas-manager/files/openvas-manager-5.0.4-bsdsource.patch b/net-analyzer/openvas-manager/files/openvas-manager-5.0.4-bsdsource.patch new file mode 100644 index 000000000000..f6db4e2ddaa2 --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvas-manager-5.0.4-bsdsource.patch @@ -0,0 +1,12 @@ +diff -ru openvas-manager-5.0.1/CMakeLists.txt openvas-manager-5.0.1.bsdsource/CMakeLists.txt +--- openvas-manager-5.0.1/CMakeLists.txt 2014-05-09 15:28:54.000000000 +0200 ++++ openvas-manager-5.0.1/CMakeLists.txt 2014-05-26 23:11:41.845214141 +0200 +@@ -252,7 +252,7 @@ + set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -Wl,-z,relro -Wl,-z,now") + + set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror") +-set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_FILE_OFFSET_BITS=64") ++set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall -D_DEFAULT_SOURCE -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64") + + add_subdirectory (src) + diff --git a/net-analyzer/openvas-manager/files/openvas-manager-5.0.4-gpgerror.patch b/net-analyzer/openvas-manager/files/openvas-manager-5.0.4-gpgerror.patch new file mode 100644 index 000000000000..d5a8dc0194ea --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvas-manager-5.0.4-gpgerror.patch @@ -0,0 +1,18 @@ +diff -ru openvas-manager-5.0.1/CMakeLists.txt openvas-manager-5.0.1.gpg/CMakeLists.txt +--- openvas-manager-5.0.1/CMakeLists.txt 2014-05-09 15:28:54.000000000 +0200 ++++ openvas-manager-5.0.1.gpg/CMakeLists.txt 2014-05-26 23:24:14.830308478 +0200 +@@ -205,6 +205,13 @@ + message (FATAL_ERROR "The gpgme library is required.") + endif (NOT GPGME) + ++execute_process (COMMAND gpg-error-config --cflags ++ OUTPUT_VARIABLE GPGERROR_CFLAGS ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++execute_process (COMMAND gpg-error-config --libs ++ OUTPUT_VARIABLE GPGERROR_LDFLAGS ++ OUTPUT_STRIP_TRAILING_WHITESPACE) ++ + execute_process (COMMAND pkg-config --cflags glib-2.0 + OUTPUT_VARIABLE GLIB_CFLAGS + OUTPUT_STRIP_TRAILING_WHITESPACE) + diff --git a/net-analyzer/openvas-manager/files/openvas-manager-5.0.4-run.patch b/net-analyzer/openvas-manager/files/openvas-manager-5.0.4-run.patch new file mode 100644 index 000000000000..f6ff60a3b1de --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvas-manager-5.0.4-run.patch @@ -0,0 +1,16 @@ + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 80f5bd2..33f0562 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -161,7 +161,7 @@ endif (NOT INCLUDEDIR) + set (OPENVAS_DATA_DIR "${DATADIR}/openvas") + set (OPENVAS_STATE_DIR "${LOCALSTATEDIR}/lib/openvas") + set (OPENVAS_LOG_DIR "${LOCALSTATEDIR}/log/openvas") +-set (OPENVAS_PID_DIR "${LOCALSTATEDIR}/run") ++set (OPENVAS_PID_DIR "/run") + set (OPENVAS_SYSCONF_DIR "${SYSCONFDIR}/openvas") + set (OPENVAS_SCAP_RES_DIR "${OPENVAS_DATA_DIR}/scap") + set (OPENVAS_SCAP_DATA_DIR "${OPENVAS_STATE_DIR}/scap-data") diff --git a/net-analyzer/openvas-manager/files/openvas-manager-6.0.1-bsdsource.patch b/net-analyzer/openvas-manager/files/openvas-manager-6.0.1-bsdsource.patch new file mode 100644 index 000000000000..011880979141 --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvas-manager-6.0.1-bsdsource.patch @@ -0,0 +1,16 @@ + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4eb89a0..7ccfc5a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -338,7 +338,7 @@ configure_file (tools/openvas-migrate-to-postgres.in tools/openvas-migrate-to-po + set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -Wl,-z,relro -Wl,-z,now") + + set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror") +-set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64") ++set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall -D_DEFAULT_SOURCE -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64") + + add_subdirectory (src) + diff --git a/net-analyzer/openvas-manager/files/openvasmd b/net-analyzer/openvas-manager/files/openvasmd new file mode 100644 index 000000000000..89accf4eed21 --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvasmd @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net openvassd +} + +start() { + ebegin "Starting openvasmd (manager)" + start-stop-daemon --start --name openvasmd \ + --exec /usr/sbin/openvasmd \ + --pidfile /var/run/openvasmd.pid + eend $? +} + +stop() { + ebegin "Stop openvasmd" + start-stop-daemon --stop --name openvasmd \ + --pidfile /var/run/openvasmd.pid + eend $? +} diff --git a/net-analyzer/openvas-manager/files/openvasmd-daemon.conf b/net-analyzer/openvas-manager/files/openvasmd-daemon.conf new file mode 100644 index 000000000000..d69698eecbb9 --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvasmd-daemon.conf @@ -0,0 +1,15 @@ +#Manager listens on given address - by default manager listens on all addresses +#MANAGER_LISTEN=--listen=127.0.0.1 + +#Manager listens on given port - by default 9390 +MANAGER_PORT=--port=9390 + +MANAGER_EXTRA_ARGS="" + +#Contact scanner on given address +SCANNER_LISTEN=--slisten=127.0.0.1 + +#Scanner listens on given port - by default 9391 +SCANNER_PORT=--sport=9391 + + diff --git a/net-analyzer/openvas-manager/files/openvasmd.init b/net-analyzer/openvas-manager/files/openvasmd.init new file mode 100644 index 000000000000..31b795f336b7 --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvasmd.init @@ -0,0 +1,18 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +name="OpenVAS Manager" +command=/usr/sbin/openvasmd +command_args="${MANAGER_LISTEN} ${MANAGER_PORT} ${SCANNER_LISTEN} ${SCANNER_PORT} ${MANAGER_EXTRA_ARGS}" +pidfile="/run/openvasmd.pid" + +depend() { + after bootmisc + need localmount net openvassd +} + +start_pre() { + checkpath --directory --mode 0775 --quiet /var/cache/openvas +} diff --git a/net-analyzer/openvas-manager/files/openvasmd.logrotate b/net-analyzer/openvas-manager/files/openvasmd.logrotate new file mode 100644 index 000000000000..69cfa26b196a --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvasmd.logrotate @@ -0,0 +1,11 @@ +# logrotate for openvas-manager +/var/log/openvas/openvasmd.log { + rotate 4 + weekly + compress + delaycompress + missingok + postrotate + /bin/kill -HUP `pidof openvasmd` + endscript +} diff --git a/net-analyzer/openvas-manager/files/openvasmd.service b/net-analyzer/openvas-manager/files/openvasmd.service new file mode 100644 index 000000000000..91edb0087bc4 --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvasmd.service @@ -0,0 +1,16 @@ +[Unit] +Description=OpenVAS Manager +After=network.target +After=openvassd.service + +[Service] +EnvironmentFile=-/etc/openvas/openvasmd.conf +ExecStart=/usr/sbin/openvasmd -f ${MANAGER_LISTEN} ${MANAGER_PORT} ${SCANNER_LISTEN} ${SCANNER_PORT} ${MANAGER_EXTRA_ARGS} +Restart=always +RestartSec=1 +User=root +Group=root +TimeoutSec=1200 + +[Install] +WantedBy=multi-user.target diff --git a/net-analyzer/openvas-manager/metadata.xml b/net-analyzer/openvas-manager/metadata.xml new file mode 100644 index 000000000000..10fd5970fc9b --- /dev/null +++ b/net-analyzer/openvas-manager/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>hanno@gentoo.org</email> + </maintainer> + <maintainer> + <email>jlec@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/net-analyzer/openvas-manager/openvas-manager-5.0.10.ebuild b/net-analyzer/openvas-manager/openvas-manager-5.0.10.ebuild new file mode 100644 index 000000000000..c45f27c6701b --- /dev/null +++ b/net-analyzer/openvas-manager/openvas-manager-5.0.10.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils systemd + +MY_PN=openvasmd + +DL_ID=2035 + +DESCRIPTION="A remote security scanner for Linux (openvas-manager)" +HOMEPAGE="http://www.openvas.org/" +SRC_URI="http://wald.intevation.org/frs/download.php/${DL_ID}/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="" + +RDEPEND=" + >=net-analyzer/openvas-libraries-7.0.10 + >=dev-db/sqlite-3 + !net-analyzer/openvas-administrator" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-5.0.4-gpgerror.patch + "${FILESDIR}"/${PN}-5.0.4-bsdsource.patch + "${FILESDIR}"/${PN}-5.0.4-run.patch + ) + +src_prepare() { + sed \ + -e '/^install.*OPENVAS_CACHE_DIR.*/d' \ + -i CMakeLists.txt || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DLOCALSTATEDIR="${EPREFIX}/var" + -DSYSCONFDIR="${EPREFIX}/etc" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + insinto /etc/openvas/ + doins "${FILESDIR}"/${MY_PN}-daemon.conf + dosym ../openvas/${MY_PN}-daemon.conf /etc/conf.d/${PN} + + insinto /etc/logrotate.d + newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN} + + newinitd "${FILESDIR}"/${MY_PN}.init ${MY_PN} + systemd_dounit "${FILESDIR}"/${MY_PN}.service +} diff --git a/net-analyzer/openvas-manager/openvas-manager-5.0.11.ebuild b/net-analyzer/openvas-manager/openvas-manager-5.0.11.ebuild new file mode 100644 index 000000000000..d46d8c152b54 --- /dev/null +++ b/net-analyzer/openvas-manager/openvas-manager-5.0.11.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils systemd + +MY_PN=openvasmd + +DL_ID=2105 + +DESCRIPTION="A remote security scanner for Linux (openvas-manager)" +HOMEPAGE="http://www.openvas.org/" +SRC_URI="http://wald.intevation.org/frs/download.php/${DL_ID}/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="" + +RDEPEND=" + >=net-analyzer/openvas-libraries-7.0.10 + >=dev-db/sqlite-3 + !net-analyzer/openvas-administrator" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-5.0.4-gpgerror.patch + "${FILESDIR}"/${PN}-5.0.4-bsdsource.patch + "${FILESDIR}"/${PN}-5.0.4-run.patch + ) + +src_prepare() { + sed \ + -e '/^install.*OPENVAS_CACHE_DIR.*/d' \ + -i CMakeLists.txt || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DLOCALSTATEDIR="${EPREFIX}/var" + -DSYSCONFDIR="${EPREFIX}/etc" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + insinto /etc/openvas/ + doins "${FILESDIR}"/${MY_PN}-daemon.conf + dosym ../openvas/${MY_PN}-daemon.conf /etc/conf.d/${PN} + + insinto /etc/logrotate.d + newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN} + + newinitd "${FILESDIR}"/${MY_PN}.init ${MY_PN} + systemd_dounit "${FILESDIR}"/${MY_PN}.service +} diff --git a/net-analyzer/openvas-manager/openvas-manager-6.0.3.ebuild b/net-analyzer/openvas-manager/openvas-manager-6.0.3.ebuild new file mode 100644 index 000000000000..e5d639afdf4a --- /dev/null +++ b/net-analyzer/openvas-manager/openvas-manager-6.0.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils systemd + +MY_PN=openvasmd + +DL_ID=2075 + +DESCRIPTION="A remote security scanner for Linux (openvas-manager)" +HOMEPAGE="http://www.openvas.org/" +SRC_URI="http://wald.intevation.org/frs/download.php/${DL_ID}/${P/_beta/+beta}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS=" ~amd64 ~arm ~ppc ~x86" +IUSE="" + +RDEPEND=" + >=net-analyzer/openvas-libraries-8.0.3 + >=dev-db/sqlite-3 + !net-analyzer/openvas-administrator" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}"/${P} + +PATCHES=( + "${FILESDIR}"/${PN}-6.0.1-bsdsource.patch + ) + +src_prepare() { + sed \ + -e '/^install.*OPENVAS_CACHE_DIR.*/d' \ + -i CMakeLists.txt || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DLOCALSTATEDIR="${EPREFIX}/var" + -DSYSCONFDIR="${EPREFIX}/etc" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + insinto /etc/openvas/ + doins "${FILESDIR}"/${MY_PN}-daemon.conf + dosym ../openvas/${MY_PN}-daemon.conf /etc/conf.d/${PN} + + insinto /etc/logrotate.d + newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN} + + newinitd "${FILESDIR}"/${MY_PN}.init ${MY_PN} + systemd_dounit "${FILESDIR}"/${MY_PN}.service +} diff --git a/net-analyzer/openvas-manager/openvas-manager-6.0.4.ebuild b/net-analyzer/openvas-manager/openvas-manager-6.0.4.ebuild new file mode 100644 index 000000000000..1f6a3665750d --- /dev/null +++ b/net-analyzer/openvas-manager/openvas-manager-6.0.4.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils systemd + +MY_PN=openvasmd + +DL_ID=2133 + +DESCRIPTION="A remote security scanner for Linux (openvas-manager)" +HOMEPAGE="http://www.openvas.org/" +SRC_URI="http://wald.intevation.org/frs/download.php/${DL_ID}/${P/_beta/+beta}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS=" ~amd64 ~arm ~ppc ~x86" +IUSE="" + +RDEPEND=" + >=net-analyzer/openvas-libraries-8.0.3 + >=dev-db/sqlite-3 + !net-analyzer/openvas-administrator" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}"/${P} + +PATCHES=( + "${FILESDIR}"/${PN}-6.0.1-bsdsource.patch + ) + +src_prepare() { + sed \ + -e '/^install.*OPENVAS_CACHE_DIR.*/d' \ + -i CMakeLists.txt || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DLOCALSTATEDIR="${EPREFIX}/var" + -DSYSCONFDIR="${EPREFIX}/etc" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + insinto /etc/openvas/ + doins "${FILESDIR}"/${MY_PN}-daemon.conf + dosym ../openvas/${MY_PN}-daemon.conf /etc/conf.d/${PN} + + insinto /etc/logrotate.d + newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN} + + newinitd "${FILESDIR}"/${MY_PN}.init ${MY_PN} + systemd_dounit "${FILESDIR}"/${MY_PN}.service +} diff --git a/net-analyzer/openvas-manager/openvas-manager-6.0.5.ebuild b/net-analyzer/openvas-manager/openvas-manager-6.0.5.ebuild new file mode 100644 index 000000000000..f7d73b1813cf --- /dev/null +++ b/net-analyzer/openvas-manager/openvas-manager-6.0.5.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils systemd + +MY_PN=openvasmd + +DL_ID=2169 + +DESCRIPTION="A remote security scanner for Linux (openvas-manager)" +HOMEPAGE="http://www.openvas.org/" +SRC_URI="http://wald.intevation.org/frs/download.php/${DL_ID}/${P/_beta/+beta}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS=" ~amd64 ~arm ~ppc ~x86" +IUSE="" + +RDEPEND=" + >=net-analyzer/openvas-libraries-8.0.3 + >=dev-db/sqlite-3 + !net-analyzer/openvas-administrator" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}"/${P} + +PATCHES=( + "${FILESDIR}"/${PN}-6.0.1-bsdsource.patch + ) + +src_prepare() { + sed \ + -e '/^install.*OPENVAS_CACHE_DIR.*/d' \ + -i CMakeLists.txt || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DLOCALSTATEDIR="${EPREFIX}/var" + -DSYSCONFDIR="${EPREFIX}/etc" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + insinto /etc/openvas/ + doins "${FILESDIR}"/${MY_PN}-daemon.conf + dosym ../openvas/${MY_PN}-daemon.conf /etc/conf.d/${PN} + + insinto /etc/logrotate.d + newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN} + + newinitd "${FILESDIR}"/${MY_PN}.init ${MY_PN} + systemd_dounit "${FILESDIR}"/${MY_PN}.service +} |