diff --git a/net/libsockpp/Makefile b/net/libsockpp/Makefile index d392e8895a7f..952773341f02 100644 --- a/net/libsockpp/Makefile +++ b/net/libsockpp/Makefile @@ -1,53 +1,53 @@ PORTNAME= libsockpp DISTVERSIONPREFIX= v -DISTVERSION= 0.8.3 +DISTVERSION= 1.0.0 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= DOCS EXAMPLES STATIC TEST OPTIONS_DEFAULT= EXAMPLES STATIC DOCS_DESC= Create and install the HTML based API documentation (requires Doxygen) STATIC_DESC= Build the static library EXAMPLES_DESC= Build example programs TEST_DESC= Build the unit tests (requires Catch2) STATIC_CMAKE_BOOL= SOCKPP_BUILD_STATIC EXAMPLES_CMAKE_BOOL= SOCKPP_BUILD_EXAMPLES TEST_BUILD_DEPENDS= catch2>0:devel/catch2 TEST_CMAKE_BOOL= SOCKPP_BUILD_TESTS OPTIONS_SUB= yes EXAMPLES_TO_REMOVE= tcp6echo \ tcp6echosvr \ tcpecho \ tcpechomt \ tcpechosvr \ tcpechotest \ udp6echo \ udpecho \ udpechosvr \ undgramecho \ undgramechosvr \ unecho \ unechosvr \ unechotest post-install: cd ${STAGEDIR}${PREFIX}/bin && ${RM} ${EXAMPLES_TO_REMOVE} .include diff --git a/net/libsockpp/distinfo b/net/libsockpp/distinfo index 717373a94d5f..359e4bcfc88c 100644 --- a/net/libsockpp/distinfo +++ b/net/libsockpp/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1702498061 -SHA256 (fpagliughi-sockpp-v0.8.3_GH0.tar.gz) = dcacfae173ae4a1e535078d3023d338c3eb170193fe1b82bc04138e9c02470ef -SIZE (fpagliughi-sockpp-v0.8.3_GH0.tar.gz) = 115393 +TIMESTAMP = 1704200820 +SHA256 (fpagliughi-sockpp-v1.0.0_GH0.tar.gz) = 818477fae6eb29b9daacef71a3d0c494de9e48f6fd267a7fc5a4c332db211bc5 +SIZE (fpagliughi-sockpp-v1.0.0_GH0.tar.gz) = 114358 diff --git a/net/libsockpp/files/patch-examples_udp_udpechosvr.cpp b/net/libsockpp/files/patch-examples_udp_udpechosvr.cpp new file mode 100644 index 000000000000..027e3ae5fc13 --- /dev/null +++ b/net/libsockpp/files/patch-examples_udp_udpechosvr.cpp @@ -0,0 +1,11 @@ +--- examples/udp/udpechosvr.cpp.orig 2023-12-17 20:26:10 UTC ++++ examples/udp/udpechosvr.cpp +@@ -72,7 +72,7 @@ void run_echo(UDPSOCK sock) + // Read some data, also getting the address of the sender, + // then just send it back. + while ((n = sock.recv_from(buf, sizeof(buf), &srcAddr)) > 0) +- sock.send_to(buf, n, srcAddr); ++ sock.send_to((void*)buf, n, srcAddr); + } + + // -------------------------------------------------------------------------- diff --git a/net/libsockpp/files/patch-examples_unix_undgramechosvr.cpp b/net/libsockpp/files/patch-examples_unix_undgramechosvr.cpp new file mode 100644 index 000000000000..86a52cc5bd55 --- /dev/null +++ b/net/libsockpp/files/patch-examples_unix_undgramechosvr.cpp @@ -0,0 +1,11 @@ +--- examples/unix/undgramechosvr.cpp.orig 2023-12-17 20:26:10 UTC ++++ examples/unix/undgramechosvr.cpp +@@ -86,7 +86,7 @@ int main(int argc, char* argv[]) + // Read some data, also getting the address of the sender, + // then just send it back. + while ((n = sock.recv_from(buf, sizeof(buf), &srcAddr)) > 0) +- sock.send_to(buf, n, srcAddr); ++ sock.send_to((void*)buf, n, srcAddr); + + return 0; + } diff --git a/net/libsockpp/pkg-plist b/net/libsockpp/pkg-plist index 3c95fae59d19..8ca20b5414e6 100644 --- a/net/libsockpp/pkg-plist +++ b/net/libsockpp/pkg-plist @@ -1,36 +1,36 @@ 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 %%STATIC%%lib/libsockpp.a lib/libsockpp.so -lib/libsockpp.so.0 -lib/libsockpp.so.0.8.3 +lib/libsockpp.so.1 +lib/libsockpp.so.1.0.0