git: 983e31f6e844 - main - www/libjwt: Update to 2.1.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 Dec 2024 16:00:50 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=983e31f6e844833c5d1b3c9dfecc011a530d753c
commit 983e31f6e844833c5d1b3c9dfecc011a530d753c
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-12-31 15:47:22 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-12-31 15:47:22 +0000
www/libjwt: Update to 2.1.1
- Add GNUTLS option
Changes: https://github.com/benmcollins/libjwt/releases
---
www/libjwt/Makefile | 17 ++++++++++++++++-
www/libjwt/distinfo | 6 +++---
www/libjwt/files/patch-openssl | 13 -------------
www/libjwt/pkg-plist | 2 +-
4 files changed, 20 insertions(+), 18 deletions(-)
diff --git a/www/libjwt/Makefile b/www/libjwt/Makefile
index e0d6a9036bde..3a84bf3cc48e 100644
--- a/www/libjwt/Makefile
+++ b/www/libjwt/Makefile
@@ -1,5 +1,5 @@
PORTNAME= libjwt
-PORTVERSION= 1.18.3
+PORTVERSION= 2.1.1
CATEGORIES= www
MASTER_SITES= https://github.com/benmcollins/libjwt/releases/download/v${PORTVERSION}/
@@ -16,6 +16,16 @@ TEST_DEPENDS= check>=0.9.4:devel/check
USES= gmake libtool pathfix pkgconfig ssl tar:bz2
+CONFIGURE_ARGS= --disable-doxygen-chi \
+ --disable-doxygen-chm \
+ --disable-doxygen-doc \
+ --disable-doxygen-dot \
+ --disable-doxygen-html \
+ --disable-doxygen-man \
+ --disable-doxygen-pdf \
+ --disable-doxygen-ps \
+ --disable-doxygen-rtf \
+ --disable-doxygen-xml
CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl"
GNU_CONFIGURE= yes
@@ -24,4 +34,9 @@ TEST_ARGS= CFLAGS+=-I${LOCALBASE}/include LIBS+="-L${LOCALBASE}/lib -lcheck"
TEST_TARGET= check
USE_LDCONFIG= yes
+OPTIONS_DEFINE= GNUTLS
+
+GNUTLS_CONFIGURE_WITH= gnutls
+GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
+
.include <bsd.port.mk>
diff --git a/www/libjwt/distinfo b/www/libjwt/distinfo
index 29700c5afc09..edfdc197114c 100644
--- a/www/libjwt/distinfo
+++ b/www/libjwt/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1734888080
-SHA256 (libjwt-1.18.3.tar.bz2) = 7c582667fe3e6751897c8d9c1b4c8c117bbfa9067d8398524adb5dded671213e
-SIZE (libjwt-1.18.3.tar.bz2) = 418553
+TIMESTAMP = 1735227808
+SHA256 (libjwt-2.1.1.tar.bz2) = e50e7d88a5a6f04e3dbaffca5218869b7a14a26d8ecc9c791df858a1442a04d7
+SIZE (libjwt-2.1.1.tar.bz2) = 424656
diff --git a/www/libjwt/files/patch-openssl b/www/libjwt/files/patch-openssl
deleted file mode 100644
index 13d65a112c7d..000000000000
--- a/www/libjwt/files/patch-openssl
+++ /dev/null
@@ -1,13 +0,0 @@
---- 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 08f3b58b8b17..7e170208be0c 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.6
+lib/libjwt.so.2.11.2
libdata/pkgconfig/libjwt.pc