summaryrefslogtreecommitdiff
path: root/net/net6
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2016-09-26 01:08:42 +0000
committerkamil <kamil@pkgsrc.org>2016-09-26 01:08:42 +0000
commit1e6d9017840a88563e869685d797dfc2bb51df21 (patch)
treebfe5902755adadc6db77147420b8219422478a21 /net/net6
parent5827f55f59245ace2e29ae19e9327f8397f029ad (diff)
downloadpkgsrc-1e6d9017840a88563e869685d797dfc2bb51df21.tar.gz
Fix net/net6 build against new GnuTLS
Patch inspired by net/vino/patches/patch-server_libvncserver_auth.c (r.1.1) Bump PKGREVISION to 3.
Diffstat (limited to 'net/net6')
-rw-r--r--net/net6/Makefile4
-rw-r--r--net/net6/distinfo3
-rw-r--r--net/net6/patches/patch-src_encrypt.cpp19
3 files changed, 23 insertions, 3 deletions
diff --git a/net/net6/Makefile b/net/net6/Makefile
index db8248fb61e..52262b6dddd 100644
--- a/net/net6/Makefile
+++ b/net/net6/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2016/09/19 13:04:18 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2016/09/26 01:08:42 kamil Exp $
#
DISTNAME= net6-1.3.14
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= net
MASTER_SITES= http://releases.0x539.de/net6/
diff --git a/net/net6/distinfo b/net/net6/distinfo
index dcc803e9a5a..9b5fdae7288 100644
--- a/net/net6/distinfo
+++ b/net/net6/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.10 2015/11/04 00:35:15 agc Exp $
+$NetBSD: distinfo,v 1.11 2016/09/26 01:08:42 kamil Exp $
SHA1 (net6-1.3.14.tar.gz) = 7523a604e6b7f723cdd7f457f8f7c8c9cf48dae1
RMD160 (net6-1.3.14.tar.gz) = c1445cdf2e7a34d0639d7bb410404d83ab972d27
SHA512 (net6-1.3.14.tar.gz) = 6a604d51da32b13d61a45d3927e937c2fc5dc83061ea4312df363a57ba1a9830215e0a1b794914790d4606411cc71211675ceca86609614718aaeb998598c5c0
Size (net6-1.3.14.tar.gz) = 483549 bytes
+SHA1 (patch-src_encrypt.cpp) = 809a4e54c34835058466ab767ac17d8196fd331a
SHA1 (patch-src_select.cpp) = 802bced5dc405ad1b3e59fd26d70d45da776c227
diff --git a/net/net6/patches/patch-src_encrypt.cpp b/net/net6/patches/patch-src_encrypt.cpp
new file mode 100644
index 00000000000..f458cfebbc9
--- /dev/null
+++ b/net/net6/patches/patch-src_encrypt.cpp
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_encrypt.cpp,v 1.1 2016/09/26 01:08:42 kamil Exp $
+
+Do not use deprecated GnuTLS functions
+
+--- src/encrypt.cpp.orig 2011-09-28 11:15:10.000000000 +0000
++++ src/encrypt.cpp
+@@ -175,10 +175,10 @@ net6::tcp_encrypted_socket_base::
+ gnutls_session_t sess):
+ tcp_client_socket(cobj), session(sess), state(DEFAULT)
+ {
+- const int kx_prio[] = { GNUTLS_KX_ANON_DH, 0 };
++ static const char kx_prio[] = "NORMAL:+ANON-DH";
+
+ gnutls_set_default_priority(session);
+- gnutls_kx_set_priority(session, kx_prio);
++ gnutls_priority_set_direct(session, kx_prio, NULL);
+
+ gnutls_transport_set_ptr(
+ session,