summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2014-09-28 15:40:44 +0000
committerJustin Lecher <jlec@gentoo.org>2014-09-28 15:40:44 +0000
commite84c63ecf95cb5feffaf83ebfb04733f04866244 (patch)
tree9f1a6238015b35d3d61840bf2aef9afc54813d6c /net-analyzer
parentSwitch to parallel testing, thanks to Kent Fredric (bug #523944) (diff)
downloadgentoo-2-e84c63ecf95cb5feffaf83ebfb04733f04866244.tar.gz
gentoo-2-e84c63ecf95cb5feffaf83ebfb04733f04866244.tar.bz2
gentoo-2-e84c63ecf95cb5feffaf83ebfb04733f04866244.zip
net-analyzer/openvas-scanner: Version BUmp; add systemd support
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/openvas-scanner/ChangeLog9
-rw-r--r--net-analyzer/openvas-scanner/files/openvassd.init24
-rw-r--r--net-analyzer/openvas-scanner/files/openvassd.service6
-rw-r--r--net-analyzer/openvas-scanner/files/openvassd.tmpfiles.d1
-rw-r--r--net-analyzer/openvas-scanner/metadata.xml4
-rw-r--r--net-analyzer/openvas-scanner/openvas-scanner-4.0.3.ebuild43
6 files changed, 85 insertions, 2 deletions
diff --git a/net-analyzer/openvas-scanner/ChangeLog b/net-analyzer/openvas-scanner/ChangeLog
index 03ef729ee7aa..204b03de6e96 100644
--- a/net-analyzer/openvas-scanner/ChangeLog
+++ b/net-analyzer/openvas-scanner/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-analyzer/openvas-scanner
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-scanner/ChangeLog,v 1.5 2014/06/19 13:36:02 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-scanner/ChangeLog,v 1.6 2014/09/28 15:40:44 jlec Exp $
+
+*openvas-scanner-4.0.3 (28 Sep 2014)
+
+ 28 Sep 2014; Justin Lecher <jlec@gentoo.org> +openvas-scanner-4.0.3.ebuild,
+ +files/openvassd.init, +files/openvassd.service, +files/openvassd.tmpfiles.d,
+ metadata.xml:
+ Version BUmp; add systemd support
*openvas-scanner-4.0.1 (19 Jun 2014)
diff --git a/net-analyzer/openvas-scanner/files/openvassd.init b/net-analyzer/openvas-scanner/files/openvassd.init
new file mode 100644
index 000000000000..8a7abcc47c4e
--- /dev/null
+++ b/net-analyzer/openvas-scanner/files/openvassd.init
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting openvassd (scanner)"
+ checkpath -d -q /var/cache/openvassd
+ start-stop-daemon --start --name openvassd \
+ --exec /usr/sbin/openvassd \
+ --pidfile /run/openvassd.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stop openvassd (scanner)"
+ start-stop-daemon --stop --name openvassd \
+ --pidfile /run/openvassd.pid
+ eend $?
+}
diff --git a/net-analyzer/openvas-scanner/files/openvassd.service b/net-analyzer/openvas-scanner/files/openvassd.service
new file mode 100644
index 000000000000..99c4c3c90b6c
--- /dev/null
+++ b/net-analyzer/openvas-scanner/files/openvassd.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=OpenVAS Scanner
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/openvassd -f
diff --git a/net-analyzer/openvas-scanner/files/openvassd.tmpfiles.d b/net-analyzer/openvas-scanner/files/openvassd.tmpfiles.d
new file mode 100644
index 000000000000..afe58dcbf8f2
--- /dev/null
+++ b/net-analyzer/openvas-scanner/files/openvassd.tmpfiles.d
@@ -0,0 +1 @@
+d /var/cache/openvassd
diff --git a/net-analyzer/openvas-scanner/metadata.xml b/net-analyzer/openvas-scanner/metadata.xml
index 8cb548491f4e..45b99c65fb75 100644
--- a/net-analyzer/openvas-scanner/metadata.xml
+++ b/net-analyzer/openvas-scanner/metadata.xml
@@ -1,5 +1,7 @@
<?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>hanno@gentoo.org</email>
+ </maintainer>
</pkgmetadata>
diff --git a/net-analyzer/openvas-scanner/openvas-scanner-4.0.3.ebuild b/net-analyzer/openvas-scanner/openvas-scanner-4.0.3.ebuild
new file mode 100644
index 000000000000..cee7676c3ec8
--- /dev/null
+++ b/net-analyzer/openvas-scanner/openvas-scanner-4.0.3.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-scanner/openvas-scanner-4.0.3.ebuild,v 1.1 2014/09/28 15:40:44 jlec Exp $
+
+EAPI=5
+
+inherit cmake-utils systemd
+
+DESCRIPTION="A remote security scanner for Linux (openvas-scanner)"
+HOMEPAGE="http://www.openvas.org/"
+SRC_URI="http://wald.intevation.org/frs/download.php/1726/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE=""
+
+RDEPEND="
+ >=net-analyzer/openvas-libraries-7.0.4
+ !net-analyzer/openvas-plugins
+ !net-analyzer/openvas-server"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/cmake"
+
+src_configure() {
+ local mycmakeargs="-DLOCALSTATEDIR=/var -DSYSCONFDIR=/etc"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc ChangeLog CHANGES README
+ newinitd "${FILESDIR}"/openvassd.init openvassd
+ systemd_newtmpfilesd "${FILESDIR}"/openvassd.tmpfiles.d openvassd.conf
+ systemd_dounit "${FILESDIR}"/openvassd.service
+}
+
+pkg_postinst() {
+ elog "To use openvassd, you first need to:"
+ elog "1. Call 'openvas-nvt-sync' to download/update plugins"
+ elog "2. Call 'openvas-mkcert' to generate a server certificate"
+}