From nobody Mon Dec 04 19:19:02 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SkYPM0dGwz52j3d; Mon, 4 Dec 2023 19:19:03 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SkYPM05wWz3Y6X; Mon, 4 Dec 2023 19:19:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701717543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DV6R56YG1f7hgZ3N18zKIEwVzgTwANunZxF5UsMkOMI=; b=ApbNfkjqy88A/sUlepEr+isEJMnec3RW5t3ppaTTaRPWe+3irDWDNKji123RzNuvZrUAr6 FrtPVDHnj/AMsIvCZujE9UFS0UTkzgTzP5e6pUNcFY2RTC4b95i4S0IxF9vXCGlPi/cpVs sB1v7eIOVaKOY2xJVwXdGnTOGy2PsAK5z6lJxqfS6PQOtusvdPkrljgDybBYDrIBSPaANc F0lbT/Dua266Dw0C4Fc7uebxslp4mRohLtKRyHa8+m8AkvqcKUdiqkDNx3bAezGnDUlOkZ TiO4djX0tIF0P1QFhSxq85CtslL5L9LuzckkazQQEKXYAyDPdd3hfDR7sMBF5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701717543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DV6R56YG1f7hgZ3N18zKIEwVzgTwANunZxF5UsMkOMI=; b=wg1nPOO3XfoqligiKeNBSf1y06T4Pl8i9HegEfy9pVQ84NDMDBpP7nbplvsNHhD/4hHFXJ DmrVIxlTbKkNyIHuYGiiTueJIQiQ67lJ/kqvhGZTlbFfRpBRN1YNvPUzBXUMOXWHwB8Zzk MPHSJfv+nAxFpnJkTOY4g8oASZGyx1UkfmVPNYxpeL1aSFRPQm/YdiaAtqejEAmAHQ1In2 q8+wLXWn9Nwo6gzHsQDXo7fAEkJa4TrJDZInlx2YtIXjQUM3Uzsjhmm0d0vw86SOOi82vj 8TFgAx/HufP3HDrpn8h396OOqEqSoz3R8TZ93vI85Ak46sjkPVjtsJ8NNcRAGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701717543; a=rsa-sha256; cv=none; b=LFd/YiEISJarRY5wF9HaqCVqHD9eaylk6ER6+T7mowNjwB5dlDFrpjRR3Ais312BHAjiZS TTl/eTEazwGeTq9qfHW83NyDP7qOeBgrRfTSy8B59WaDxZSs8kH2OYm2onvQsqbELPsG1D vDlU2vewPenarjAONyaB4CNWV+JZWSdno7doC8fPC3V4TlQDwP+XgM16CAxgX9iz+GBtda RZa+dfbSCUlEQ54J25HxlOkDQucttiK0hjg4UZotmiBBn5PuVqdUxaBY0bRzhyHzggwm4n /aT6wPU5dzxtx7mCgafc+Ls5duotCDwmM7dbY4XvAtMAmGQCy6OscUXb/A1y+g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SkYPL5s90zdxv; Mon, 4 Dec 2023 19:19:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B4JJ2Tv078050; Mon, 4 Dec 2023 19:19:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B4JJ2xf078047; Mon, 4 Dec 2023 19:19:02 GMT (envelope-from git) Date: Mon, 4 Dec 2023 19:19:02 GMT Message-Id: <202312041919.3B4JJ2xf078047@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Gleb Popov Subject: git: ee394fe3b6b9 - main - net/libsockpp: C++ socket library List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arrowd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ee394fe3b6b9614ef77351530ed5188d6bf45b94 Auto-Submitted: auto-generated The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=ee394fe3b6b9614ef77351530ed5188d6bf45b94 commit ee394fe3b6b9614ef77351530ed5188d6bf45b94 Author: Peter TKATCHENKO AuthorDate: 2023-12-04 19:16:43 +0000 Commit: Gleb Popov CommitDate: 2023-12-04 19:18:50 +0000 net/libsockpp: C++ socket library --- net/Makefile | 1 + net/libsockpp/Makefile | 34 ++++++++++++++++++++++++++++++++++ net/libsockpp/distinfo | 3 +++ net/libsockpp/pkg-descr | 4 ++++ net/libsockpp/pkg-plist | 35 +++++++++++++++++++++++++++++++++++ 5 files changed, 77 insertions(+) diff --git a/net/Makefile b/net/Makefile index 7ca1d0293962..84376719df12 100644 --- a/net/Makefile +++ b/net/Makefile @@ -425,6 +425,7 @@ SUBDIR += librsync SUBDIR += libsignal-protocol-c SUBDIR += libslirp + SUBDIR += libsockpp SUBDIR += libsrtp2 SUBDIR += libtnl SUBDIR += libtrace diff --git a/net/libsockpp/Makefile b/net/libsockpp/Makefile new file mode 100644 index 000000000000..eeea4aed799f --- /dev/null +++ b/net/libsockpp/Makefile @@ -0,0 +1,34 @@ +PORTNAME= libsockpp +DISTVERSIONPREFIX= v +DISTVERSION= 0.8.1 +CATEGORIES= net devel + +MAINTAINER= peter@flytrace.com +COMMENT= Simple, modern, C++ socket library +WWW= https://github.com/fpagliughi/sockpp + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake compiler:c++14-lang + +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= fpagliughi +GH_PROJECT= sockpp + +OPTIONS_DEFINE= TEST + +TEST_DESC= Build unit tests (requires Catch2) + +TEST_BUILD_DEPENDS= catch2>0:devel/catch2 +TEST_CMAKE_BOOL= SOCKPP_BUILD_TESTS + +CMAKE_ARGS= -DSOCKPP_BUILD_STATIC=FALSE -DSOCKPP_BUILD_DOCUMENTATION=FALSE + +post-patch: + ${REINPLACE_CMD} -e 's|#include "catch2/catch.hpp"|#include "catch2/catch_all.hpp"|' \ + ${WRKSRC}/tests/unit/*.cpp + +.include diff --git a/net/libsockpp/distinfo b/net/libsockpp/distinfo new file mode 100644 index 000000000000..63feab82b420 --- /dev/null +++ b/net/libsockpp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1701641346 +SHA256 (fpagliughi-sockpp-v0.8.1_GH0.tar.gz) = a8aedff8bd8c1da530b91be650352008fddabc9f1df0d19701d76cbc359c8651 +SIZE (fpagliughi-sockpp-v0.8.1_GH0.tar.gz) = 114112 diff --git a/net/libsockpp/pkg-descr b/net/libsockpp/pkg-descr new file mode 100644 index 000000000000..f8932f784968 --- /dev/null +++ b/net/libsockpp/pkg-descr @@ -0,0 +1,4 @@ +Sockpp is a fairly low-level C++ wrapper around the Berkeley sockets library +using socket, acceptor, and connector classes that are familiar concepts from +other languages. The base socket class wraps a system socket handle, and +maintains its lifetime. diff --git a/net/libsockpp/pkg-plist b/net/libsockpp/pkg-plist new file mode 100644 index 000000000000..0952ff1f13d1 --- /dev/null +++ b/net/libsockpp/pkg-plist @@ -0,0 +1,35 @@ +include/sockpp/acceptor.h +include/sockpp/can_address.h +include/sockpp/can_frame.h +include/sockpp/can_socket.h +include/sockpp/connector.h +include/sockpp/datagram_socket.h +include/sockpp/exception.h +include/sockpp/inet6_address.h +include/sockpp/inet_address.h +include/sockpp/platform.h +include/sockpp/result.h +include/sockpp/sock_address.h +include/sockpp/socket.h +include/sockpp/stream_socket.h +include/sockpp/tcp6_acceptor.h +include/sockpp/tcp6_connector.h +include/sockpp/tcp6_socket.h +include/sockpp/tcp_acceptor.h +include/sockpp/tcp_connector.h +include/sockpp/tcp_socket.h +include/sockpp/udp6_socket.h +include/sockpp/udp_socket.h +include/sockpp/unix_acceptor.h +include/sockpp/unix_address.h +include/sockpp/unix_connector.h +include/sockpp/unix_dgram_socket.h +include/sockpp/unix_stream_socket.h +include/sockpp/version.h +lib/cmake/sockpp/sockppConfig.cmake +lib/cmake/sockpp/sockppConfigVersion.cmake +lib/cmake/sockpp/sockppTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/sockpp/sockppTargets.cmake +lib/libsockpp.so +lib/libsockpp.so.0 +lib/libsockpp.so.0.8.1