summaryrefslogtreecommitdiff
path: root/testing/curl
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-29 23:15:03 +0000
committerroot <root@rshg054.dnsready.net>2012-01-29 23:15:03 +0000
commit39711f3264d3b9de2ff6392649274d6333932457 (patch)
treede0577b44ca853064f52a0df25ee9f22efd756bc /testing/curl
parent738e6c6d93b4c7118e49b38c610abed8b7f7d55a (diff)
Sun Jan 29 23:15:02 UTC 2012
Diffstat (limited to 'testing/curl')
-rw-r--r--testing/curl/0001-include-headers-for-tcp-keepalives.patch31
-rw-r--r--testing/curl/PKGBUILD10
2 files changed, 37 insertions, 4 deletions
diff --git a/testing/curl/0001-include-headers-for-tcp-keepalives.patch b/testing/curl/0001-include-headers-for-tcp-keepalives.patch
new file mode 100644
index 000000000..780fb5b82
--- /dev/null
+++ b/testing/curl/0001-include-headers-for-tcp-keepalives.patch
@@ -0,0 +1,31 @@
+From d906981b20d41466d040e6cc2570099c8d665f7f Mon Sep 17 00:00:00 2001
+From: Dave Reisner <dreisner@archlinux.org>
+Date: Sat, 28 Jan 2012 08:05:02 -0500
+Subject: [PATCH] include headers for tcp-keepalives
+
+---
+ src/tool_cb_skt.c | 8 ++++++++
+ 1 files changed, 8 insertions(+), 0 deletions(-)
+
+diff --git a/src/tool_cb_skt.c b/src/tool_cb_skt.c
+index 156c110..e74d5e4 100644
+--- a/src/tool_cb_skt.c
++++ b/src/tool_cb_skt.c
+@@ -27,6 +27,14 @@
+ # include <sys/socket.h>
+ #endif
+
++#ifdef HAVE_NETINET_TCP_H
++# include <netinet/tcp.h>
++#endif
++
++#ifdef HAVE_NETINET_IN_H
++# include <netinet/in.h>
++#endif
++
+ #define ENABLE_CURLX_PRINTF
+ /* use our own printf() functions */
+ #include "curlx.h"
+--
+1.7.8.4
+
diff --git a/testing/curl/PKGBUILD b/testing/curl/PKGBUILD
index 4762c277c..43ef820bc 100644
--- a/testing/curl/PKGBUILD
+++ b/testing/curl/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 147206 2012-01-24 17:51:49Z dreisner $
+# $Id: PKGBUILD 147942 2012-01-28 13:31:34Z dreisner $
# Maintainer: Dave Reisner <dreisner@archlinux.org>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
@@ -7,7 +7,7 @@
pkgname=curl
pkgver=7.24.0
-pkgrel=1
+pkgrel=2
pkgdesc="An URL retrival utility and library"
arch=('i686' 'x86_64')
url="http://curl.haxx.se"
@@ -15,11 +15,11 @@ license=('MIT')
depends=('ca-certificates' 'libssh2' 'openssl' 'zlib')
options=('!libtool')
source=("http://curl.haxx.se/download/$pkgname-$pkgver.tar.gz"{,.asc}
- fix-J-with-O-regression.patch
+ 0001-include-headers-for-tcp-keepalives.patch
curlbuild.h)
md5sums=('b93420f80a2baaa61a0f45214eddc2ba'
'710242df6bc318d16eea611e7d1b1410'
- 'aa4539ec4f4a2dad1663dc22dd3ab0a1'
+ '84833972c2ff36abb2bfdd4ac065c2e5'
'751bd433ede935c8fae727377625a8ae')
ptrsize=$(cpp <<<'__SIZEOF_POINTER__' | sed '/^#/d')
@@ -34,6 +34,8 @@ esac
build() {
cd "$pkgname-$pkgver"
+ patch -Np1 < "$srcdir/0001-include-headers-for-tcp-keepalives.patch"
+
./configure \
--prefix=/usr \
--mandir=/usr/share/man \