summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libraries/ggz-base-libs/ggz-base-libs.SlackBuild6
-rw-r--r--libraries/ggz-base-libs/gnutls3.patch11
2 files changed, 16 insertions, 1 deletions
diff --git a/libraries/ggz-base-libs/ggz-base-libs.SlackBuild b/libraries/ggz-base-libs/ggz-base-libs.SlackBuild
index af96a6fb8b..f237f4933d 100644
--- a/libraries/ggz-base-libs/ggz-base-libs.SlackBuild
+++ b/libraries/ggz-base-libs/ggz-base-libs.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=ggz-base-libs
VERSION=0.99.5
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -67,6 +67,10 @@ cd $PRGNAM-snapshot-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+# Fix building with gnutls3, thanks to netbsd people
+( cd libggz
+patch -p1 < $CWD/gnutls3.patch )
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
diff --git a/libraries/ggz-base-libs/gnutls3.patch b/libraries/ggz-base-libs/gnutls3.patch
new file mode 100644
index 0000000000..ed40bf12d5
--- /dev/null
+++ b/libraries/ggz-base-libs/gnutls3.patch
@@ -0,0 +1,11 @@
+--- 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};
+-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)
+ {