summaryrefslogtreecommitdiff
path: root/security/openvas-libraries
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-07-18 09:52:44 +0000
committermarino <marino@pkgsrc.org>2012-07-18 09:52:44 +0000
commit3c58e1e2a11d0da9e8d4c9c41e1109328f81a89d (patch)
treeea39bfafc5fec5352f5713fd8e19123cdb05d033 /security/openvas-libraries
parent42b919c077002fdf84a3329597eb2db458b8c7a2 (diff)
downloadpkgsrc-3c58e1e2a11d0da9e8d4c9c41e1109328f81a89d.tar.gz
security/openvas-libraries: Fix regression due to upgrade to gnutils 3.0
GNUTLS deprecated gnutils_transport_set_lowat function in version 2.12.0 and finally removed it with version 3.0, breaking any packages that still reference it. The lowat feature is now disabled permanently I think. The patch uses the GNUTLS_VERSION_NUMBER macro to appropriately conceal the function reference. The same patch is widely seen on the 'net with other packages that use gnutls like OpenVAS.
Diffstat (limited to 'security/openvas-libraries')
-rw-r--r--security/openvas-libraries/Makefile4
-rw-r--r--security/openvas-libraries/distinfo3
-rw-r--r--security/openvas-libraries/patches/patch-libopenvas_network.c20
3 files changed, 24 insertions, 3 deletions
diff --git a/security/openvas-libraries/Makefile b/security/openvas-libraries/Makefile
index cf215a9e013..51e23dbf154 100644
--- a/security/openvas-libraries/Makefile
+++ b/security/openvas-libraries/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2012/07/05 15:44:07 drochner Exp $
+# $NetBSD: Makefile,v 1.10 2012/07/18 09:52:44 marino Exp $
#
DISTNAME= openvas-libraries-2.0.0
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= security
MASTER_SITES= http://wald.intevation.org/frs/download.php/548/
diff --git a/security/openvas-libraries/distinfo b/security/openvas-libraries/distinfo
index f22f790e069..4de428a71a8 100644
--- a/security/openvas-libraries/distinfo
+++ b/security/openvas-libraries/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2011/01/01 12:13:10 obache Exp $
+$NetBSD: distinfo,v 1.4 2012/07/18 09:52:44 marino Exp $
SHA1 (openvas-libraries-2.0.0.tar.gz) = e3b5614e8fa4721ad93a9eb483f4f0a23242d84b
RMD160 (openvas-libraries-2.0.0.tar.gz) = c7365d81289bca625ae984fceab901ced0626ce0
@@ -13,3 +13,4 @@ SHA1 (patch-ag) = 16d1e43ec3f098b86019e54e189a4b66a87d8b64
SHA1 (patch-ah) = 097d76cced6ef5f5b909e1b9ab9fb9e0815b876a
SHA1 (patch-ai) = a60270be1eccc5bfc2b8bd36ed969f498a9c1e05
SHA1 (patch-aj) = ab833a1146f2e9962d9ecdeda0c84a722ff49eb6
+SHA1 (patch-libopenvas_network.c) = b9946bd479bc9053bb7ca9f98b73c42a910f96e3
diff --git a/security/openvas-libraries/patches/patch-libopenvas_network.c b/security/openvas-libraries/patches/patch-libopenvas_network.c
new file mode 100644
index 00000000000..ebdc3f54ce9
--- /dev/null
+++ b/security/openvas-libraries/patches/patch-libopenvas_network.c
@@ -0,0 +1,20 @@
+$NetBSD: patch-libopenvas_network.c,v 1.1 2012/07/18 09:52:44 marino Exp $
+
+GnuTLS deprecated gnutls_transport_set_lowat in version 2.12.0 and removed it by version 3
+The lowat feature is always disabled now.
+
+--- libopenvas/network.c.orig 2008-12-16 13:03:21.000000000 +0000
++++ libopenvas/network.c
+@@ -819,9 +819,10 @@ open_SSL_connection(nessus_connection *f
+ }
+
+ unblock_socket(fp->fd);
+- /* for non-blocking sockets, gnutls requires a 0 lowat value */
++#if GNUTLS_VERSION_NUMBER < 0x020c00
++ /* for non-blocking sockets, gnutls < 2.12.0 requires a 0 lowat value */
+ gnutls_transport_set_lowat(fp->tls_session, 0);
+-
++#endif
+ gnutls_transport_set_ptr(fp->tls_session, (gnutls_transport_ptr_t) GSIZE_TO_POINTER(fp->fd));
+
+ tictac = time(NULL);