Date: Tue, 12 May 2026 09:31:31 +0000 From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: a162a4382a60 - main - www/libjwt3: Add libjwt3 3.3.3 Message-ID: <6a02f373.37de0.45c8f228@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=a162a4382a60493365fd197af39f3660e016ede5 commit a162a4382a60493365fd197af39f3660e016ede5 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2026-05-12 09:07:32 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2026-05-12 09:31:05 +0000 www/libjwt3: Add libjwt3 3.3.3 The C implementation of JSON Web Tokens. --- www/Makefile | 1 + www/libjwt3/Makefile | 44 ++++++++++++++++++++++++++++++++++ www/libjwt3/distinfo | 3 +++ www/libjwt3/files/patch-CMakeLists.txt | 20 ++++++++++++++++ www/libjwt3/pkg-descr | 1 + www/libjwt3/pkg-plist | 19 +++++++++++++++ 6 files changed, 88 insertions(+) diff --git a/www/Makefile b/www/Makefile index 75fd042773f0..33de889da12d 100644 --- a/www/Makefile +++ b/www/Makefile @@ -339,6 +339,7 @@ SUBDIR += libhsts SUBDIR += libhubbub SUBDIR += libjwt + SUBDIR += libjwt3 SUBDIR += libmicrohttpd SUBDIR += libnghttp2 SUBDIR += libnghttp3 diff --git a/www/libjwt3/Makefile b/www/libjwt3/Makefile new file mode 100644 index 000000000000..dfa320514709 --- /dev/null +++ b/www/libjwt3/Makefile @@ -0,0 +1,44 @@ +PORTNAME= libjwt +PORTVERSION= 3.3.3 +CATEGORIES= www +MASTER_SITES= https://github.com/benmcollins/libjwt/releases/download/v${PORTVERSION}/ +PKGNAMESUFFIX= 3 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= JSON Web Token implementation in C +WWW= https://libjwt.io/ \ + https://github.com/benmcollins/libjwt + +LICENSE= MPL20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= bash>=0:shells/bash +LIB_DEPENDS= libjansson.so:devel/jansson + +USES= cmake pkgconfig ssl tar:xz + +CMAKE_OFF= CODE_COVERAGE_VERBOSE \ + ENABLE_COVERAGE \ + WITH_JSON_C \ + WITH_KCAPI_MD \ + WITH_MBEDTLS \ + WITH_TESTS +CMAKE_ON= EXCLUDE_DEPRECATED +USE_LDCONFIG= yes + +DOCSDIR= ${PREFIX}/share/doc/LibJWT + +CONFLICTS_INSTALL= libjwt + +OPTIONS_DEFINE= CURL DOCS GNUTLS +CURL_DESC= Retrieve JWKS via cURL + +CURL_CMAKE_BOOL= WITH_LIBCURL +CURL_LIB_DEPENDS= libcurl.so:ftp/curl +GNUTLS_CMAKE_BOOL= WITH_GNUTLS +GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls + +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/CMakeLists.txt + +.include <bsd.port.mk> diff --git a/www/libjwt3/distinfo b/www/libjwt3/distinfo new file mode 100644 index 000000000000..4007df202a4f --- /dev/null +++ b/www/libjwt3/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1778385550 +SHA256 (libjwt-3.3.3.tar.xz) = 88d56f428d186cf1af180f52b841ea348c6b4f1d1f0fbd3e75df8f1bd076df64 +SIZE (libjwt-3.3.3.tar.xz) = 531688 diff --git a/www/libjwt3/files/patch-CMakeLists.txt b/www/libjwt3/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..e2b1c0ec4077 --- /dev/null +++ b/www/libjwt3/files/patch-CMakeLists.txt @@ -0,0 +1,20 @@ +--- CMakeLists.txt.orig 2026-04-21 16:36:20 UTC ++++ CMakeLists.txt +@@ -312,7 +312,7 @@ function(jwt_add_test) + ${CMAKE_BINARY_DIR}/tests) + + target_link_libraries(${LibTest_NAME} PRIVATE PkgConfig::CHECK) +- add_test(NAME ${LibTest_NAME} COMMAND /bin/bash -c ++ add_test(NAME ${LibTest_NAME} COMMAND %%LOCALBASE%%/bin/bash -c + "export TEST=${LibTest_NAME}; . ${CMAKE_SOURCE_DIR}/tests/test-env.sh; exec ${CMAKE_BINARY_DIR}/tests/${LibTest_NAME}") + endfunction() + +@@ -339,7 +339,7 @@ if (CHECK_FOUND) + endforeach() + + if (BATS_CMD) +- add_test(NAME jwt_cli COMMAND /bin/bash -c ++ add_test(NAME jwt_cli COMMAND %%LOCALBASE%%/bin/bash -c + "export SRCDIR=\"${CMAKE_SOURCE_DIR}\"; \"${CMAKE_SOURCE_DIR}\"/tests/jwt-cli.bats") + endif() + diff --git a/www/libjwt3/pkg-descr b/www/libjwt3/pkg-descr new file mode 100644 index 000000000000..10ee57816b1c --- /dev/null +++ b/www/libjwt3/pkg-descr @@ -0,0 +1 @@ +The C implementation of JSON Web Tokens. diff --git a/www/libjwt3/pkg-plist b/www/libjwt3/pkg-plist new file mode 100644 index 000000000000..e35550a21c85 --- /dev/null +++ b/www/libjwt3/pkg-plist @@ -0,0 +1,19 @@ +bin/jwk2key +bin/jwt-generate +bin/jwt-verify +bin/key2jwk +include/jwt.h +include/jwt_export.h +lib/cmake/LibJWT/LibJWTConfig-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/LibJWT/LibJWTConfig.cmake +lib/libjwt.a +lib/libjwt.so +lib/libjwt.so.14 +lib/libjwt.so.14.2.7 +libdata/pkgconfig/libjwt.pc +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README.md +share/man/man1/jwk2key.1.gz +share/man/man1/jwt-generate.1.gz +share/man/man1/jwt-verify.1.gz +share/man/man1/key2jwk.1.gzhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a02f373.37de0.45c8f228>
