From owner-svn-ports-head@freebsd.org Tue Sep 15 22:12:43 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 0751D3E228A; Tue, 15 Sep 2020 22:12:43 +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 4Brct26MZRz3Vff; Tue, 15 Sep 2020 22:12:42 +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 BDC7DF39A; Tue, 15 Sep 2020 22:12:42 +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 08FMCg6f065329; Tue, 15 Sep 2020 22:12:42 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08FMCfZh065322; Tue, 15 Sep 2020 22:12:41 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202009152212.08FMCfZh065322@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 15 Sep 2020 22:12:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r548751 - in head/net: . fb303 fb303/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/net: . fb303 fb303/files X-SVN-Commit-Revision: 548751 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, 15 Sep 2020 22:12:43 -0000 Author: yuri Date: Tue Sep 15 22:12:40 2020 New Revision: 548751 URL: https://svnweb.freebsd.org/changeset/ports/548751 Log: New port: net/fb303: Base Thrift service and a common set of functionality Added: head/net/fb303/ head/net/fb303/Makefile (contents, props changed) head/net/fb303/distinfo (contents, props changed) head/net/fb303/files/ head/net/fb303/files/patch-build_fbcode__builder_CMake_FBThriftLibrary.cmake (contents, props changed) head/net/fb303/files/patch-fb303_thrift_CMakeLists.txt (contents, props changed) head/net/fb303/pkg-descr (contents, props changed) head/net/fb303/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Tue Sep 15 22:05:58 2020 (r548750) +++ head/net/Makefile Tue Sep 15 22:12:40 2020 (r548751) @@ -149,6 +149,7 @@ SUBDIR += exabgp4 SUBDIR += exaddos SUBDIR += fb + SUBDIR += fb303 SUBDIR += fbzmq SUBDIR += fiche SUBDIR += file2pcap Added: head/net/fb303/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fb303/Makefile Tue Sep 15 22:12:40 2020 (r548751) @@ -0,0 +1,35 @@ +# $FreeBSD$ + +PORTNAME= fb303 +DISTVERSION= g20200915 +CATEGORIES= net + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Base Thrift service and a common set of functionality + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libboost_regex.so:devel/boost-libs \ + libfizz.so:security/fizz \ + libfmt.so:devel/libfmt \ + libfolly.so:devel/folly \ + libgflags.so:devel/gflags \ + libglog.so:devel/glog \ + libthriftcpp2.so:devel/fbthrift \ + libwangle.so:net/wangle + +USES= cmake compiler:c++17-lang +USE_GITHUB= yes +GH_ACCOUNT= facebook +GH_TAGNAME= ec43a43 +USE_LDCONFIG= yes + +CXXFLAGS+= -fPIC + +CMAKE_ON= BUILD_SHARED_LIBS + +post-install: + @${RMDIR} ${STAGEDIR}${PREFIX}/include/fb303/test + +.include Added: head/net/fb303/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fb303/distinfo Tue Sep 15 22:12:40 2020 (r548751) @@ -0,0 +1,3 @@ +TIMESTAMP = 1600206657 +SHA256 (facebook-fb303-g20200915-ec43a43_GH0.tar.gz) = 956c7388d59a73c381627a8a67c57726994b28252b8246f224e94041cec0aaed +SIZE (facebook-fb303-g20200915-ec43a43_GH0.tar.gz) = 224086 Added: head/net/fb303/files/patch-build_fbcode__builder_CMake_FBThriftLibrary.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fb303/files/patch-build_fbcode__builder_CMake_FBThriftLibrary.cmake Tue Sep 15 22:12:40 2020 (r548751) @@ -0,0 +1,20 @@ +--- build/fbcode_builder/CMake/FBThriftLibrary.cmake.orig 2020-09-15 21:55:13 UTC ++++ build/fbcode_builder/CMake/FBThriftLibrary.cmake +@@ -43,7 +43,7 @@ function(add_fbthrift_library LIB_NAME THRIFT_FILE) + set(PY_DEPENDS) + foreach(dep IN LISTS ARG_DEPENDS) + list(APPEND CPP_DEPENDS "${dep}_cpp") +- list(APPEND PY_DEPENDS "${dep}_py") ++ #list(APPEND PY_DEPENDS "${dep}_py") + endforeach() + + foreach(lang IN LISTS ARG_LANGUAGES) +@@ -56,7 +56,7 @@ function(add_fbthrift_library LIB_NAME THRIFT_FILE) + INCLUDE_DIR "${ARG_INCLUDE_DIR}" + THRIFT_INCLUDE_DIR "${ARG_THRIFT_INCLUDE_DIR}" + ) +- elseif ("${lang}" STREQUAL "py" OR "${lang}" STREQUAL "python") ++ elseif (FALSE AND "${lang}" STREQUAL "py" OR "${lang}" STREQUAL "python") + if (DEFINED ARG_PY_NAMESPACE) + set(namespace_args NAMESPACE "${ARG_PY_NAMESPACE}") + endif() Added: head/net/fb303/files/patch-fb303_thrift_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fb303/files/patch-fb303_thrift_CMakeLists.txt Tue Sep 15 22:12:40 2020 (r548751) @@ -0,0 +1,22 @@ +--- fb303/thrift/CMakeLists.txt.orig 2020-09-15 21:56:05 UTC ++++ fb303/thrift/CMakeLists.txt +@@ -15,7 +15,7 @@ + add_fbthrift_library( + fb303_thrift + fb303_core.thrift +- LANGUAGES cpp py ++ LANGUAGES cpp + THRIFT_INCLUDE_DIR "${INCLUDE_INSTALL_DIR}/thrift-files" + SERVICES + BaseService +@@ -38,8 +38,10 @@ install( + DESTINATION "$" + ) + ++if (FALSE) + install_fb_python_library(fb303_thrift_py EXPORT fb303-exports) + install( + TARGETS fb303_thrift_py.thrift_includes + EXPORT fb303-exports + ) ++endif() Added: head/net/fb303/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fb303/pkg-descr Tue Sep 15 22:12:40 2020 (r548751) @@ -0,0 +1,4 @@ +fb303 is a base Thrift service and a common set of functionality for querying +stats, options, and other information from a service. + +WWW: https://github.com/facebook/fb303 Added: head/net/fb303/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/fb303/pkg-plist Tue Sep 15 22:12:40 2020 (r548751) @@ -0,0 +1,49 @@ +include/fb303/BaseService.h +include/fb303/CallbackValuesMap-inl.h +include/fb303/CallbackValuesMap.h +include/fb303/DynamicCounters.h +include/fb303/ExportType.h +include/fb303/ExportedHistogramMap.h +include/fb303/ExportedHistogramMapImpl.h +include/fb303/ExportedStatMap.h +include/fb303/ExportedStatMapImpl.h +include/fb303/FollyLoggingHandler.h +include/fb303/HistogramExporter.h +include/fb303/LegacyClock.h +include/fb303/MutexWrapper.h +include/fb303/QuantileStat-inl.h +include/fb303/QuantileStat.h +include/fb303/ServiceData.h +include/fb303/SimpleLRUMap.h +include/fb303/SynchMap-inl.h +include/fb303/SynchMap.h +include/fb303/TFunctionStatHandler.h +include/fb303/TLStatsAsyncAggregator.h +include/fb303/TLStatsLockTraits.h +include/fb303/ThreadCachedServiceData.h +include/fb303/ThreadLocalStats-inl.h +include/fb303/ThreadLocalStats.h +include/fb303/ThreadLocalStatsMap-inl.h +include/fb303/ThreadLocalStatsMap.h +include/fb303/Timeseries-inl.h +include/fb303/Timeseries.h +include/fb303/TimeseriesExporter.h +include/fb303/TimeseriesHistogram-inl.h +include/fb303/TimeseriesHistogram.h +include/fb303/detail/QuantileStatMap-inl.h +include/fb303/detail/QuantileStatMap.h +include/fb303/thrift/gen-cpp2/BaseService.h +include/fb303/thrift/gen-cpp2/BaseService.tcc +include/fb303/thrift/gen-cpp2/BaseServiceAsyncClient.h +include/fb303/thrift/gen-cpp2/BaseService_custom_protocol.h +include/fb303/thrift/gen-cpp2/fb303_core_constants.h +include/fb303/thrift/gen-cpp2/fb303_core_metadata.h +include/fb303/thrift/gen-cpp2/fb303_core_types.h +include/fb303/thrift/gen-cpp2/fb303_core_types.tcc +include/fb303/thrift/gen-cpp2/fb303_core_types_custom_protocol.h +include/thrift-files/fb303/thrift/fb303_core.thrift +lib/cmake/fb303/fb303-config.cmake +lib/cmake/fb303/fb303-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/fb303/fb303-targets.cmake +lib/libfb303.so +lib/libfb303_thrift_cpp.a