summaryrefslogtreecommitdiff
path: root/extra/xfce4-mailwatch-plugin
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-02 00:01:22 +0000
committerroot <root@rshg054.dnsready.net>2012-05-02 00:01:22 +0000
commitdefe74c9cba07c321ad2869d8f6872e64a167324 (patch)
tree22377a98049a863983b9a28d9d79fc737f665cc3 /extra/xfce4-mailwatch-plugin
parent752015395fc8b95cc4a86b68189cb747fe9a8499 (diff)
Wed May 2 00:01:22 UTC 2012
Diffstat (limited to 'extra/xfce4-mailwatch-plugin')
-rw-r--r--extra/xfce4-mailwatch-plugin/PKGBUILD11
-rw-r--r--extra/xfce4-mailwatch-plugin/only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch13
2 files changed, 20 insertions, 4 deletions
diff --git a/extra/xfce4-mailwatch-plugin/PKGBUILD b/extra/xfce4-mailwatch-plugin/PKGBUILD
index ebc9be73a..c5a614ce0 100644
--- a/extra/xfce4-mailwatch-plugin/PKGBUILD
+++ b/extra/xfce4-mailwatch-plugin/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 135816 2011-08-18 15:04:58Z andyrtr $
+# $Id: PKGBUILD 157861 2012-04-30 04:20:30Z foutrelis $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: Suzy Williams <suzanne.williams3@verizon.net>
pkgname=xfce4-mailwatch-plugin
pkgver=1.1.0
-pkgrel=4
+pkgrel=5
pkgdesc="A mailbox watch/check plugin for the Xfce4 panel"
arch=(i686 x86_64)
license=('GPL2')
@@ -15,12 +15,15 @@ makedepends=('intltool' 'xfce4-dev-tools')
options=('!libtool')
install=${pkgname}.install
source=(http://spuriousinterrupt.org/files/mailwatch/${pkgname}-${pkgver}.tar.bz2
- xfce4-mailwatch-plugin-1.1.0-underlink.patch)
+ xfce4-mailwatch-plugin-1.1.0-underlink.patch
+ only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch)
md5sums=('f84dce86be1d7f25f169f262aaacee4e'
- '47fe8588e3bb642e1b507a854927e6db')
+ '47fe8588e3bb642e1b507a854927e6db'
+ 'd91ca2b9534e9e2d8dcbd94306b91ade')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
+ patch -Np0 -i ${srcdir}/only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch
# fix for panel4.8 from Fedora
patch -Np1 -i ${srcdir}/xfce4-mailwatch-plugin-1.1.0-underlink.patch
xdt-autogen
diff --git a/extra/xfce4-mailwatch-plugin/only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch b/extra/xfce4-mailwatch-plugin/only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch
new file mode 100644
index 000000000..349e78555
--- /dev/null
+++ b/extra/xfce4-mailwatch-plugin/only-call-gnutls-transport_set_lowat-with-gnutls-2.12.patch
@@ -0,0 +1,13 @@
+--- libmailwatch-core/mailwatch-net-conn.c.orig 2012-04-29 05:38:20.015564589 +0300
++++ libmailwatch-core/mailwatch-net-conn.c 2012-04-29 05:39:01.943290639 +0300
+@@ -621,8 +621,10 @@ xfce_mailwatch_net_conn_make_secure(Xfce
+ net_conn->gt_creds);
+ gnutls_transport_set_ptr(net_conn->gt_session,
+ (gnutls_transport_ptr_t)net_conn->fd);
++#if GNUTLS_VERSION_NUMBER < 0x020c00
+ if(fcntl(net_conn->fd, F_GETFL) & O_NONBLOCK)
+ gnutls_transport_set_lowat(net_conn->gt_session, 0);
++#endif
+
+ if(!xfce_mailwatch_net_conn_tls_handshake(net_conn, error)) {
+ #if 0