Created attachment 310831 [details, diff] patch to turn off -Werror update to current version 1. update src link; SRC_URI="http://wald.intevation.org/frs/download.php/1104/${P}.tar.gz" 2. create patch to turn off -Werror 3. alter ebuild to include patch 4. compiles and installs correctly
Created attachment 310833 [details, diff] ebuild with -Werror patch included ebuild with -Werror patch included
Created attachment 310849 [details] ebuild with -Werror patch included instructions are insufficient, openvassd must be started before the manager --rebuild can happen
Comment on attachment 310849 [details] ebuild with -Werror patch included --- openvas-manager-2.0.4.ebuild 2012-05-05 18:22:13.000000000 +0200 +++ - 2012-05-05 18:23:03.384301063 +0200 @@ -1,6 +1,6 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-manager/openvas-manager-2.0.4.ebuild,v 1.2 2012/05/04 06:08:10 jdhore Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-manager/openvas-manager-2.0.4.ebuild,v 1.1 2011/10/09 17:22:54 hanno Exp $ EAPI=4 @@ -8,7 +8,7 @@ DESCRIPTION="A remote security scanner for Linux (openvas-manager)" HOMEPAGE="http://www.openvas.org/" -SRC_URI="http://wald.intevation.org/frs/download.php/871/${P}.tar.gz" +SRC_URI="http://wald.intevation.org/frs/download.php/1104/${P}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~x86" @@ -17,9 +17,15 @@ RDEPEND=">=net-analyzer/openvas-libraries-4 >=dev-db/sqlite-3" DEPEND="${RDEPEND} - virtual/pkgconfig + dev-util/pkgconfig dev-util/cmake" +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-turn-off-Werror.patch" +} + src_configure() { local mycmakeargs="-DLOCALSTATEDIR=/var -DSYSCONFDIR=/etc" cmake-utils_src_configure @@ -34,5 +40,6 @@ pkg_postinst() { elog "To allow openvasmd to work, you need to" elog "1. create a client certificate with openvas-mkcert-client -n om -i" - elog "2. create an openvasmd database with openvasmd --rebuild" + elog "2. start openvassd with /etc/init.d/openvassd start" + elog "3. [re]create an openvasmd database with openvasmd --rebuild" }
*** This bug has been marked as a duplicate of bug 402385 ***