diff options
-rw-r--r-- | www/curl/Makefile | 3 | ||||
-rw-r--r-- | www/curl/distinfo | 3 | ||||
-rw-r--r-- | www/curl/options.mk | 11 | ||||
-rw-r--r-- | www/curl/patches/patch-lib_http2.c | 18 |
4 files changed, 31 insertions, 4 deletions
diff --git a/www/curl/Makefile b/www/curl/Makefile index 8ab434747a0..d8e612358e7 100644 --- a/www/curl/Makefile +++ b/www/curl/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.148 2015/05/03 10:11:55 wiz Exp $ +# $NetBSD: Makefile,v 1.149 2015/06/03 12:00:06 fhajny Exp $ DISTNAME= curl-7.42.1 +PKGREVISION= 1 CATEGORIES= www MASTER_SITES= http://curl.haxx.se/download/ \ ftp://ftp.sunet.se/pub/www/utilities/curl/ diff --git a/www/curl/distinfo b/www/curl/distinfo index 39e1ef18f9f..acfb500f51e 100644 --- a/www/curl/distinfo +++ b/www/curl/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.104 2015/05/03 10:11:55 wiz Exp $ +$NetBSD: distinfo,v 1.105 2015/06/03 12:00:06 fhajny Exp $ SHA1 (curl-7.42.1.tar.bz2) = f65708915875b8cb35edb51d8dd31440dc02fbd3 RMD160 (curl-7.42.1.tar.bz2) = 76d5b23fae60356342e2bac2e4c706ed544d4adf @@ -6,3 +6,4 @@ Size (curl-7.42.1.tar.bz2) = 3327304 bytes SHA1 (patch-aa) = 59ec0be3ac90470fdc5935881da6a14dbab9d378 SHA1 (patch-curl-config.in) = fd87c97b601a6b9269f67fbc066604ee7e22570e SHA1 (patch-lib_hostcheck.c) = 9faf94f44703c7d37377fd3af319ca5c27df34c2 +SHA1 (patch-lib_http2.c) = 4ba0164ffdba714c620daccbf80eedd51562acf4 diff --git a/www/curl/options.mk b/www/curl/options.mk index 0197ff773cd..83e1b1f1d28 100644 --- a/www/curl/options.mk +++ b/www/curl/options.mk @@ -1,7 +1,7 @@ -# $NetBSD: options.mk,v 1.12 2015/01/08 19:23:53 wiz Exp $ +# $NetBSD: options.mk,v 1.13 2015/06/03 12:00:06 fhajny Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.curl -PKG_SUPPORTED_OPTIONS= inet6 libssh2 gssapi ldap rtmp libidn +PKG_SUPPORTED_OPTIONS= inet6 libssh2 gssapi ldap rtmp libidn http2 PKG_SUGGESTED_OPTIONS= inet6 libidn .include "../../mk/bsd.prefs.mk" @@ -54,3 +54,10 @@ CONFIGURE_ARGS+= --with-libidn .else CONFIGURE_ARGS+= --without-libidn .endif + +.if !empty(PKG_OPTIONS:Mhttp2) +CONFIGURE_ARGS+= --with-nghttp2=${BUILDLINK_PREFIX.nghttp2} +.include "../../www/nghttp2/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-nghttp2 +.endif diff --git a/www/curl/patches/patch-lib_http2.c b/www/curl/patches/patch-lib_http2.c new file mode 100644 index 00000000000..0f114326002 --- /dev/null +++ b/www/curl/patches/patch-lib_http2.c @@ -0,0 +1,18 @@ +$NetBSD: patch-lib_http2.c,v 1.1 2015/06/03 12:00:06 fhajny Exp $ + +Update compatibility for nghttp2 1.0. This patch should become obsolete +with curl-7.43. + +--- lib/http2.c.orig 2015-04-29 06:06:52.000000000 +0000 ++++ lib/http2.c +@@ -1019,8 +1019,8 @@ CURLcode Curl_http2_switched(struct conn + + rv = (int) ((Curl_send*)httpc->send_underlying) + (conn, FIRSTSOCKET, +- NGHTTP2_CLIENT_CONNECTION_PREFACE, +- NGHTTP2_CLIENT_CONNECTION_PREFACE_LEN, ++ NGHTTP2_CLIENT_MAGIC, ++ NGHTTP2_CLIENT_MAGIC_LEN, + &result); + if(result) + /* TODO: This may get CURLE_AGAIN */ |