git: 8dd71c4bc50f - main - net/trantor: New port!

From: Ryan Steinmetz <zi_at_FreeBSD.org>
Date: Mon, 07 Jul 2025 16:11:53 UTC
The branch main has been updated by zi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8dd71c4bc50fa2ebac54eac2eefb7f62368c3d54

commit 8dd71c4bc50fa2ebac54eac2eefb7f62368c3d54
Author:     Ryan Steinmetz <zi@FreeBSD.org>
AuthorDate: 2025-07-07 16:11:34 +0000
Commit:     Ryan Steinmetz <zi@FreeBSD.org>
CommitDate: 2025-07-07 16:11:34 +0000

    net/trantor: New port!
    
    A non-blocking I/O cross-platform TCP network library, using C++14.
    Drawing on the design of Muduo Library
    
    Featured highlights:
    * Non-blocking I/O
    * cross-platform
    * Thread pool
    * Lock free design
    * Support SSL
    * Server and Client
---
 net/Makefile          |  1 +
 net/trantor/Makefile  | 24 ++++++++++++++++++++++++
 net/trantor/distinfo  |  3 +++
 net/trantor/pkg-descr | 10 ++++++++++
 net/trantor/pkg-plist | 37 +++++++++++++++++++++++++++++++++++++
 5 files changed, 75 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index 3c536bc5411a..2ade459183ca 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1612,6 +1612,7 @@
     SUBDIR += traff
     SUBDIR += trafshow
     SUBDIR += trafshow3
+    SUBDIR += trantor
     SUBDIR += trickle
     SUBDIR += trippy
     SUBDIR += ts-warp
diff --git a/net/trantor/Makefile b/net/trantor/Makefile
new file mode 100644
index 000000000000..12806dadef60
--- /dev/null
+++ b/net/trantor/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	trantor
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.5.24
+CATEGORIES=	net
+
+MAINTAINER=	zi@FreeBSD.org
+COMMENT=	Non-blocking I/O tcp network lib based on c++14/17
+WWW=		https://github.com/an-tao/trantor
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/License
+
+USES=		cmake ssl
+USE_LDCONFIG=	yes
+USE_GITHUB=	yes
+GH_ACCOUNT=	an-tao
+
+CMAKE_ARGS=	-DTRANTOR_USE_TLS=openssl
+CMAKE_OFF=	C-ARES
+CMAKE_ON=	BUILD_SHARED_LIBS
+
+PLIST_SUB=	PORTVERSION=${PORTVERSION}
+
+.include <bsd.port.mk>
diff --git a/net/trantor/distinfo b/net/trantor/distinfo
new file mode 100644
index 000000000000..89abca2cfd3b
--- /dev/null
+++ b/net/trantor/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1751652696
+SHA256 (an-tao-trantor-v1.5.24_GH0.tar.gz) = 3ffe8f6eeeef841b5550540edbed8cb3b3fda2bc5a1d536cc9c6f1809b7cb164
+SIZE (an-tao-trantor-v1.5.24_GH0.tar.gz) = 157331
diff --git a/net/trantor/pkg-descr b/net/trantor/pkg-descr
new file mode 100644
index 000000000000..0bafce3f1101
--- /dev/null
+++ b/net/trantor/pkg-descr
@@ -0,0 +1,10 @@
+A non-blocking I/O cross-platform TCP network library, using C++14.
+Drawing on the design of Muduo Library
+
+Featured highlights:
+* Non-blocking I/O
+* cross-platform
+* Thread pool
+* Lock free design
+* Support SSL
+* Server and Client
diff --git a/net/trantor/pkg-plist b/net/trantor/pkg-plist
new file mode 100644
index 000000000000..06361c579fea
--- /dev/null
+++ b/net/trantor/pkg-plist
@@ -0,0 +1,37 @@
+include/trantor/exports.h
+include/trantor/net/AsyncStream.h
+include/trantor/net/Certificate.h
+include/trantor/net/Channel.h
+include/trantor/net/EventLoop.h
+include/trantor/net/EventLoopThread.h
+include/trantor/net/EventLoopThreadPool.h
+include/trantor/net/InetAddress.h
+include/trantor/net/Resolver.h
+include/trantor/net/TLSPolicy.h
+include/trantor/net/TcpClient.h
+include/trantor/net/TcpConnection.h
+include/trantor/net/TcpServer.h
+include/trantor/net/callbacks.h
+include/trantor/utils/AsyncFileLogger.h
+include/trantor/utils/ConcurrentTaskQueue.h
+include/trantor/utils/Date.h
+include/trantor/utils/Funcs.h
+include/trantor/utils/LockFreeQueue.h
+include/trantor/utils/LogStream.h
+include/trantor/utils/Logger.h
+include/trantor/utils/MsgBuffer.h
+include/trantor/utils/NonCopyable.h
+include/trantor/utils/ObjectPool.h
+include/trantor/utils/SerialTaskQueue.h
+include/trantor/utils/TaskQueue.h
+include/trantor/utils/TimingWheel.h
+include/trantor/utils/Utilities.h
+lib/cmake/Trantor/FindBotan.cmake
+lib/cmake/Trantor/Findc-ares.cmake
+lib/cmake/Trantor/TrantorConfig.cmake
+lib/cmake/Trantor/TrantorConfigVersion.cmake
+lib/cmake/Trantor/TrantorTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/Trantor/TrantorTargets.cmake
+lib/libtrantor.so
+lib/libtrantor.so.1
+lib/libtrantor.so.%%PORTVERSION%%