Skip to content

Commit

Permalink
security/rhonabwy: Update to 1.1.11
Browse files Browse the repository at this point in the history
- Update WWW
- Update version requirement of BUILD_DEPENDS
- Use USES=pathfix to fix .pc installation
- Use complete arguments/options
- Update pkg-descr
- Take maintainership

Changes:	https://github.com/babelouest/rhonabwy/releases
  • Loading branch information
sunpoet committed Jun 30, 2023
1 parent 83ba054 commit ccdf315
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 29 deletions.
32 changes: 19 additions & 13 deletions 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 <bsd.port.mk>
6 changes: 3 additions & 3 deletions 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
9 changes: 7 additions & 2 deletions 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}")
Expand Down
24 changes: 14 additions & 10 deletions 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.
3 changes: 2 additions & 1 deletion 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

0 comments on commit ccdf315

Please sign in to comment.