pkgsrc/www/spdylay/Makefile

47 lines
1.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.6 2017/02/18 13:57:06 joerg Exp $
Changes 1.4.0: * Renew test key pair * Fix OpenSSL 1.1.0 deprecation warnings * spdylay: compile against openssl-1.1.0 It fails to compile against openssl 1.1.0 due to things like |shrpx_client_handler.cc:90:30: error: 'strerror' was not declared in this scope |shrpx_listen_handler.cc:112:32: error: 'memset' was not declared in this scope |shrpx_listen_handler.cc:114:43: error: 'memcpy' was not declared in this scope This resolves it. * spdycat: Fix leak in SpdySession.reqvec * Compile with IRIX 6.5.22 using GCC-4.7.4 * Remove CREDENTIAL frame processing completely We just left API as is, but related functions just do nothing now. * Allocate stream ID when spdylay_submit_{syn_stream,request} is called This commit allocates stream ID when spdylay_submit_syn_stream and spdylay_submit_request is called. Also create stream when spdylay_session_predicate_syn_stream_send is failed, to provide stream to user callback (e.g., on_ctrl_not_send_callback). Allocating stream ID early ensures that we can create stream because we can catch stream ID exhaustion early and fail fast. Since stream ID is allocated serially, we have to send SYN_STREAM in the order they queued. So now all queued syn_stream have the same priority (lowest). The DATA frame has given priority by application. This does not work well with CREDENTIAL frame, since SYN_STREAM may wait for CREDENTIAL, which results in out of order transmission. Since CREDENTIAL frame was deprecated in SPDY/3.1, and no one use it, we remove its functionality in the later commit. * spdycat: --proxy-port, not --proxyport * spdycat: Check :host header field for SNI, since Host header is not allowed * spdycat: Update spdycat --help output for --header * spdycat: Fix resource leak found by coverity scan
2017-01-26 21:43:12 +01:00
DISTNAME= spdylay-1.4.0
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=tatsuhiro-t/}
2015-10-17 11:55:42 +02:00
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/tatsuhiro-t/spdylay/
COMMENT= Experimental SPDY protocol version 2, 3 and 3.1 implementation in C
LICENSE= mit
GITHUB_RELEASE= v${PKGVERSION_NOREV}
2015-10-17 11:55:42 +02:00
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
2015-10-17 11:55:42 +02:00
CONFIGURE_ARGS= --enable-examples
CONFIGURE_ARGS+= --enable-src
2015-10-17 11:55:42 +02:00
CONFIGURE_ENV+= LIBEVENT_OPENSSL_CFLAGS="-I${BUILDLINK_PREFIX.libevent}/include"
CONFIGURE_ENV+= LIBEVENT_OPENSSL_LIBS="-L${BUILDLINK_PREFIX.libevent}/lib -levent_openssl -levent"
PKGCONFIG_OVERRIDE+= lib/libspdylay.pc.in
.include "../../mk/bsd.prefs.mk"
CPPFLAGS+= -D__STDC_LIMIT_MACROS
LIBS.SunOS+= -lsocket
# bin/spdyd requires epoll or kqueue
PLIST_VARS+= spdyd
.if ${OPSYS} != "SunOS"
PLIST.spdyd= yes
.endif
BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0.8
BUILDLINK_API_DEPENDS.openssl+= openssl>=1.0.1
.include "../../devel/libevent/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"