From nobody Sun May 1 09:53:57 2022 X-Original-To: dev-commits-ports-all@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 61BE21AA9A39; Sun, 1 May 2022 09:53:57 +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 4KrhPx2Grzz3Fh1; Sun, 1 May 2022 09:53:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651398837; 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=kJqrkpw2F73dC9Nssq1L1tv1uflo6zBTA8j4xKMq8hA=; b=Q5wM7sM21dPEKxU/CDdHBRolfEtOq49gsMZB7Nsa8ZmcpNSujv1+Z2loSkOvjkGw9tHemr E5Y0YlqtCAvKrWkTp7kYa7EGsnjPHlZGDCB4Cpz51yTO8rmbwVxH0GXeVrBjz+olAU4ZG7 F+5kj2Sxa9ygq7bwwFi2j88vSf6lbx5WHtFLSWYHHJ7eiGtzrPA8JQ9FJMHGeRE6KsGBiS 6pyijfezqymJ3y/RI1JN9NHQ1slsziNCMJCpk6JiNSPyuFBofJMBxkvaBVISTGBV98GzZv l4FEoenkz+TCfhL0f15O8MmmB9EPRP4rMsTxF+M7RELrsbnXKWHe3SBlTVNroA== 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 2E61A136E4; Sun, 1 May 2022 09:53:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2419rvLs054804; Sun, 1 May 2022 09:53:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2419rvMY054803; Sun, 1 May 2022 09:53:57 GMT (envelope-from git) Date: Sun, 1 May 2022 09:53:57 GMT Message-Id: <202205010953.2419rvMY054803@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: db009eb902b0 - main - net/iwnet: new port had been added (+) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: db009eb902b0ad5b1867e5e9e0aeee3656394068 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651398837; 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=kJqrkpw2F73dC9Nssq1L1tv1uflo6zBTA8j4xKMq8hA=; b=NIqeh4YtIK3wZl63fF9spgqdF1+kkYuNchCR0EMd+4NZcS7BreWrcLQGnXIDKkBWSJv80B NMd+6KgTIn3MppmmrZEEcQ0BsIHPNaToyPs7g8VZCNRckZCGWAjcSmbIKVqvicwQz/Bd70 WhOnQtKPCtOFuURu9mPNWFMcRkLy6vaEN6aY+vdo00ghpujR/VME0VJPz7H3KD5AopvAaH o4zj/EH0B+FcKaRG+itcsTZJ3NcV+vxQR1JMQ1AXH5FB0HwHJyFBcOXTUdq3eaMNVuKUFe 5vIDh9S5YVx2gKw7fJM7T65V+DJh/F1hnrkxyNPRnHIOU3pN1gJgr4onTwSrlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651398837; a=rsa-sha256; cv=none; b=yN2RnWUaoEPa784G+OlxO/RH8HmtYbp8BPb4uiiL9nhoieAKoJKDfFFHpb+2qSgYFpShEz KXDkB/t8zqDri/VyiQejf7i0yON9U6VQyCLMRfF2zbjd92jrffQ+LglQZWEGFXfdpSdysQ RtNv0CFC4uUsJMZrvgXo3uam+D7LXzHr26Y8T9bdO0PRfqizHXLICnaHQ4rWAaIvzu9pdW 9vJXlpQqSmRopOjflgQRluTjtZoEdmas9ZIKSDBlzLNghwOjJ4qUwU7xk3vF5IuUH70gl3 26c8KCB2WhYLnRttPxz7Bfa794S6EkEVi6xijcrI82RMAtuC6Y78c8jQD04zpA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=db009eb902b0ad5b1867e5e9e0aeee3656394068 commit db009eb902b0ad5b1867e5e9e0aeee3656394068 Author: Alexey Dokuchaev AuthorDate: 2022-05-01 09:52:56 +0000 Commit: Alexey Dokuchaev CommitDate: 2022-05-01 09:52:56 +0000 net/iwnet: new port had been added (+) Asynchronous HTTP library with websockets, SSL, routing. 54% tests pass, 6 tests currently fail out of 13. WWW: https://github.com/Softmotions/iwnet --- net/Makefile | 1 + net/iwnet/Makefile | 28 +++++++++++++++++ net/iwnet/distinfo | 3 ++ net/iwnet/files/patch-src_CMakeLists.txt | 25 +++++++++++++++ net/iwnet/pkg-descr | 12 ++++++++ net/iwnet/pkg-plist | 53 ++++++++++++++++++++++++++++++++ 6 files changed, 122 insertions(+) diff --git a/net/Makefile b/net/Makefile index 4b1a89dccda2..42d5c3d040de 100644 --- a/net/Makefile +++ b/net/Makefile @@ -286,6 +286,7 @@ SUBDIR += isc-dhcp44-relay SUBDIR += isc-dhcp44-server SUBDIR += istgt + SUBDIR += iwnet SUBDIR += java-beepcore SUBDIR += jcifs SUBDIR += jgroups diff --git a/net/iwnet/Makefile b/net/iwnet/Makefile new file mode 100644 index 000000000000..b16a0ea17c25 --- /dev/null +++ b/net/iwnet/Makefile @@ -0,0 +1,28 @@ +# Created by: Alexey Dokuchaev + +PORTNAME= iwnet +PORTVERSION= g20220223 +CATEGORIES= net www + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Asynchronous HTTP library with websockets, SSL, routing + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${LOCALBASE}/include/iowow/iowow.h:databases/iowow + +USES= cmake compiler:c11 +USE_GITHUB= yes +GH_ACCOUNT= Softmotions +GH_TAGNAME= 0569ab0 +USE_LDCONFIG= yes + +CMAKE_ARGS= -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_TESTS:BOOL=ON + +OPTIONS_DEFINE= DOCS + +do-test: + @cd ${TEST_WRKSRC} && ctest -C ${CMAKE_BUILD_TYPE} ${_MAKE_JOBS} + +.include diff --git a/net/iwnet/distinfo b/net/iwnet/distinfo new file mode 100644 index 000000000000..626054bcc71a --- /dev/null +++ b/net/iwnet/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1645609680 +SHA256 (Softmotions-iwnet-g20220223-0569ab0_GH0.tar.gz) = 9d4808d5739bf1ffa6d07f82c12a733759eb11565360d485ef0f6d2c1db28ace +SIZE (Softmotions-iwnet-g20220223-0569ab0_GH0.tar.gz) = 798342 diff --git a/net/iwnet/files/patch-src_CMakeLists.txt b/net/iwnet/files/patch-src_CMakeLists.txt new file mode 100644 index 000000000000..dce86d7fd320 --- /dev/null +++ b/net/iwnet/files/patch-src_CMakeLists.txt @@ -0,0 +1,25 @@ +--- src/CMakeLists.txt.orig 2022-02-23 09:48:00 UTC ++++ src/CMakeLists.txt +@@ -52,7 +52,7 @@ endif() + set(CMAKE_C_FLAGS_DEBUG + "${CMAKE_C_ASAN} -O0 -g -ggdb -Werror -DDEBUG -D_DEBUG -UNDEBUG -Wno-unused-variable" + ) +-set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_ASAN} -O3 -DNDEBUG") ++set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${CMAKE_C_ASAN} -DNDEBUG") + set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-Wl,-s") + set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE} -g") + set(CMAKE_C_FLAGS_RELEASEWITHDEBINFO ${CMAKE_C_FLAGS_RELWITHDEBINFO}) +@@ -174,13 +174,6 @@ if(BUILD_SHARED_LIBS) + SOVERSION ${PROJECT_VERSION_MAJOR} + PUBLIC_HEADER "${PUB_HDRS}" + DEFINE_SYMBOL IW_API_EXPORTS) +- +- if(CMAKE_BUILD_TYPE STREQUAL "Release") +- add_custom_command( +- TARGET iwnet +- POST_BUILD +- COMMAND ${STRIP_CMD} $) +- endif() + + set_target_properties( + iwnet_s diff --git a/net/iwnet/pkg-descr b/net/iwnet/pkg-descr new file mode 100644 index 000000000000..bdb60c4460e4 --- /dev/null +++ b/net/iwnet/pkg-descr @@ -0,0 +1,12 @@ +Pure C asynchronous HTTP framework with support for websockets, +client/server, TLS 1.2 (SSL), routing. + + - Fast asynchronous HTTP server (iwn_http_server.h) + - Web framework based on HTTP server (iwn_wf.h) + - Websocket client and server (iwn_ws_server.h, iwn_ws_client.h) + - Poller reactor (iwn_poller.h) + - SSL layer is based on BearSSL (iwn_brssl_poller_adapter.h) + - Manager of child processes (iwn_proc.h) + - Timer (iwn_scheduler.h) + +WWW: https://github.com/Softmotions/iwnet diff --git a/net/iwnet/pkg-plist b/net/iwnet/pkg-plist new file mode 100644 index 000000000000..25171f63f79a --- /dev/null +++ b/net/iwnet/pkg-plist @@ -0,0 +1,53 @@ +include/iwnet/base64.h +include/iwnet/bearssl.h +include/iwnet/bearssl_aead.h +include/iwnet/bearssl_block.h +include/iwnet/bearssl_ec.h +include/iwnet/bearssl_hash.h +include/iwnet/bearssl_hmac.h +include/iwnet/bearssl_kdf.h +include/iwnet/bearssl_pem.h +include/iwnet/bearssl_prf.h +include/iwnet/bearssl_rand.h +include/iwnet/bearssl_rsa.h +include/iwnet/bearssl_ssl.h +include/iwnet/bearssl_x509.h +include/iwnet/bre.h +include/iwnet/bre_asn1.h +include/iwnet/bre_base.h +include/iwnet/bre_base64.h +include/iwnet/bre_pkcs10.h +include/iwnet/bre_pool.h +include/iwnet/bre_utils.h +include/iwnet/brssl.h +include/iwnet/brssl_poller_adapter.h +include/iwnet/codec.h +include/iwnet/direct_poller_adapter.h +include/iwnet/http_server.h +include/iwnet/iwnet.h +include/iwnet/mimetypes.h +include/iwnet/pairs.h +include/iwnet/poller.h +include/iwnet/poller_adapter.h +include/iwnet/proc.h +include/iwnet/scheduler.h +include/iwnet/url.h +include/iwnet/utils.h +include/iwnet/wf.h +include/iwnet/wf_files.h +include/iwnet/wf_sst_inmem.h +include/iwnet/ws.h +include/iwnet/ws_client.h +include/iwnet/ws_server.h +include/iwnet/xcurl.h +lib/libiwnet-1.a +lib/libiwnet.so +lib/libiwnet.so.1 +lib/libiwnet.so.1.0.0 +%%PORTDOCS%%%%DOCSDIR%%/Changelog +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README +%%DATADIR%%/iwnet-exports-%%CMAKE_BUILD_TYPE%%.cmake +%%DATADIR%%/iwnet-exports.cmake +%%DATADIR%%/iwnet-static-exports-%%CMAKE_BUILD_TYPE%%.cmake +%%DATADIR%%/iwnet-static-exports.cmake