summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-04-28 11:10:11 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-28 11:10:11 +0000
commit824b2bef56d52ceb2900dc2d28a421470df7a0c4 (patch)
tree1aff15c242ec18d2935615a7adc54bbb1ed5db3f /packages
parentd3412c59a395d68fce7df517662508044910b681 (diff)
parent5e67efef381f4a5a4144cc85d00a920d9d25aeff (diff)
merge of 03b7b6de8867ce08c1e283e916d64764e390c898
and cb46841214d74586c2ece7859e359ec795fd146b
Diffstat (limited to 'packages')
-rw-r--r--packages/sylpheed/files/sylpheed-gnutls-extra.patch37
-rw-r--r--packages/sylpheed/files/sylpheed-gnutls.patch96
-rw-r--r--packages/sylpheed/files/sylpheed-gnutls_2.0.0rc.patch92
-rw-r--r--packages/sylpheed/files/sylpheed-gnutls_2.2.4.patch (renamed from packages/sylpheed/files/sylpheed-gnutls_2.0.0beta6.patch)25
-rw-r--r--packages/sylpheed/sylpheed_2.2.4.bb5
5 files changed, 16 insertions, 239 deletions
diff --git a/packages/sylpheed/files/sylpheed-gnutls-extra.patch b/packages/sylpheed/files/sylpheed-gnutls-extra.patch
deleted file mode 100644
index ba24b5a1d7..0000000000
--- a/packages/sylpheed/files/sylpheed-gnutls-extra.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- sylpheed-2.0.0beta6/src/ssl.c.orig 2005-07-20 15:45:12.882201824 +0100
-+++ sylpheed-2.0.0beta6/src/ssl.c 2005-07-20 16:10:04.006516472 +0100
-@@ -54,9 +54,9 @@
- debug_print(_("SSLv23 not available\n"));
- } else {
- debug_print(_("SSLv23 available\n"));
-- if (certs_dir &&
-+ if (certs_dir /*&&
- !SSL_CTX_load_verify_locations(ssl_ctx_SSLv23, NULL,
-- certs_dir))
-+ certs_dir)*/)
- g_warning("SSLv23 SSL_CTX_load_verify_locations failed.\n");
- }
-
-@@ -65,9 +65,9 @@
- debug_print(_("TLSv1 not available\n"));
- } else {
- debug_print(_("TLSv1 available\n"));
-- if (certs_dir &&
-+ if (certs_dir /*&&
- !SSL_CTX_load_verify_locations(ssl_ctx_TLSv1, NULL,
-- certs_dir))
-+ certs_dir)*/)
- g_warning("TLSv1 SSL_CTX_load_verify_locations failed.\n");
- }
-
-@@ -151,8 +151,8 @@
- g_free(str);
- }
-
-- verify_result = SSL_get_verify_result(sockinfo->ssl);
-- if (verify_result == X509_V_OK)
-+ verify_result = 0; /*SSL_get_verify_result(sockinfo->ssl);*/
-+ if (verify_result == 1)
- debug_print("SSL verify OK\n");
- else
- g_warning("%s: SSL certificate verify failed (%ld: %s)\n",
diff --git a/packages/sylpheed/files/sylpheed-gnutls.patch b/packages/sylpheed/files/sylpheed-gnutls.patch
deleted file mode 100644
index a5be3f9b10..0000000000
--- a/packages/sylpheed/files/sylpheed-gnutls.patch
+++ /dev/null
@@ -1,96 +0,0 @@
-diff -upr --exclude='*.o' --exclude='*~' --exclude=configure clean/sylpheed-1.0.0-gtk2-20041224/config.h.in sylpheed-1.0.0-gtk2-20041224/config.h.in
---- clean/sylpheed-1.0.0-gtk2-20041224/config.h.in 2004-12-24 06:17:08.000000000 +0000
-+++ sylpheed-1.0.0-gtk2-20041224/config.h.in 2005-01-02 18:22:27.000000000 +0000
-@@ -260,6 +260,9 @@
- /* Define to 1 if your <sys/time.h> declares `struct tm'. */
- #undef TM_IN_SYS_TIME
-
-+/* Define if you use GnuTLS to support SSL. */
-+#undef USE_GNUTLS
-+
- /* Define if you use GPGME to support OpenPGP. */
- #undef USE_GPGME
-
-@@ -270,6 +273,9 @@
- #undef USE_LDAP
-
- /* Define if you use OpenSSL to support SSL. */
-+#undef USE_OPENSSL
-+
-+/* Define if SSL is supported. */
- #undef USE_SSL
-
- /* Whether to use multithread or not */
-diff -upr --exclude='*.o' --exclude='*~' --exclude=configure clean/sylpheed-1.0.0-gtk2-20041224/configure.in sylpheed-1.0.0-gtk2-20041224/configure.in
---- clean/sylpheed-1.0.0-gtk2-20041224/configure.in 2004-12-24 05:39:37.000000000 +0000
-+++ sylpheed-1.0.0-gtk2-20041224/configure.in 2005-01-02 18:23:11.000000000 +0000
-@@ -265,7 +265,8 @@ if test $ac_cv_enable_ssl = yes; then
- #include <openssl/opensslv.h>
- ], [ return OPENSSL_VERSION_NUMBER; ],
- [ AC_MSG_RESULT(yes)
-- AC_DEFINE(USE_SSL, 1, Define if you use OpenSSL to support SSL.) ],
-+ AC_DEFINE(USE_SSL, 1, Define if SSL is supported.)
-+ AC_DEFINE(USE_OPENSSL, 1, Define if you use OpenSSL to support SSL.) ],
- [ AC_MSG_RESULT(no)
- LIBS="$ac_save_LIBS"
- ac_cv_enable_ssl=no ])
-@@ -273,6 +274,27 @@ else
- AC_MSG_RESULT(no)
- fi
-
-+AC_ARG_ENABLE(gnutls,
-+ [ --enable-gnutls Enable SSL support using GnuTLS [default=no]],
-+ [ac_cv_enable_gnutls=$enableval], [ac_cv_enable_gnutls=no])
-+AC_MSG_CHECKING([whether to use GnuTLS])
-+if test $ac_cv_enable_gnutls = yes; then
-+ AC_MSG_RESULT(yes)
-+ AC_MSG_CHECKING([if GnuTLS is available])
-+ LIBS="$LIBS -lgnutls-openssl"
-+ AC_TRY_LINK([
-+#include <gnutls/openssl.h>
-+], [ return OPENSSL_VERSION_NUMBER; ],
-+ [ AC_MSG_RESULT(yes)
-+ AC_DEFINE(USE_SSL, 1, Define if SSL is supported.)
-+ AC_DEFINE(USE_GNUTLS, 1, Define if you use GnuTLS to support SSL.) ],
-+ [ AC_MSG_RESULT(no)
-+ LIBS="$ac_save_LIBS"
-+ ac_cv_enable_gnutls=no ])
-+else
-+ AC_MSG_RESULT(no)
-+fi
-+
- dnl Check for X-Face support
- AC_ARG_ENABLE(compface,
- [ --disable-compface Do not use compface (X-Face)],
-@@ -415,6 +437,7 @@ echo "GnuPG : $ac_cv_enable_gpgm
- echo "JPilot : $ac_cv_enable_jpilot"
- echo "LDAP : $ac_cv_enable_ldap"
- echo "OpenSSL : $ac_cv_enable_ssl"
-+echo "GnuTLS : $ac_cv_enable_gnutls"
- echo "iconv : $am_cv_func_iconv"
- echo "compface : $ac_cv_enable_compface"
- echo "IPv6 : $ac_cv_enable_ipv6"
-diff -upr --exclude='*.o' --exclude='*~' --exclude=configure clean/sylpheed-1.0.0-gtk2-20041224/src/ssl.h sylpheed-1.0.0-gtk2-20041224/src/ssl.h
---- clean/sylpheed-1.0.0-gtk2-20041224/src/ssl.h 2003-09-06 10:26:34.000000000 +0100
-+++ sylpheed-1.0.0-gtk2-20041224/src/ssl.h 2005-01-02 18:25:00.000000000 +0000
-@@ -27,11 +27,20 @@
- #if USE_SSL
-
- #include <glib.h>
-+
-+#if USE_OPENSSL
- #include <openssl/crypto.h>
- #include <openssl/x509.h>
- #include <openssl/pem.h>
- #include <openssl/ssl.h>
- #include <openssl/err.h>
-+#else
-+#if USE_GNUTLS
-+#include <gnutls/openssl.h>
-+#else
-+#error Must select either GnuTLS or OpenSSL
-+#endif
-+#endif
-
- #include "socket.h"
-
diff --git a/packages/sylpheed/files/sylpheed-gnutls_2.0.0rc.patch b/packages/sylpheed/files/sylpheed-gnutls_2.0.0rc.patch
deleted file mode 100644
index b0a03c6a32..0000000000
--- a/packages/sylpheed/files/sylpheed-gnutls_2.0.0rc.patch
+++ /dev/null
@@ -1,92 +0,0 @@
---- sylpheed-2.0.0beta6/config.h.in.old 2005-07-18 11:57:23.000000000 +0200
-+++ sylpheed-2.0.0beta6/config.h.in 2005-07-18 11:59:57.000000000 +0200
-@@ -263,6 +263,9 @@
- /* Define to 1 if your <sys/time.h> declares `struct tm'. */
- #undef TM_IN_SYS_TIME
-
-+/* Define if you use GnuTLS to support SSL. */
-+#undef USE_GNUTLS
-+
- /* Define if you use GPGME to support OpenPGP. */
- #undef USE_GPGME
-
-@@ -273,6 +276,9 @@
- #undef USE_LDAP
-
- /* Define if you use OpenSSL to support SSL. */
-+#undef USE_OPENSSL
-+
-+/* Define if SSL is supported. */
- #undef USE_SSL
-
- /* Whether to use multithread or not */
---- sylpheed-2.0.0beta6/configure.in.old 2005-07-18 12:00:24.000000000 +0200
-+++ sylpheed-2.0.0beta6/configure.in 2005-07-18 12:04:33.000000000 +0200
-@@ -202,7 +202,8 @@
- #include <openssl/opensslv.h>
- ], [ return OPENSSL_VERSION_NUMBER; ],
- [ AC_MSG_RESULT(yes)
-- AC_DEFINE(USE_SSL, 1, Define if you use OpenSSL to support SSL.) ],
-+ AC_DEFINE(USE_SSL, 1, Define if SSL is supported.)
-+ AC_DEFINE(USE_OPENSSL, 1, Define if you use OpenSSL to support SSL.) ],
- [ AC_MSG_RESULT(no)
- LIBS="$ac_save_LIBS"
- ac_cv_enable_ssl=no ])
-@@ -211,6 +212,27 @@
- AC_MSG_RESULT(no)
- fi
-
-+AC_ARG_ENABLE(gnutls,
-+ [ --enable-gnutls Enable SSL support using GnuTLS [default=no]],
-+ [ac_cv_enable_gnutls=$enableval], [ac_cv_enable_gnutls=no])
-+AC_MSG_CHECKING([whether to use GnuTLS])
-+if test $ac_cv_enable_gnutls = yes; then
-+ AC_MSG_RESULT(yes)
-+ AC_MSG_CHECKING([if GnuTLS is available])
-+ LIBS="$LIBS -lgnutls-openssl"
-+ AC_TRY_LINK([
-+#include <gnutls/openssl.h>
-+], [ return OPENSSL_VERSION_NUMBER; ],
-+ [ AC_MSG_RESULT(yes)
-+ AC_DEFINE(USE_SSL, 1, Define if SSL is supported.)
-+ AC_DEFINE(USE_GNUTLS, 1, Define if you use GnuTLS to support SSL.) ],
-+ [ AC_MSG_RESULT(no)
-+ LIBS="$ac_save_LIBS"
-+ ac_cv_enable_gnutls=no ])
-+else
-+ AC_MSG_RESULT(no)
-+fi
-+
- dnl Check for X-Face support
- AC_ARG_ENABLE(compface,
- [ --disable-compface Do not use compface (X-Face)],
-@@ -350,6 +372,7 @@
- echo "JPilot : $ac_cv_enable_jpilot"
- echo "LDAP : $ac_cv_enable_ldap"
- echo "OpenSSL : $ac_cv_enable_ssl"
-+echo "GnuTLS : $ac_cv_enable_gnutls"
- echo "iconv : $am_cv_func_iconv"
- echo "compface : $ac_cv_enable_compface"
- echo "IPv6 : $ac_cv_enable_ipv6"
---- sylpheed-2.0.0beta6/src/ssl.h.old 2005-07-18 12:09:35.000000000 +0200
-+++ sylpheed-2.0.0beta6/src/ssl.h 2005-07-18 12:11:15.000000000 +0200
-@@ -27,11 +27,19 @@
- #if USE_SSL
-
- #include <glib.h>
-+#if USE_OPENSSL
- #include <openssl/crypto.h>
- #include <openssl/x509.h>
- #include <openssl/pem.h>
- #include <openssl/ssl.h>
- #include <openssl/err.h>
-+#else
-+#if USE_GNUTLS
-+#include <gnutls/openssl.h>
-+#else
-+#error Must select either GnuTLS or OpenSSL
-+#endif
-+#endif
-
- #include "socket.h"
-
diff --git a/packages/sylpheed/files/sylpheed-gnutls_2.0.0beta6.patch b/packages/sylpheed/files/sylpheed-gnutls_2.2.4.patch
index b0a03c6a32..05fbbb63c1 100644
--- a/packages/sylpheed/files/sylpheed-gnutls_2.0.0beta6.patch
+++ b/packages/sylpheed/files/sylpheed-gnutls_2.2.4.patch
@@ -1,6 +1,6 @@
---- sylpheed-2.0.0beta6/config.h.in.old 2005-07-18 11:57:23.000000000 +0200
-+++ sylpheed-2.0.0beta6/config.h.in 2005-07-18 11:59:57.000000000 +0200
-@@ -263,6 +263,9 @@
+--- sylpheed-2.2.4/config.h.in.orig 2005-11-16 10:12:37.000000000 +0000
++++ sylpheed-2.2.4/config.h.in 2006-04-28 11:36:36.000000000 +0100
+@@ -251,6 +251,9 @@
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
#undef TM_IN_SYS_TIME
@@ -10,7 +10,7 @@
/* Define if you use GPGME to support OpenPGP. */
#undef USE_GPGME
-@@ -273,6 +276,9 @@
+@@ -264,6 +267,9 @@
#undef USE_LDAP
/* Define if you use OpenSSL to support SSL. */
@@ -20,9 +20,9 @@
#undef USE_SSL
/* Whether to use multithread or not */
---- sylpheed-2.0.0beta6/configure.in.old 2005-07-18 12:00:24.000000000 +0200
-+++ sylpheed-2.0.0beta6/configure.in 2005-07-18 12:04:33.000000000 +0200
-@@ -202,7 +202,8 @@
+--- sylpheed-2.2.4/configure.in.orig 2006-03-24 04:22:10.000000000 +0000
++++ sylpheed-2.2.4/configure.in 2006-04-28 11:36:36.000000000 +0100
+@@ -231,7 +231,8 @@
#include <openssl/opensslv.h>
], [ return OPENSSL_VERSION_NUMBER; ],
[ AC_MSG_RESULT(yes)
@@ -32,7 +32,7 @@
[ AC_MSG_RESULT(no)
LIBS="$ac_save_LIBS"
ac_cv_enable_ssl=no ])
-@@ -211,6 +212,27 @@
+@@ -240,6 +241,27 @@
AC_MSG_RESULT(no)
fi
@@ -60,7 +60,7 @@
dnl Check for X-Face support
AC_ARG_ENABLE(compface,
[ --disable-compface Do not use compface (X-Face)],
-@@ -350,6 +372,7 @@
+@@ -400,6 +422,7 @@
echo "JPilot : $ac_cv_enable_jpilot"
echo "LDAP : $ac_cv_enable_ldap"
echo "OpenSSL : $ac_cv_enable_ssl"
@@ -68,9 +68,9 @@
echo "iconv : $am_cv_func_iconv"
echo "compface : $ac_cv_enable_compface"
echo "IPv6 : $ac_cv_enable_ipv6"
---- sylpheed-2.0.0beta6/src/ssl.h.old 2005-07-18 12:09:35.000000000 +0200
-+++ sylpheed-2.0.0beta6/src/ssl.h 2005-07-18 12:11:15.000000000 +0200
-@@ -27,11 +27,19 @@
+--- sylpheed-2.2.4/libsylph/ssl.h.old 2006-04-28 11:36:10.000000000 +0100
++++ sylpheed-2.2.4/libsylph/ssl.h 2006-04-28 11:37:03.000000000 +0100
+@@ -27,11 +27,20 @@
#if USE_SSL
#include <glib.h>
@@ -83,6 +83,7 @@
+#else
+#if USE_GNUTLS
+#include <gnutls/openssl.h>
++#define X509_V_OK 0
+#else
+#error Must select either GnuTLS or OpenSSL
+#endif
diff --git a/packages/sylpheed/sylpheed_2.2.4.bb b/packages/sylpheed/sylpheed_2.2.4.bb
index 4756bb200d..80ad0b6fe1 100644
--- a/packages/sylpheed/sylpheed_2.2.4.bb
+++ b/packages/sylpheed/sylpheed_2.2.4.bb
@@ -3,11 +3,12 @@ DESCRIPTION = "Mail user agent"
DEPENDS = "gtk+ gpgme gnutls"
MAINTAINER = "Graeme Gregory <dp@xora.org.uk>"
LICENSE = "GPL"
-PR = "r3"
+PR = "r4"
SRC_URI = "http://sylpheed.good-day.net/sylpheed/v2.2/sylpheed-${PV}.tar.bz2 \
file://sylpheed-2.2.2-libsylph-Makefile-am.patch;patch=1 \
- file://sylpheed-2.2.2-src-Makefile-am.patch;patch=1"
+ file://sylpheed-2.2.2-src-Makefile-am.patch;patch=1 \
+ file://sylpheed-gnutls_2.2.4.patch;patch=1"
FILES_${PN} = "${bindir} ${datadir}/pixmaps ${datadir}/applications"