pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net Add libquic-0.0.3 to the packages collection.
details: https://anonhg.NetBSD.org/pkgsrc/rev/bdc185a3ca8c
branches: trunk
changeset: 349188:bdc185a3ca8c
user: agc <agc%pkgsrc.org@localhost>
date: Fri Jul 01 20:32:35 2016 +0000
description:
Add libquic-0.0.3 to the packages collection.
QUIC is an experimental protocol aimed at reducing web latency over
that of TCP. On the surface, QUIC is very similar to TCP+TLS+SPDY
implemented on UDP. Because TCP is implement in operating system
kernels, and middlebox firmware, making significant changes to TCP is
next to impossible. However, since QUIC is built on top of UDP, it
suffers from no such limitations.
Key features of QUIC over existing TCP+TLS+SPDY include
+ Dramatically reduced connection establishment time
+ Improved congestion control
+ Multiplexing without head of line blocking
+ Forward error correction
+ Connection migration
diffstat:
net/Makefile | 3 +-
net/libquic/DESCR | 14 ++++
net/libquic/Makefile | 42 ++++++++++++++
net/libquic/PLIST | 6 ++
net/libquic/distinfo | 15 +++++
net/libquic/patches/patch-Makefile | 48 ++++++++++++++++
net/libquic/patches/patch-crypto__bio__bio_test.cc | 16 +++++
net/libquic/patches/patch-crypto__bio__internal.h | 15 +++++
net/libquic/patches/patch-crypto__bio__socket_helper.c | 17 +++++
net/libquic/patches/patch-crypto__lhash__lhash_test.c | 16 +++++
net/libquic/patches/patch-crypto__mem.c | 16 +++++
net/libquic/patches/patch-include__openssl__thread.h | 16 +++++
net/libquic/patches/patch-src__base__base_paths_posix.cc | 22 +++++++
net/libquic/patches/patch-src__build__build_config.h | 31 ++++++++++
14 files changed, 276 insertions(+), 1 deletions(-)
diffs (truncated from 343 to 300 lines):
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/Makefile
--- a/net/Makefile Fri Jul 01 17:55:22 2016 +0000
+++ b/net/Makefile Fri Jul 01 20:32:35 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1122 2016/06/30 17:48:27 wiz Exp $
+# $NetBSD: Makefile,v 1.1123 2016/07/01 20:32:35 agc Exp $
#
COMMENT= Networking tools
@@ -288,6 +288,7 @@
SUBDIR+= libnids
SUBDIR+= libnipper
SUBDIR+= libpcap
+SUBDIR+= libquic
SUBDIR+= libquvi
SUBDIR+= libquvi-scripts
SUBDIR+= libradius
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/DESCR Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,14 @@
+QUIC is an experimental protocol aimed at reducing web latency over
+that of TCP. On the surface, QUIC is very similar to TCP+TLS+SPDY
+implemented on UDP. Because TCP is implement in operating system
+kernels, and middlebox firmware, making significant changes to TCP is
+next to impossible. However, since QUIC is built on top of UDP, it
+suffers from no such limitations.
+
+Key features of QUIC over existing TCP+TLS+SPDY include
+
++ Dramatically reduced connection establishment time
++ Improved congestion control
++ Multiplexing without head of line blocking
++ Forward error correction
++ Connection migration
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/Makefile Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 2016/07/01 20:32:35 agc Exp $
+
+DISTNAME= libquic-0.0.3
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=devsisters/}
+GITHUB_TAG= v0.0.3-6e3a05d
+
+MAINTAINER= agc%NetBSD.org@localhost
+COMMENT= Multiplexed stream transport over UDP
+LICENSE= modified-bsd
+
+SUBST_CLASSES+= path
+SUBST_STAGE.link= post-patch
+SUBST_MESSAGE.link= Fix paths
+SUBST_FILES.link= src/base/base_paths_posix.cc
+SUBST_SED.link= -e 's|@PREFIX@|'${PREFIX}'|'
+
+USE_LANGUAGES+= c c++
+USE_TOOLS+= cmake gmake perl
+
+AUTO_MKDIRS= yes
+
+pre-build:
+ mkdir -p ${WRKSRC}/build
+
+do-build:
+ cd ${WRKSRC}/build && ${SETENV} ${MAKE_ENV} cmake -DCMAKE_BUILD_TYPE=Release ..
+ cd ${WRKSRC}/build && ${SETENV} ${MAKE_ENV} gmake
+
+INSTLIBS+= build/boringssl/crypto/libcrypto.a
+INSTLIBS+= build/boringssl/ssl/libssl.a
+INSTLIBS+= build/boringssl/decrepit/libdecrepit.a
+INSTLIBS+= build/protobuf/libprotobuf.a
+INSTLIBS+= build/libquic.a
+
+do-install:
+ mkdir -p ${DESTDIR}${PREFIX}/quic/lib
+ for f in ${INSTLIBS}; do \
+ ${INSTALL_LIB} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/quic/lib/; \
+ done
+
+.include "../../mk/bsd.pkg.mk"
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/PLIST Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/01 20:32:35 agc Exp $
+quic/lib/libcrypto.a
+quic/lib/libdecrepit.a
+quic/lib/libprotobuf.a
+quic/lib/libquic.a
+quic/lib/libssl.a
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/distinfo Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,15 @@
+$NetBSD: distinfo,v 1.1 2016/07/01 20:32:35 agc Exp $
+
+SHA1 (libquic-0.0.3.tar.gz) = ff2e58b2b32a64f9280895c8f34a8c601562ade2
+RMD160 (libquic-0.0.3.tar.gz) = a5225e609fbdbc2e56942b3dcf063359fe5b2e10
+SHA512 (libquic-0.0.3.tar.gz) = a04f5285b2448cd763daa9833574e5977e903975dd20980c80020ee4177df6ff6294ee2c1821d97a8ac34e44aae215178f57b52a12826135f5ee4efc8e74643b
+Size (libquic-0.0.3.tar.gz) = 5848330 bytes
+SHA1 (patch-Makefile) = 5cdfd0daf53e61b5d14f6bc1e60c8f03a72da99d
+SHA1 (patch-crypto__bio__bio_test.cc) = 36d61ff4b424ca29b320b3ac132dc1f0bf468f85
+SHA1 (patch-crypto__bio__internal.h) = 39e070e153db2c3a8ba814e1902f8abc96f9a082
+SHA1 (patch-crypto__bio__socket_helper.c) = 91d0321882a2c843f31f202cc66bee10c2e66530
+SHA1 (patch-crypto__lhash__lhash_test.c) = 4183d05f29062bb8e67fe23b1a8795509f049a02
+SHA1 (patch-crypto__mem.c) = c65a57491c2cf98b4c0b0b3309bd20cb70a22852
+SHA1 (patch-include__openssl__thread.h) = f4cc2433a30be7bd476dabdff7d8be186a95ce0d
+SHA1 (patch-src__base__base_paths_posix.cc) = 8fbf7865f16fd89017a33b8c3ae9f5cdccb598a2
+SHA1 (patch-src__build__build_config.h) = b0cb41d7418836b9327c09fb843a2dc3278863a6
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/patches/patch-Makefile Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,48 @@
+$NetBSD: patch-Makefile,v 1.1 2016/07/01 20:32:35 agc Exp $
+
+avoid some hardcoded paths
+
+--- Makefile 2016/07/01 17:48:16 1.1
++++ Makefile 2016/07/01 17:49:30
+@@ -39,19 +39,19 @@
+ SHELL = /bin/sh
+
+ # The CMake executable.
+-CMAKE_COMMAND = /usr/local/Cellar/cmake/3.4.1/bin/cmake
++CMAKE_COMMAND = cmake
+
+ # The command to remove a file.
+-RM = /usr/local/Cellar/cmake/3.4.1/bin/cmake -E remove -f
++RM = cmake -E remove -f
+
+ # Escaping for special characters.
+ EQUALS = =
+
+ # The top-level source directory on which CMake was run.
+-CMAKE_SOURCE_DIR = /Users/hodduc/go/src/github.com/devsisters/goquic/libquic
++CMAKE_SOURCE_DIR:= $(shell pwd)
+
+ # The top-level build directory on which CMake was run.
+-CMAKE_BINARY_DIR = /Users/hodduc/go/src/github.com/devsisters/goquic/libquic
++CMAKE_BINARY_DIR:= $(shell pwd)
+
+ #=============================================================================
+ # Targets provided globally by CMake.
+@@ -59,7 +59,7 @@
+ # Special rule for the target edit_cache
+ edit_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
+- /usr/local/Cellar/cmake/3.4.1/bin/ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
++ ccmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
+ .PHONY : edit_cache
+
+ # Special rule for the target edit_cache
+@@ -70,7 +70,7 @@
+ # Special rule for the target rebuild_cache
+ rebuild_cache:
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
+- /usr/local/Cellar/cmake/3.4.1/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
++ cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
+ .PHONY : rebuild_cache
+
+ # Special rule for the target rebuild_cache
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/patches/patch-crypto__bio__bio_test.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/patches/patch-crypto__bio__bio_test.cc Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-crypto__bio__bio_test.cc,v 1.1 2016/07/01 20:32:35 agc Exp $
+
+NetBSD portability patches
+
+--- boringssl/crypto/bio/bio_test.cc.orig 2015-12-30 15:55:50.000000000 -0800
++++ boringssl/crypto/bio/bio_test.cc 2015-12-30 18:06:05.000000000 -0800
+@@ -13,7 +13,9 @@
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
+
+ #if !defined(_POSIX_C_SOURCE)
++# if !defined(__NetBSD__)
+ #define _POSIX_C_SOURCE 201410L
++# endif
+ #endif
+
+ #include <openssl/base.h>
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/patches/patch-crypto__bio__internal.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/patches/patch-crypto__bio__internal.h Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-crypto__bio__internal.h,v 1.1 2016/07/01 20:32:35 agc Exp $
+
+NetBSD portability patches
+
+--- boringssl/crypto/bio/internal.h.orig 2015-12-30 15:55:50.000000000 -0800
++++ boringssl/crypto/bio/internal.h 2015-12-30 18:06:05.000000000 -0800
+@@ -59,6 +59,8 @@
+
+ #include <openssl/base.h>
+
++#include <netdb.h>
++
+ #if !defined(OPENSSL_WINDOWS)
+ #if defined(OPENSSL_PNACL)
+ /* newlib uses u_short in socket.h without defining it. */
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/patches/patch-crypto__bio__socket_helper.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/patches/patch-crypto__bio__socket_helper.c Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-crypto__bio__socket_helper.c,v 1.1 2016/07/01 20:32:35 agc Exp $
+
+NetBSD portability patches
+
+--- boringssl/crypto/bio/socket_helper.c.orig 2015-12-30 15:55:50.000000000 -0800
++++ boringssl/crypto/bio/socket_helper.c 2015-12-30 18:06:05.000000000 -0800
+@@ -12,8 +12,10 @@
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
+
++#if !defined(__NetBSD__)
+ #undef _POSIX_C_SOURCE
+ #define _POSIX_C_SOURCE 200112L
++#endif
+
+ #include <openssl/bio.h>
+ #include <openssl/err.h>
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/patches/patch-crypto__lhash__lhash_test.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/patches/patch-crypto__lhash__lhash_test.c Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-crypto__lhash__lhash_test.c,v 1.1 2016/07/01 20:32:35 agc Exp $
+
+NetBSD portability patches
+
+--- boringssl/crypto/lhash/lhash_test.c.orig 2015-12-30 15:55:51.000000000 -0800
++++ boringssl/crypto/lhash/lhash_test.c 2015-12-30 18:06:05.000000000 -0800
+@@ -13,7 +13,9 @@
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
+
+ #if !defined(_POSIX_C_SOURCE)
++# if !defined(__NetBSD__)
+ #define _POSIX_C_SOURCE 201410L
++# endif
+ #endif
+
+ #include <openssl/crypto.h>
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/patches/patch-crypto__mem.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/patches/patch-crypto__mem.c Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-crypto__mem.c,v 1.1 2016/07/01 20:32:35 agc Exp $
+
+NetBSD portability patches
+
+--- boringssl/crypto/mem.c.orig 2015-12-30 15:55:51.000000000 -0800
++++ boringssl/crypto/mem.c 2015-12-30 18:06:05.000000000 -0800
+@@ -55,7 +55,9 @@
+ * [including the GNU Public Licence.] */
+
+ #if !defined(_POSIX_C_SOURCE)
++# if !defined(__NetBSD__)
+ #define _POSIX_C_SOURCE 201410L /* needed for strdup, snprintf, vprintf etc */
++# endif
+ #endif
+
+ #include <openssl/mem.h>
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/patches/patch-include__openssl__thread.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/patches/patch-include__openssl__thread.h Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-include__openssl__thread.h,v 1.1 2016/07/01 20:32:35 agc Exp $
+
+NetBSD portability patches
+
+--- boringssl/include/openssl/thread.h.orig 2015-12-30 15:55:52.000000000 -0800
++++ boringssl/include/openssl/thread.h 2015-12-30 18:06:05.000000000 -0800
+@@ -87,6 +87,9 @@
+ typedef union crypto_mutex_st {
+ double alignment;
+ uint8_t padding[3*sizeof(int) + 5*sizeof(unsigned) + 16 + 8];
++#if defined(__NetBSD__)
++ uint8_t nbpad[64 + 8];
++#endif
+ } CRYPTO_MUTEX;
+ #endif
+
diff -r 9ff6d30cf6ec -r bdc185a3ca8c net/libquic/patches/patch-src__base__base_paths_posix.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libquic/patches/patch-src__base__base_paths_posix.cc Fri Jul 01 20:32:35 2016 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src__base__base_paths_posix.cc,v 1.1 2016/07/01 20:32:35 agc Exp $
+
+Portability fixes
+
+--- src/base/base_paths_posix.cc 2015/12/30 22:26:32 1.1
++++ src/base/base_paths_posix.cc 2015/12/30 22:28:31
+@@ -63,13 +63,13 @@
+ }
+ *result = FilePath(bin_dir);
+ return true;
+-#elif defined(OS_OPENBSD)
++#elif defined(OS_OPENBSD) || defined(OS_NETBSD)
+ // There is currently no way to get the executable path on OpenBSD
+ char* cpath;
Home |
Main Index |
Thread Index |
Old Index