From owner-svn-ports-head@freebsd.org Tue Sep 8 17:13:31 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ADD623D0494; Tue, 8 Sep 2020 17:13:31 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BmBZ34CYQz43X9; Tue, 8 Sep 2020 17:13:31 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 73F2313CDE; Tue, 8 Sep 2020 17:13:31 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 088HDVqC031287; Tue, 8 Sep 2020 17:13:31 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 088HDUmu031281; Tue, 8 Sep 2020 17:13:30 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202009081713.088HDUmu031281@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 8 Sep 2020 17:13:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r547998 - in head/net: . wangle wangle/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/net: . wangle wangle/files X-SVN-Commit-Revision: 547998 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2020 17:13:31 -0000 Author: yuri Date: Tue Sep 8 17:13:29 2020 New Revision: 547998 URL: https://svnweb.freebsd.org/changeset/ports/547998 Log: New port: net/wangle: Framework building services in a consistent/modular/composable way Added: head/net/wangle/ head/net/wangle/Makefile (contents, props changed) head/net/wangle/distinfo (contents, props changed) head/net/wangle/files/ head/net/wangle/files/patch-acceptor_TransportInfo.cpp (contents, props changed) head/net/wangle/pkg-descr (contents, props changed) head/net/wangle/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Tue Sep 8 17:11:31 2020 (r547997) +++ head/net/Makefile Tue Sep 8 17:13:29 2020 (r547998) @@ -1507,6 +1507,7 @@ SUBDIR += vtun SUBDIR += wackamole SUBDIR += wakeonlan + SUBDIR += wangle SUBDIR += waypipe SUBDIR += wayvnc SUBDIR += webalizer-geodb Added: head/net/wangle/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/wangle/Makefile Tue Sep 8 17:13:29 2020 (r547998) @@ -0,0 +1,41 @@ +# $FreeBSD$ + +PORTNAME= wangle +DISTVERSIONPREFIX= v +DISTVERSION= 2020.09.07.00 +CATEGORIES= net + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Framework building services in a consistent/modular/composable way + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/../LICENSE + +LIB_DEPENDS= libboost_system.so:devel/boost-libs \ + libdouble-conversion.so:devel/double-conversion \ + libevent.so:devel/libevent \ + libfizz.so:security/fizz \ + libfolly.so:devel/folly \ + libgflags.so:devel/gflags \ + libfmt.so:devel/libfmt \ + libglog.so:devel/glog \ + libsodium.so:security/libsodium + +USES= cmake compiler:c++17-lang ssl +USE_GITHUB= yes +GH_ACCOUNT= facebook +USE_LDCONFIG= yes + +WRKSRC_SUBDIR= ${PORTNAME} + +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_OFF= BUILD_TESTS + +post-install: # https://github.com/facebook/wangle/issues/179 + cd ${STAGEDIR}${PREFIX} && \ + ${RMDIR} \ + include/wangle/service/test \ + include/wangle/ssl/test/certs \ + include/wangle/util/test + +.include Added: head/net/wangle/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/wangle/distinfo Tue Sep 8 17:13:29 2020 (r547998) @@ -0,0 +1,3 @@ +TIMESTAMP = 1599583674 +SHA256 (facebook-wangle-v2020.09.07.00_GH0.tar.gz) = 5751b5243a2bada00d40d15f7088cddf8eee73f9b30d1e57cad6879cddf36ff3 +SIZE (facebook-wangle-v2020.09.07.00_GH0.tar.gz) = 322412 Added: head/net/wangle/files/patch-acceptor_TransportInfo.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/wangle/files/patch-acceptor_TransportInfo.cpp Tue Sep 8 17:13:29 2020 (r547998) @@ -0,0 +1,19 @@ +--- acceptor/TransportInfo.cpp.orig 2020-09-08 16:56:17 UTC ++++ acceptor/TransportInfo.cpp +@@ -42,6 +42,16 @@ bool TransportInfo::initWithSocket(const folly::AsyncS + if (mss > 0) { + cwnd = (cwndBytes + mss - 1) / mss; + } ++#elif defined(__FreeBSD__) ++ rtt = microseconds(tcpinfo.tcpi_rtt * 1000); ++ rtt_var = tcpinfo.tcpi_rttvar * 1000; ++ rto = tcpinfo.tcpi_rto * 1000; ++ rtx_tm = -1; ++ mss = tcpinfo.tcpi_snd_mss; ++ cwndBytes = tcpinfo.tcpi_snd_cwnd; ++ if (mss > 0) { ++ cwnd = (cwndBytes + mss - 1) / mss; ++ } + #else + rtt = microseconds(tcpinfo.tcpi_rtt); + rtt_var = tcpinfo.tcpi_rttvar; Added: head/net/wangle/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/wangle/pkg-descr Tue Sep 8 17:13:29 2020 (r547998) @@ -0,0 +1,6 @@ +Wangle is a library that makes it easy to build protocols, application clients, +and application servers. + +It's like Netty + Finagle smooshed together, but in C++. + +WWW: https://github.com/facebook/wangle Added: head/net/wangle/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/wangle/pkg-plist Tue Sep 8 17:13:29 2020 (r547998) @@ -0,0 +1,110 @@ +include/wangle/acceptor/AcceptObserver.h +include/wangle/acceptor/Acceptor.h +include/wangle/acceptor/AcceptorHandshakeManager.h +include/wangle/acceptor/ConnectionCounter.h +include/wangle/acceptor/ConnectionManager.h +include/wangle/acceptor/EvbHandshakeHelper.h +include/wangle/acceptor/FizzAcceptorHandshakeHelper.h +include/wangle/acceptor/FizzConfig.h +include/wangle/acceptor/FizzConfigUtil.h +include/wangle/acceptor/LoadShedConfiguration.h +include/wangle/acceptor/ManagedConnection.h +include/wangle/acceptor/NetworkAddress.h +include/wangle/acceptor/PeekingAcceptorHandshakeHelper.h +include/wangle/acceptor/SSLAcceptorHandshakeHelper.h +include/wangle/acceptor/SSLContextSelectionMisc.h +include/wangle/acceptor/SecureTransportType.h +include/wangle/acceptor/SecurityProtocolContextManager.h +include/wangle/acceptor/ServerSocketConfig.h +include/wangle/acceptor/SharedSSLContextManager.h +include/wangle/acceptor/SocketOptions.h +include/wangle/acceptor/SocketPeeker.h +include/wangle/acceptor/TLSPlaintextPeekingCallback.h +include/wangle/acceptor/TransportInfo.h +include/wangle/acceptor/UnencryptedAcceptorHandshakeHelper.h +include/wangle/acceptor/test/AcceptorHelperMocks.h +include/wangle/bootstrap/AcceptRoutingHandler-inl.h +include/wangle/bootstrap/AcceptRoutingHandler.h +include/wangle/bootstrap/BaseClientBootstrap.h +include/wangle/bootstrap/ClientBootstrap.h +include/wangle/bootstrap/RoutingDataHandler-inl.h +include/wangle/bootstrap/RoutingDataHandler.h +include/wangle/bootstrap/ServerBootstrap-inl.h +include/wangle/bootstrap/ServerBootstrap.h +include/wangle/bootstrap/ServerSocketFactory.h +include/wangle/bootstrap/test/Mocks.h +include/wangle/channel/AsyncSocketHandler.h +include/wangle/channel/EventBaseHandler.h +include/wangle/channel/FileRegion.h +include/wangle/channel/Handler.h +include/wangle/channel/HandlerContext-inl.h +include/wangle/channel/HandlerContext.h +include/wangle/channel/OutputBufferingHandler.h +include/wangle/channel/Pipeline-inl.h +include/wangle/channel/Pipeline.h +include/wangle/channel/StaticPipeline.h +include/wangle/channel/broadcast/BroadcastHandler-inl.h +include/wangle/channel/broadcast/BroadcastHandler.h +include/wangle/channel/broadcast/BroadcastPool-inl.h +include/wangle/channel/broadcast/BroadcastPool.h +include/wangle/channel/broadcast/ObservingHandler-inl.h +include/wangle/channel/broadcast/ObservingHandler.h +include/wangle/channel/broadcast/Subscriber.h +include/wangle/channel/broadcast/test/Mocks.h +include/wangle/channel/test/MockHandler.h +include/wangle/channel/test/MockPipeline.h +include/wangle/client/persistence/FilePersistenceLayer.h +include/wangle/client/persistence/FilePersistentCache.h +include/wangle/client/persistence/LRUInMemoryCache-inl.h +include/wangle/client/persistence/LRUInMemoryCache.h +include/wangle/client/persistence/LRUPersistentCache-inl.h +include/wangle/client/persistence/LRUPersistentCache.h +include/wangle/client/persistence/PersistentCache.h +include/wangle/client/persistence/PersistentCacheCommon.h +include/wangle/client/persistence/SharedMutexCacheLockGuard.h +include/wangle/client/persistence/test/Mocks.h +include/wangle/client/persistence/test/TestUtil.h +include/wangle/client/ssl/SSLSessionCacheData.h +include/wangle/client/ssl/SSLSessionCacheUtils.h +include/wangle/client/ssl/SSLSessionCallbacks.h +include/wangle/client/ssl/SSLSessionPersistentCache-inl.h +include/wangle/client/ssl/SSLSessionPersistentCache.h +include/wangle/client/ssl/ThreadSafeSSLSessionCache.h +include/wangle/client/ssl/test/Mocks.h +include/wangle/client/ssl/test/TestUtil.h +include/wangle/codec/ByteToMessageDecoder.h +include/wangle/codec/FixedLengthFrameDecoder.h +include/wangle/codec/LengthFieldBasedFrameDecoder.h +include/wangle/codec/LengthFieldPrepender.h +include/wangle/codec/LineBasedFrameDecoder.h +include/wangle/codec/MessageToByteEncoder.h +include/wangle/codec/StringCodec.h +include/wangle/codec/test/CodecTestUtils.h +include/wangle/service/ClientDispatcher.h +include/wangle/service/CloseOnReleaseFilter.h +include/wangle/service/ExecutorFilter.h +include/wangle/service/ExpiringFilter.h +include/wangle/service/ServerDispatcher.h +include/wangle/service/Service.h +include/wangle/ssl/ClientHelloExtStats.h +include/wangle/ssl/PasswordInFileFactory.h +include/wangle/ssl/SSLCacheOptions.h +include/wangle/ssl/SSLCacheProvider.h +include/wangle/ssl/SSLContextConfig.h +include/wangle/ssl/SSLContextManager.h +include/wangle/ssl/SSLSessionCacheManager.h +include/wangle/ssl/SSLStats.h +include/wangle/ssl/SSLUtil.h +include/wangle/ssl/ServerSSLContext.h +include/wangle/ssl/TLSCredProcessor.h +include/wangle/ssl/TLSTicketKeyManager.h +include/wangle/ssl/TLSTicketKeySeeds.h +include/wangle/ssl/test/TicketUtil.h +include/wangle/util/FilePoller.h +include/wangle/util/MultiFilePoller.h +lib/cmake/wangle/wangle-config.cmake +lib/cmake/wangle/wangle-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/wangle/wangle-targets.cmake +lib/libwangle.so +lib/libwangle.so.1 +lib/libwangle.so.1.0.0