pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/libggz Fix gnutls fallout. Bump revision.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/092afd4c05c9
branches:  trunk
changeset: 353249:092afd4c05c9
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Oct 01 13:01:11 2016 +0000

description:
Fix gnutls fallout. Bump revision.

diffstat:

 games/libggz/Makefile         |   4 ++--
 games/libggz/distinfo         |   4 ++--
 games/libggz/patches/patch-aa |  42 +++++++++++++++++++++++++++++++++++-------
 3 files changed, 39 insertions(+), 11 deletions(-)

diffs (81 lines):

diff -r 5d180059c44e -r 092afd4c05c9 games/libggz/Makefile
--- a/games/libggz/Makefile     Sat Oct 01 13:00:42 2016 +0000
+++ b/games/libggz/Makefile     Sat Oct 01 13:01:11 2016 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2016/09/19 13:04:18 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2016/10/01 13:01:11 joerg Exp $
 #
 
 DISTNAME=      libggz-0.0.14.1
-PKGREVISION=   6
+PKGREVISION=   7
 CATEGORIES=    games
 MASTER_SITES=  http://mirrors.ibiblio.org/pub/mirrors/ggzgamingzone/ggz/0.0.14.1/
 
diff -r 5d180059c44e -r 092afd4c05c9 games/libggz/distinfo
--- a/games/libggz/distinfo     Sat Oct 01 13:00:42 2016 +0000
+++ b/games/libggz/distinfo     Sat Oct 01 13:01:11 2016 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.3 2015/11/03 20:56:58 agc Exp $
+$NetBSD: distinfo,v 1.4 2016/10/01 13:01:11 joerg Exp $
 
 SHA1 (libggz-0.0.14.1.tar.gz) = 8a602e60606c89fd13ad93bb84a8be466fd457ef
 RMD160 (libggz-0.0.14.1.tar.gz) = 5136aba62a4e988d97451b00193c10189f7265f2
 SHA512 (libggz-0.0.14.1.tar.gz) = ca034d8196c151a59d3afec6d37270a974b2f9d9c380f46ef01238077b7c3c1b5686cb5252754523d985963e14c88e27b39da3c362e7accfbe550bdd5837634d
 Size (libggz-0.0.14.1.tar.gz) = 477382 bytes
-SHA1 (patch-aa) = 58afba0306d2609d7426c18e581caf25accf49a3
+SHA1 (patch-aa) = e35fcef50d38f103e7d41694704dc1ce2d73ca00
diff -r 5d180059c44e -r 092afd4c05c9 games/libggz/patches/patch-aa
--- a/games/libggz/patches/patch-aa     Sat Oct 01 13:00:42 2016 +0000
+++ b/games/libggz/patches/patch-aa     Sat Oct 01 13:01:11 2016 +0000
@@ -1,15 +1,43 @@
-$NetBSD: patch-aa,v 1.1 2012/07/05 10:33:06 drochner Exp $
+$NetBSD: patch-aa,v 1.2 2016/10/01 13:01:11 joerg Exp $
 
 fix build with gnutls-3
 
 --- src/security/ggz_tls_gnutls.c.orig 2008-01-05 19:03:41.000000000 +0000
 +++ src/security/ggz_tls_gnutls.c
-@@ -56,7 +56,7 @@ const int cipher_priority[] = {GNUTLS_CI
- const int mac_priority[] = {GNUTLS_MAC_NULL, GNUTLS_MAC_MD5, GNUTLS_MAC_SHA, 0};
- const int kx_priority[] = {GNUTLS_KX_ANON_DH, GNUTLS_KX_DHE_DSS, GNUTLS_KX_DHE_RSA, 0};
- const int protocol_priority[] = {GNUTLS_TLS1, GNUTLS_SSL3, 0};
+@@ -52,12 +52,6 @@ static gnutls_anon_server_credentials s_
+ static gnutls_anon_client_credentials c_cred;
+ static gnutls_dh_params params;
+ 
+-const int cipher_priority[] = {GNUTLS_CIPHER_3DES_CBC, GNUTLS_CIPHER_NULL, GNUTLS_CIPHER_ARCFOUR_40, GNUTLS_CIPHER_ARCFOUR_128, 0};
+-const int mac_priority[] = {GNUTLS_MAC_NULL, GNUTLS_MAC_MD5, GNUTLS_MAC_SHA, 0};
+-const int kx_priority[] = {GNUTLS_KX_ANON_DH, GNUTLS_KX_DHE_DSS, GNUTLS_KX_DHE_RSA, 0};
+-const int protocol_priority[] = {GNUTLS_TLS1, GNUTLS_SSL3, 0};
 -const int compression_priority[] = {GNUTLS_COMP_NULL, GNUTLS_COMP_ZLIB, GNUTLS_COMP_LZO, 0};
-+const int compression_priority[] = {GNUTLS_COMP_NULL, GNUTLS_COMP_ZLIB, 0};
- 
+-
  void ggz_tls_init(const char *certfile, const char *keyfile, const char *password)
  {
+       /* no cert support yet */
+@@ -109,22 +103,7 @@ int ggz_tls_enable_fd(int fdes, GGZTLSTy
+       else
+               gnutls_init(&session, GNUTLS_SERVER);
+ 
+-      if(whoami == GGZ_TLS_CLIENT) {
+-              /*gnutls_set_default_priority(session);*/
+-              gnutls_mac_set_priority(session, mac_priority);
+-              gnutls_kx_set_priority(session, kx_priority);
+-              gnutls_protocol_set_priority(session, protocol_priority);
+-              gnutls_compression_set_priority(session, compression_priority);
+-              gnutls_cipher_set_priority(session, cipher_priority);
+-      }
+-      else {
+-              /*gnutls_set_default_priority(session);*/
+-              gnutls_protocol_set_priority(session, protocol_priority);
+-              gnutls_compression_set_priority(session, compression_priority);
+-              gnutls_cipher_set_priority(session, cipher_priority);
+-              gnutls_mac_set_priority(session, mac_priority);
+-              gnutls_kx_set_priority(session, kx_priority);
+-      }
++      gnutls_set_default_priority(session);
+ 
+       /*gnutls_dh_set_prime_bits(session, 512);*/
+       if(whoami == GGZ_TLS_CLIENT) sleep(1);



Home | Main Index | Thread Index | Old Index