git: 6be39c0939a9 - main - www/libjwt: Update to 1.18.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 25 Dec 2024 19:18:42 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6be39c0939a99d78bb738630a877288457f34b33

commit 6be39c0939a99d78bb738630a877288457f34b33
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-12-25 18:46:59 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-12-25 19:15:08 +0000

    www/libjwt: Update to 1.18.3
    
    Changes:        https://github.com/benmcollins/libjwt/releases
---
 www/libjwt/Makefile            |  6 +++---
 www/libjwt/distinfo            |  6 +++---
 www/libjwt/files/patch-openssl | 13 +++++++++++++
 www/libjwt/pkg-plist           |  2 +-
 4 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/www/libjwt/Makefile b/www/libjwt/Makefile
index c289260aef34..e0d6a9036bde 100644
--- a/www/libjwt/Makefile
+++ b/www/libjwt/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	libjwt
-PORTVERSION=	1.17.2
-MASTER_SITES=	https://github.com/benmcollins/libjwt/releases/download/v${PORTVERSION}/
+PORTVERSION=	1.18.3
 CATEGORIES=	www
+MASTER_SITES=	https://github.com/benmcollins/libjwt/releases/download/v${PORTVERSION}/
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	JSON Web Token implementation in C
@@ -14,7 +14,7 @@ BUILD_DEPENDS=	jansson>=2.0:devel/jansson
 LIB_DEPENDS=	libjansson.so:devel/jansson
 TEST_DEPENDS=	check>=0.9.4:devel/check
 
-USES=		autoreconf gmake libtool pathfix pkgconfig ssl tar:bz2
+USES=		gmake libtool pathfix pkgconfig ssl tar:bz2
 
 CONFIGURE_ENV=	OPENSSL_CFLAGS="-I${OPENSSLINC}" \
 		OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
diff --git a/www/libjwt/distinfo b/www/libjwt/distinfo
index b31ef4d5a665..29700c5afc09 100644
--- a/www/libjwt/distinfo
+++ b/www/libjwt/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1721148486
-SHA256 (libjwt-1.17.2.tar.bz2) = f11c4544f61a31f105720b8329409fea009d6f9ef41c9361f98c2de48152eeae
-SIZE (libjwt-1.17.2.tar.bz2) = 419762
+TIMESTAMP = 1734888080
+SHA256 (libjwt-1.18.3.tar.bz2) = 7c582667fe3e6751897c8d9c1b4c8c117bbfa9067d8398524adb5dded671213e
+SIZE (libjwt-1.18.3.tar.bz2) = 418553
diff --git a/www/libjwt/files/patch-openssl b/www/libjwt/files/patch-openssl
new file mode 100644
index 000000000000..13d65a112c7d
--- /dev/null
+++ b/www/libjwt/files/patch-openssl
@@ -0,0 +1,13 @@
+--- libjwt/jwt-openssl.c.orig	2024-12-03 21:35:02 UTC
++++ libjwt/jwt-openssl.c
+@@ -160,8 +160,10 @@ static int jwt_degree_for_key(EVP_PKEY *pkey, jwt_t *j
+ 	char groupNameBuffer[24] = {0};
+ 	size_t groupNameBufferLen = 0;
+ 
++#if OPENSSL_VERSION_NUMBER >= 0x30000000L
+ 	if (!EVP_PKEY_get_group_name(pkey, groupNameBuffer, sizeof(groupNameBuffer), &groupNameBufferLen))
+ 		return -EINVAL;
++#endif
+ 
+ 	groupNameBuffer[groupNameBufferLen] = '\0';
+ 
diff --git a/www/libjwt/pkg-plist b/www/libjwt/pkg-plist
index 250e83694f30..08f3b58b8b17 100644
--- a/www/libjwt/pkg-plist
+++ b/www/libjwt/pkg-plist
@@ -4,5 +4,5 @@ include/jwt.h
 lib/libjwt.a
 lib/libjwt.so
 lib/libjwt.so.2
-lib/libjwt.so.2.10.2
+lib/libjwt.so.2.10.6
 libdata/pkgconfig/libjwt.pc