From nobody Fri Jul 08 22:00:58 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 DFC7117D52FD; Fri, 8 Jul 2022 22:00:58 +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 4LfnKQ64vQz3p8D; Fri, 8 Jul 2022 22:00:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657317658; 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=xQM/f7tppsNtgqWsaxk+MUBuDIPK5a/aIrrIe6//Ji4=; b=WqNv3JsG5jjlnGRNJvcKcKuTJ0HLsxBf81qbyn9UtuTIlJE4YLBtLcdhbeg6NlhgfcNRu3 xK4CkmLeCgTqqLUhP3K5V79t7wQBJ/TCYdmxnaZ5hsXUFb/HHwMJQzhSRA4Q/qTlvb1SdU 49Y4VJM0okjTKOgMDf+A0Rlch6oObmlgoKQ0pV+loGG7/OBDCEpL3CeqnuqaD8yBmkcMmW m4nyeLvyAdW9diwKxBihX/r9/Z1brxbAHcGpsiCpNaWwqDp0WoqChi2HajEuEckLl6LHz3 VGPnz5TwR+Fz9aEVsfG+cOMPJaeXvKNpKGDv+aHxkKDhMhBHzugeEQ3GuTcy1A== 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 4LfnKQ57rDzMRc; Fri, 8 Jul 2022 22:00:58 +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 268M0wBO025408; Fri, 8 Jul 2022 22:00:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 268M0whK025407; Fri, 8 Jul 2022 22:00:58 GMT (envelope-from git) Date: Fri, 8 Jul 2022 22:00:58 GMT Message-Id: <202207082200.268M0whK025407@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dan Langille Subject: git: c9befd7a40c5 - main - security/rhonabwy: New port: JOSE library 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: dvl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c9befd7a40c568474b1ff4d6b5b2a3da89a81435 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657317658; 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=xQM/f7tppsNtgqWsaxk+MUBuDIPK5a/aIrrIe6//Ji4=; b=avaS/+Uz981eF7qHCllBPv0+PVJzPSp3uGlsL7oe/56XsBfliJ0COYTNW7yle1lp8PaO3f gGXgswnJv6LTvrS3GSMCbKFFm7XeNAfF1Yy9O3e6TtNUGR5BTcArZsMctnokdxcASuE98Q VUI/H1XLJdDV6udgkqY5HXu7xHWJNaJ1trBhWVNowWiJ3j5Wy7oEQ1Mq0PxKw3xKsqqT+Q 0RDhOonB5ZHxTE+4Wv9aNB/k+04WQHMjA2ILxAE2JDF+w9DxvnYQbMMazavDDWW8XpdD7N bZCAEInv4Rr73uPBCFopa7Ol3Fd8M1CAQ5P4iWOQjp4kcf5H/MYEQ4hoBOP5JQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657317658; a=rsa-sha256; cv=none; b=m2to9B5CQp9rWdzBLjfQh5W6Qf7tB2VFJANef1vpk+bta/4ih3AXpmIRN0QtFwr61kQzOb DkM44EXUzC4Jy3MONMjoxGPmjeOhvVrd39EKl/frG+RDxYinEgDfjvB3bFxi1YEFvk+VhV B5T7mcMN97PE1o9gOLvfTVLdGgMF+wcn2Wc81HSm+ql4h83SHCa7wTAcquVUc+2t8zdgjb RNJ2DTXRAx+y+EDPm2Kd0im+eDzPXVm0eob9tTDdJ0vt0wA1IS/IHYxOhUGHasXx1jRx9g mrzs9LhX9Ee/jGzpqhhV1MEXrz4wRnlYJ33O2IZBXMLE30BJWO+h4FH66n9ACg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=c9befd7a40c568474b1ff4d6b5b2a3da89a81435 commit c9befd7a40c568474b1ff4d6b5b2a3da89a81435 Author: Dan Langille AuthorDate: 2022-07-08 21:44:00 +0000 Commit: Dan Langille CommitDate: 2022-07-08 21:57:00 +0000 security/rhonabwy: New port: JOSE library Javascript Object Signing and Encryption (JOSE) library - JWK, JWKS, JWS, JWE and JWT --- security/Makefile | 1 + security/rhonabwy/Makefile | 31 ++++++++++++++++++++++ security/rhonabwy/distinfo | 3 +++ security/rhonabwy/files/patch-CMakeLists.txt | 11 ++++++++ .../files/patch-cmake-modules_FindNettle.cmake | 20 ++++++++++++++ security/rhonabwy/pkg-descr | 20 ++++++++++++++ security/rhonabwy/pkg-plist | 8 ++++++ 7 files changed, 94 insertions(+) diff --git a/security/Makefile b/security/Makefile index e14d8c87039d..3250fdf9b357 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1009,6 +1009,7 @@ SUBDIR += rcracki_mt SUBDIR += reop SUBDIR += rhash + SUBDIR += rhonabwy SUBDIR += ridl SUBDIR += rifiuti2 SUBDIR += rkhunter diff --git a/security/rhonabwy/Makefile b/security/rhonabwy/Makefile new file mode 100644 index 000000000000..1139e6af296c --- /dev/null +++ b/security/rhonabwy/Makefile @@ -0,0 +1,31 @@ +PORTNAME= rhonabwy +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.6 +CATEGORIES= security + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Javascript Object Signing and Encryption (JOSE) library + +LICENSE= LGPL21 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= yder>1.4.14:devel/yder \ + orcania>2.2.1:devel/orcania \ + gnutls>0:security/gnutls + +LIB_DEPENDS= libcurl.so:ftp/curl \ + libgmp.so:math/gmp \ + libnettle.so:security/nettle \ + libjansson.so:devel/jansson \ + libgnutls.so:security/gnutls \ + liborcania.so:devel/orcania \ + libyder.so:devel/yder + +USES= cmake + +USE_GITHUB= yes +GH_ACCOUNT= babelouest + +CMAKE_ARGS= -DWITH_JOURNALD=off + +.include diff --git a/security/rhonabwy/distinfo b/security/rhonabwy/distinfo new file mode 100644 index 000000000000..e17bc19ee36f --- /dev/null +++ b/security/rhonabwy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1657299018 +SHA256 (babelouest-rhonabwy-v1.1.6_GH0.tar.gz) = 45620a9532104687d7c778b0c8b2390b8c0e5c82c8d8d491937d43063a1dec77 +SIZE (babelouest-rhonabwy-v1.1.6_GH0.tar.gz) = 379922 diff --git a/security/rhonabwy/files/patch-CMakeLists.txt b/security/rhonabwy/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..81ac445f6200 --- /dev/null +++ b/security/rhonabwy/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-07-08 18:38:40 UTC ++++ CMakeLists.txt +@@ -171,7 +171,7 @@ set_target_properties(rhonabwy PROPERTIES + PUBLIC_HEADER "${INC_DIR}/rhonabwy.h;${PROJECT_BINARY_DIR}/rhonabwy-cfg.h" + VERSION "${LIBRARY_VERSION}" + SOVERSION "${LIBRARY_SOVERSION}") +-target_link_libraries(rhonabwy ${LIBS}) ++target_link_libraries(rhonabwy ${LIBS} -L${CMAKE_INSTALL_PREFIX}/lib -lgmp) + + set(SEARCH_ORCANIA OFF CACHE BOOL "Force to false") # Avoid to search and download orcania during yder search and download + set(SEARCH_ORCANIA_U OFF CACHE BOOL "Force to false") # Avoid to search and download orcania during ulfius search and download diff --git a/security/rhonabwy/files/patch-cmake-modules_FindNettle.cmake b/security/rhonabwy/files/patch-cmake-modules_FindNettle.cmake new file mode 100644 index 000000000000..33c156878dea --- /dev/null +++ b/security/rhonabwy/files/patch-cmake-modules_FindNettle.cmake @@ -0,0 +1,20 @@ +--- cmake-modules/FindNettle.cmake.orig 2022-07-08 18:30:56 UTC ++++ cmake-modules/FindNettle.cmake +@@ -40,12 +40,16 @@ find_library(NETTLE_LIBRARY + NAMES nettle libnettle + HINTS ${PC_NETTLE_LIBDIR} ${PC_NETTLE_LIBRARY_DIRS}) + ++find_library(HOGWEED_LIBRARY ++ NAMES hogweed libhogweed ++ HINTS ${PC_NETTLE_LIBDIR} ${PC_NETTLE_LIBRARY_DIRS}) ++ + include(FindPackageHandleStandardArgs) + find_package_handle_standard_args(Nettle + REQUIRED_VARS NETTLE_LIBRARY NETTLE_INCLUDE_DIR) + + if (NETTLE_FOUND) +- set(NETTLE_LIBRARIES ${NETTLE_LIBRARY}) ++ set(NETTLE_LIBRARIES ${NETTLE_LIBRARY} ${HOGWEED_LIBRARY}) + set(NETTLE_INCLUDE_DIRS ${NETTLE_INCLUDE_DIR}) + endif () + diff --git a/security/rhonabwy/pkg-descr b/security/rhonabwy/pkg-descr new file mode 100644 index 000000000000..babf5073afe9 --- /dev/null +++ b/security/rhonabwy/pkg-descr @@ -0,0 +1,20 @@ +Single-Sign-On (SSO) server with multiple factor authentication. + +Authentication processes supported: + +* OAuth2 +* OpenID Connect +* Allows users to authenticate via multiple factors: + +Password +* One-time password (TOTP/HOTP) +* Webauthn (Yubikey, Android devices) +* One-time password sent via e-mail +* TLS Certificate +* Users and clients can be stored and managed from various backends: + +Database +* LDAP service +* HTTP Backend service providing Basic Authentication + +WWW: https://github.com/babelouest/glewlwyd diff --git a/security/rhonabwy/pkg-plist b/security/rhonabwy/pkg-plist new file mode 100644 index 000000000000..b68d879e9149 --- /dev/null +++ b/security/rhonabwy/pkg-plist @@ -0,0 +1,8 @@ +bin/rnbyc +include/rhonabwy-cfg.h +include/rhonabwy.h +lib/librhonabwy.so +lib/librhonabwy.so.1.1 +lib/librhonabwy.so.1.1.6 +libdata/pkgconfig/librhonabwy.pc +share/man/man1/rnbyc.1.gz