summaryrefslogtreecommitdiff
path: root/gnome-unstable/glib-networking
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-31 23:14:52 +0000
committerroot <root@rshg054.dnsready.net>2011-08-31 23:14:52 +0000
commit31f40feaa17912cf0ebfa72dd9368264633b3830 (patch)
tree28b258545d8ddf3acab854d97fc315f4d88f0e29 /gnome-unstable/glib-networking
parentb82f11fd76e83d60504649838e60a235b394160f (diff)
Wed Aug 31 23:14:52 UTC 2011
Diffstat (limited to 'gnome-unstable/glib-networking')
-rw-r--r--gnome-unstable/glib-networking/PKGBUILD30
-rw-r--r--gnome-unstable/glib-networking/glib-networking-2.29.9-port-gnutls3-API.patch17
-rw-r--r--gnome-unstable/glib-networking/glib-networking.install11
3 files changed, 58 insertions, 0 deletions
diff --git a/gnome-unstable/glib-networking/PKGBUILD b/gnome-unstable/glib-networking/PKGBUILD
new file mode 100644
index 000000000..f52fc0f19
--- /dev/null
+++ b/gnome-unstable/glib-networking/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 136609 2011-08-30 18:09:26Z ibiru $
+# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
+pkgname=glib-networking
+pkgver=2.29.18
+pkgrel=1
+pkgdesc="Network-related giomodules for glib"
+arch=('i686' 'x86_64')
+url="http://www.gtk.org/"
+license=('GPL2')
+depends=('glib2' 'libproxy' 'gnutls' 'libgcrypt' 'ca-certificates' 'gsettings-desktop-schemas')
+makedepends=('intltool' 'namcap')
+options=('!libtool')
+install=glib-networking.install
+source=(http://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-${pkgver}.tar.xz)
+sha256sums=('87d77d9bf184398cd8b7f709e6de42f11b2badf9df1bd96a9ab69c0c8a0766f0')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure \
+ --prefix=/usr --sysconfdir=/etc \
+ --libexecdir=/usr/lib/glib-networking --disable-static
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="${pkgdir}" install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/gnome-unstable/glib-networking/glib-networking-2.29.9-port-gnutls3-API.patch b/gnome-unstable/glib-networking/glib-networking-2.29.9-port-gnutls3-API.patch
new file mode 100644
index 000000000..19a168638
--- /dev/null
+++ b/gnome-unstable/glib-networking/glib-networking-2.29.9-port-gnutls3-API.patch
@@ -0,0 +1,17 @@
+Index: tls/gnutls/gtlsconnection-gnutls.c
+===================================================================
+--- tls/gnutls/gtlsconnection-gnutls.c
++++ tls/gnutls/gtlsconnection-gnutls.c 2011-08-04 00:40:33.194189789 +0200
+@@ -860,9 +860,10 @@
+
+ if (peer_certificate)
+ {
+- int status;
++ int verify_ret;
++ unsigned int status;
+
+- status = gnutls_certificate_verify_peers (gnutls->priv->session);
++ verify_ret = gnutls_certificate_verify_peers2 (gnutls->priv->session, &status);
+ peer_certificate_errors = g_tls_certificate_gnutls_convert_flags (status);
+ if (peer_certificate_errors)
+ {
diff --git a/gnome-unstable/glib-networking/glib-networking.install b/gnome-unstable/glib-networking/glib-networking.install
new file mode 100644
index 000000000..595f1c75b
--- /dev/null
+++ b/gnome-unstable/glib-networking/glib-networking.install
@@ -0,0 +1,11 @@
+post_install() {
+ usr/bin/gio-querymodules usr/lib/gio/modules
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}