# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A remote security scanner for Linux" HOMEPAGE="http://www.openvas.org/" SRC_URI="http://wald.intevation.org/frs/download.php/784/${P}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=">=app-crypt/gpgme-1.1.2 >=dev-libs/glib-2.12 dev-libs/libgcrypt >=net-libs/gnutls-2.0 net-libs/libpcap !net-analyzer/openvas-libnasl" DEPEND="${RDEPEND} dev-util/cmake" src_prepare() { sed -i 's|cmake|cmake -DCMAKE_BUILD_TYPE=RELEASE|g' Makefile || die } src_configure() { # localstatedir redefined to /var because openvas install all stuff in $localstatedir/lib/openvas #letting localstatedir to /var/lib goes to stuff installed in /var/lib/lib/openvas econf --localstatedir=/var } src_install() { emake install DESTDIR=${D} || die }