diff options
author | Hanno Böck <hanno@gentoo.org> | 2011-10-09 17:21:05 +0000 |
---|---|---|
committer | Hanno Böck <hanno@gentoo.org> | 2011-10-09 17:21:05 +0000 |
commit | 597dcf60354c817ec300094cda97ec77c406a0e6 (patch) | |
tree | f1ef6ba2d1556ef94d4ce0d5a2d81df79d48bf8f /net-analyzer/openvas-administrator | |
parent | initial commit of openvas-scanner, part of openvas 4 (diff) | |
download | gentoo-2-597dcf60354c817ec300094cda97ec77c406a0e6.tar.gz gentoo-2-597dcf60354c817ec300094cda97ec77c406a0e6.tar.bz2 gentoo-2-597dcf60354c817ec300094cda97ec77c406a0e6.zip |
initial commit of openvas-administrator, part of openvas-4.
(Portage version: 2.1.10.24/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/openvas-administrator')
4 files changed, 77 insertions, 0 deletions
diff --git a/net-analyzer/openvas-administrator/ChangeLog b/net-analyzer/openvas-administrator/ChangeLog new file mode 100644 index 000000000000..bc7093a04703 --- /dev/null +++ b/net-analyzer/openvas-administrator/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-analyzer/openvas-administrator +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-administrator/ChangeLog,v 1.1 2011/10/09 17:21:05 hanno Exp $ + +*openvas-administrator-1.1.1 (09 Oct 2011) + + 09 Oct 2011; Hanno Boeck <hanno@gentoo.org> + +openvas-administrator-1.1.1.ebuild, +files/openvasad, +metadata.xml: + Initial commit of openvas-administrator, part of openvas 4. + diff --git a/net-analyzer/openvas-administrator/files/openvasad b/net-analyzer/openvas-administrator/files/openvasad new file mode 100644 index 000000000000..23ad0d219584 --- /dev/null +++ b/net-analyzer/openvas-administrator/files/openvasad @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +depend() { + need net openvassd +} + +start() { + ebegin "Starting openvasad (OpenVAS administrator)" + start-stop-daemon --start --name openvasad \ + --exec /usr/sbin/openvasad \ + --pidfile /var/run/openvasad.pid + eend $? +} + +stop() { + ebegin "Stop openvasmd" + start-stop-daemon --stop --name openvasad \ + --pidfile /var/run/openvasad.pid + eend $? +} diff --git a/net-analyzer/openvas-administrator/metadata.xml b/net-analyzer/openvas-administrator/metadata.xml new file mode 100644 index 000000000000..8cb548491f4e --- /dev/null +++ b/net-analyzer/openvas-administrator/metadata.xml @@ -0,0 +1,5 @@ +<?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> +</pkgmetadata> diff --git a/net-analyzer/openvas-administrator/openvas-administrator-1.1.1.ebuild b/net-analyzer/openvas-administrator/openvas-administrator-1.1.1.ebuild new file mode 100644 index 000000000000..29a14dac4c7f --- /dev/null +++ b/net-analyzer/openvas-administrator/openvas-administrator-1.1.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-administrator/openvas-administrator-1.1.1.ebuild,v 1.1 2011/10/09 17:21:05 hanno Exp $ + +EAPI=4 + +inherit cmake-utils + +DESCRIPTION="A remote security scanner for Linux (openvas-administrator)" +HOMEPAGE="http://www.openvas.org/" +SRC_URI="http://wald.intevation.org/frs/download.php/853/${P}.tar.gz" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND=">=net-analyzer/openvas-libraries-4" +DEPEND="${RDEPEND} + dev-util/pkgconfig + dev-util/cmake" + +# Workaround for upstream bug, it doesn't like out-of-tree builds. +CMAKE_BUILD_DIR="${S}" + +src_configure() { + local mycmakeargs="-DLOCALSTATEDIR=/var -DSYSCONFDIR=/etc" + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc ChangeLog CHANGES README || die "dodoc failed" + doinitd "${FILESDIR}"/openvasad +} + +pkg_postinst() { + elog "You need to create an admin user for openvasad to work:" + elog "openvasad -c 'add_user' -n [username] -r Admin" +} |