summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2009-09-18 14:44:58 +0000
committerHanno Böck <hanno@gentoo.org>2009-09-18 14:44:58 +0000
commitd7339e6d4f63c5dfe80818f9c02c4f8a7cc651ec (patch)
tree7508808deb3850d76a9694e16293a26e19159d6b /net-analyzer
parentMigrate to EAPI 2 in order to get rid of built_with_use. (diff)
downloadgentoo-2-d7339e6d4f63c5dfe80818f9c02c4f8a7cc651ec.tar.gz
gentoo-2-d7339e6d4f63c5dfe80818f9c02c4f8a7cc651ec.tar.bz2
gentoo-2-d7339e6d4f63c5dfe80818f9c02c4f8a7cc651ec.zip
openvas-libnasl: fix for gpgme 1.2.0
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/openvas-libnasl/ChangeLog9
-rw-r--r--net-analyzer/openvas-libnasl/files/openvas-libnasl-2.0.2-fix-gpgme.diff22
-rw-r--r--net-analyzer/openvas-libnasl/openvas-libnasl-2.0.2-r1.ebuild29
3 files changed, 59 insertions, 1 deletions
diff --git a/net-analyzer/openvas-libnasl/ChangeLog b/net-analyzer/openvas-libnasl/ChangeLog
index fe9939d3a88c..38db26afdf5f 100644
--- a/net-analyzer/openvas-libnasl/ChangeLog
+++ b/net-analyzer/openvas-libnasl/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-analyzer/openvas-libnasl
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-libnasl/ChangeLog,v 1.8 2009/09/07 16:22:37 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-libnasl/ChangeLog,v 1.9 2009/09/18 14:44:58 hanno Exp $
+
+*openvas-libnasl-2.0.2-r1 (18 Sep 2009)
+
+ 18 Sep 2009; Hanno Boeck <hanno@gentoo.org>
+ +openvas-libnasl-2.0.2-r1.ebuild,
+ +files/openvas-libnasl-2.0.2-fix-gpgme.diff:
+ Fix for gpgme 1.2.0.
*openvas-libnasl-2.0.2 (07 Sep 2009)
diff --git a/net-analyzer/openvas-libnasl/files/openvas-libnasl-2.0.2-fix-gpgme.diff b/net-analyzer/openvas-libnasl/files/openvas-libnasl-2.0.2-fix-gpgme.diff
new file mode 100644
index 000000000000..9f0277213173
--- /dev/null
+++ b/net-analyzer/openvas-libnasl/files/openvas-libnasl-2.0.2-fix-gpgme.diff
@@ -0,0 +1,22 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_fix_gpgme.dpatch by Jan Wagner <waja@cyconet.org>
+##
+## DP: check gpgme version
+
+@DPATCH@
+diff -urNad openvas-libnasl-2.0.2~/nasl/nasl_signature.c openvas-libnasl-2.0.2/nasl/nasl_signature.c
+--- openvas-libnasl-2.0.2~/nasl/nasl_signature.c 2009-08-18 10:06:59.000000000 +0200
++++ openvas-libnasl-2.0.2/nasl/nasl_signature.c 2009-09-17 09:55:02.000000000 +0200
+@@ -171,7 +171,12 @@
+ gpgme_ctx_t ctx = NULL;
+ char * gpghome = determine_gpghome();
+
++ /* Calls seem to be necessary for certain versions of gpgme (for
++ initialization). Note that we could check the version number here, but do so
++ in configure. */
++ gpgme_check_version (NULL);
+ err = gpgme_engine_check_version(GPGME_PROTOCOL_OpenPGP);
++
+ if (err)
+ {
+ print_gpgme_error("gpgme_engine_check_version", err);
diff --git a/net-analyzer/openvas-libnasl/openvas-libnasl-2.0.2-r1.ebuild b/net-analyzer/openvas-libnasl/openvas-libnasl-2.0.2-r1.ebuild
new file mode 100644
index 000000000000..7242eb7e516b
--- /dev/null
+++ b/net-analyzer/openvas-libnasl/openvas-libnasl-2.0.2-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/openvas-libnasl/openvas-libnasl-2.0.2-r1.ebuild,v 1.1 2009/09/18 14:44:58 hanno Exp $
+
+inherit eutils
+
+DESCRIPTION="A remote security scanner for Linux (openvas-libnasl)"
+HOMEPAGE="http://www.openvas.org/"
+SRC_URI="http://wald.intevation.org/frs/download.php/619/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=">=net-analyzer/openvas-libraries-2.0.4
+ app-crypt/gpgme"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-fix-gpgme.diff"
+}
+
+src_install() {
+ einstall || die "einstall failed"
+ find "${D}" -name '*.la' -delete
+ dodoc ChangeLog || die "dodoc failed"
+}