# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A remote security scanner for Linux (openvas-scanner)" HOMEPAGE="http://www.openvas.org/" SRC_URI="http://wald.intevation.org/frs/download.php/792/${P}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" IUSE="debug tcpd" RDEPEND="net-libs/gnutls net-libs/libpcap >=net-analyzer/openvas-libraries-3.1.0" DEPEND="${RDEPEND} dev-util/cmake" src_configure() { econf --localstatedir=/var \ $(use_enable tcpd tcpwrappers) \ $(use_enable debug) } src_install() { emake install DESTDIR="${D}" || die insinto /etc/openvas doins "${FILESDIR}"/openvassd.conf || die dodoc README ChangeLog || die doinitd "${FILESDIR}"/openvasd || die } pkg_postinst() { einfo "1. Call 'openvas-nvt-sync' to download/update plugins" einfo "2. Call 'openvas-mkcert' to generate server certificate" einfo "3. Call 'openvas-adduser' to create a user" }