diff --git a/security/rhonabwy/Makefile b/security/rhonabwy/Makefile index 59aa8c6cb943e..3889a27c55801 100644 --- a/security/rhonabwy/Makefile +++ b/security/rhonabwy/Makefile @@ -1,34 +1,40 @@ PORTNAME= rhonabwy +PORTVERSION= 1.1.11 DISTVERSIONPREFIX= v -DISTVERSION= 1.1.9 CATEGORIES= security -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunpoet@FreeBSD.org COMMENT= Javascript Object Signing and Encryption (JOSE) library -WWW= https://github.com/babelouest/rhonabwy +WWW= https://babelouest.github.io/rhonabwy/ \ + https://github.com/babelouest/rhonabwy LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= yder>1.4.14:devel/yder \ - orcania>2.2.1:devel/orcania \ - gnutls>0:security/gnutls - +BUILD_DEPENDS= jansson>=2.4:devel/jansson \ + orcania>=2.3.2:devel/orcania \ + ulfius>=2.7.13:www/ulfius \ + yder>=1.4.19:devel/yder LIB_DEPENDS= libcurl.so:ftp/curl \ libgmp.so:math/gmp \ - libnettle.so:security/nettle \ - libjansson.so:devel/jansson \ libgnutls.so:security/gnutls \ + libjansson.so:devel/jansson \ + libnettle.so:security/nettle \ liborcania.so:devel/orcania \ + libulfius.so:www/ulfius \ libyder.so:devel/yder -USES= cmake +USES= cmake pathfix pkgconfig + +CMAKE_OFF= BUILD_RHONABWY_DOCUMENTATION BUILD_RHONABWY_TESTING BUILD_RPM DOWNLOAD_DEPENDENCIES +CMAKE_ON= BUILD_RNBYC BUILD_STATIC INSTALL_HEADER SEARCH_ORCANIA_R SEARCH_YDER_R WITH_CURL WITH_ULFIUS + +PLIST_SUB= PORTVERSION=${PORTVERSION} USE_GITHUB= yes GH_ACCOUNT= babelouest -PLIST_SUB= DISTVERSION=${DISTVERSION} - -CMAKE_ARGS= -DWITH_JOURNALD=off +post-install: + ${INSTALL_DATA} ${INSTALL_WRKSRC}/librhonabwy.a ${STAGEDIR}${PREFIX}/lib/ .include diff --git a/security/rhonabwy/distinfo b/security/rhonabwy/distinfo index 4da3403e0a901..3dd3da607a9ec 100644 --- a/security/rhonabwy/distinfo +++ b/security/rhonabwy/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1670088829 -SHA256 (babelouest-rhonabwy-v1.1.9_GH0.tar.gz) = 57c5b67c8826e8071b9a93ec96303fa58749964dc056574d65a5e6035ffde278 -SIZE (babelouest-rhonabwy-v1.1.9_GH0.tar.gz) = 401523 +TIMESTAMP = 1686496692 +SHA256 (babelouest-rhonabwy-v1.1.11_GH0.tar.gz) = 78021d176615a48477927eae9cad404760d345c70b62b86e5620eb9f80969d2e +SIZE (babelouest-rhonabwy-v1.1.11_GH0.tar.gz) = 382916 diff --git a/security/rhonabwy/files/patch-CMakeLists.txt b/security/rhonabwy/files/patch-CMakeLists.txt index 81ac445f62000..d5037798ade4a 100644 --- a/security/rhonabwy/files/patch-CMakeLists.txt +++ b/security/rhonabwy/files/patch-CMakeLists.txt @@ -1,6 +1,11 @@ ---- CMakeLists.txt.orig 2022-07-08 18:38:40 UTC +--- CMakeLists.txt.orig 2023-02-08 14:06:47 UTC +++ CMakeLists.txt -@@ -171,7 +171,7 @@ set_target_properties(rhonabwy PROPERTIES +@@ -167,11 +167,11 @@ endif () + + add_library(rhonabwy SHARED ${LIB_SRC}) + set_target_properties(rhonabwy PROPERTIES +- COMPILE_OPTIONS "-Wextra;-Wconversion" ++ COMPILE_OPTIONS "-Wextra;-Wconversion;-Wno-sign-conversion;-Wno-unknown-warning-option" PUBLIC_HEADER "${INC_DIR}/rhonabwy.h;${PROJECT_BINARY_DIR}/rhonabwy-cfg.h" VERSION "${LIBRARY_VERSION}" SOVERSION "${LIBRARY_SOVERSION}") diff --git a/security/rhonabwy/files/patch-cmake-modules_FindNettle.cmake b/security/rhonabwy/files/patch-cmake-modules-FindNettle.cmake similarity index 100% rename from security/rhonabwy/files/patch-cmake-modules_FindNettle.cmake rename to security/rhonabwy/files/patch-cmake-modules-FindNettle.cmake diff --git a/security/rhonabwy/pkg-descr b/security/rhonabwy/pkg-descr index 8d6ea6a7ae4b1..a7ad8e2490108 100644 --- a/security/rhonabwy/pkg-descr +++ b/security/rhonabwy/pkg-descr @@ -1,12 +1,16 @@ -Javascript Object Signing and Encryption (JOSE) library - JWK, JWKS, JWS, JWE -and JWT +Rhonabwy library is made to manage JWK, JWKS, JWS, JWE and JWT according to +their respective RFCs: +- JSON Web Keys (JWK) and JSON Web Keys Set (JWKS) +- JSON Web Signatures (JWS) +- JSON Web Encryption (JWE) +- JSON Web Token (JWT) -* Create, modify, parse, import or export JSON Web Keys (JWK) and - JSON Web Keys Set (JWKS) -* Create, modify, parse, validate or serialize JSON Web Signatures (JWS) -* Create, modify, parse, validate or serialize JSON Web Encryption (JWE) -* Create, modify, parse, validate or serialize JSON Web Token (JWT) +Rhonabwy is based on the following libraries and actively uses them: +- GnuTLS for the cryptographic functions +- Jansson for the JSON manipulation +- Yder for the logs +- Libcurl when it requires to retrieve keys from an URL -JWT Relies on JWS and JWE functions, so it supports the same functionalities as -the other 2. JWT functionalities also support nesting serialization (JWE nested -in a JWS or the opposite). +When relevant, a function can accept or return GnuTLS or Jansson data. But if +you're not using those in your application and prefer raw data, you can use the +more agnostic functions. diff --git a/security/rhonabwy/pkg-plist b/security/rhonabwy/pkg-plist index e8d03fd49fe63..b32f616755a0d 100644 --- a/security/rhonabwy/pkg-plist +++ b/security/rhonabwy/pkg-plist @@ -1,8 +1,9 @@ bin/rnbyc include/rhonabwy-cfg.h include/rhonabwy.h +lib/librhonabwy.a lib/librhonabwy.so lib/librhonabwy.so.1.1 -lib/librhonabwy.so.%%DISTVERSION%% +lib/librhonabwy.so.%%PORTVERSION%% libdata/pkgconfig/librhonabwy.pc share/man/man1/rnbyc.1.gz