pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/libjwt



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Feb 21 16:20:50 UTC 2025

Modified Files:
        pkgsrc/security/libjwt: Makefile PLIST distinfo

Log Message:
libjwt: updated to 3.2.0

3.2.0
libcurl for jwks and other things

3.1.0
Windows Build and a few fixes + coverage

3.0.0
A new way
This is a major overhaul of LibJWT. The previous version was clumsy in that a jwt_t object could be used for creating a new token, or be the result of verifying. The ambiguity led to a lot of 
possible errors.

The key handling was not very well done and was confusing.

The new methods has a factory paradigm in that you create either a builder or checker object, configure it for your purposes, and then either generate tokens (builder) or verify tokens (checker) 
based on the rules you've established. This means you don't have to create an instance for every time you want to perform one of these actions.

One of the other new features is a complete JWK and JWKS backend for keys. It is now the only method with which you can load and use keys in LibJWT. There are command line tools for converting PEM 
type keys into JWK(S) JSON files (and back again).

There are also two convenient command line tools for generating and verifying JWT tokens.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/security/libjwt/Makefile \
    pkgsrc/security/libjwt/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/security/libjwt/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/libjwt/Makefile
diff -u pkgsrc/security/libjwt/Makefile:1.2 pkgsrc/security/libjwt/Makefile:1.3
--- pkgsrc/security/libjwt/Makefile:1.2 Wed Jan 29 18:17:24 2025
+++ pkgsrc/security/libjwt/Makefile     Fri Feb 21 16:20:50 2025
@@ -1,29 +1,37 @@
-# $NetBSD: Makefile,v 1.2 2025/01/29 18:17:24 adam Exp $
+# $NetBSD: Makefile,v 1.3 2025/02/21 16:20:50 adam Exp $
 
-DISTNAME=      libjwt-2.1.1
+DISTNAME=      libjwt-3.2.0
 CATEGORIES=    security
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=benmcollins/}
 GITHUB_RELEASE=        v${PKGVERSION_NOREV}
-EXTRACT_SUFX=  .tar.bz2
+EXTRACT_SUFX=  .tar.xz
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/benmcollins/libjwt
 COMMENT=       JWT C library
 LICENSE=       mpl-2.0
 
-EXTRACT_USING= gtar # Cannot restore extended attributes
+#EXTRACT_USING=        gtar # Cannot restore extended attributes
 
 USE_LANGUAGES=         c c++
-USE_LIBTOOL=           yes
-USE_TOOLS+=            gmake pkg-config
-GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --disable-doxygen-doc
-CONFIGURE_ARGS+=       --without-gnutls
-
-# cmake does not produce .pc file.
-#CMAKE_CONFIGURE_ARGS+=        -DBUILD_SHARED_LIBS=ON
-#.include "../../devel/cmake/build.mk"
-
+USE_TOOLS+=            bash:test pkg-config
+CMAKE_CONFIGURE_ARGS+= -DBUILD_SHARED_LIBS=ON
+CMAKE_CONFIGURE_ARGS+= -DWITH_GNUTLS=OFF
+
+TEST_ENV+=     LD_LIBRARY_PATH=${WRKSRC}/${CMAKE_BUILD_DIR}
+# For Darwin
+TEST_ENV+=     DYLD_LIBRARY_PATH=${WRKSRC}/${CMAKE_BUILD_DIR}
+TEST_TARGET=   test
+
+SUBST_CLASSES+=                bashpath
+SUBST_STAGE.bashpath=  pre-configure
+SUBST_MESSAGE.bashpath=        Fixing path to bash.
+SUBST_FILES.bashpath=  CMakeLists.txt
+SUBST_SED.bashpath=    -e 's,/bin/bash,${BASH},g'
+
+# for tests
+.include "../../devel/check/buildlink3.mk"
+.include "../../devel/cmake/build.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../textproc/jansson/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/security/libjwt/distinfo
diff -u pkgsrc/security/libjwt/distinfo:1.2 pkgsrc/security/libjwt/distinfo:1.3
--- pkgsrc/security/libjwt/distinfo:1.2 Wed Jan 29 18:17:24 2025
+++ pkgsrc/security/libjwt/distinfo     Fri Feb 21 16:20:50 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2025/01/29 18:17:24 adam Exp $
+$NetBSD: distinfo,v 1.3 2025/02/21 16:20:50 adam Exp $
 
-BLAKE2s (libjwt-2.1.1.tar.bz2) = 505522653b8d6fc21fd0694a4b378de5f54d700dc10c10bf3b8fa074f950f02f
-SHA512 (libjwt-2.1.1.tar.bz2) = c99b575febdc3c3d5467bfc0b384ead9d40042d3851c0dd87b8428af0b236d8cdaf625d9e7f4343b3b4caa3a70d7c6aa51b0746e1ec0dc7b01ca6c4582f14fe0
-Size (libjwt-2.1.1.tar.bz2) = 424656 bytes
+BLAKE2s (libjwt-3.2.0.tar.xz) = f87405f7b48cf9d41fbea388ab8c1c356b797eebfc9357306b7db9ded13a9080
+SHA512 (libjwt-3.2.0.tar.xz) = 2aeff8dbffa790097b921c8f6bd1349c316e23b71b99dbc8bbf05ece25e4aefd2cd02205416cd0ccef3f1b4a3601eac9d89103faeb8a6d9843b84a151e4366f1
+Size (libjwt-3.2.0.tar.xz) = 519244 bytes

Index: pkgsrc/security/libjwt/PLIST
diff -u pkgsrc/security/libjwt/PLIST:1.1 pkgsrc/security/libjwt/PLIST:1.2
--- pkgsrc/security/libjwt/PLIST:1.1    Fri Sep 13 19:35:15 2024
+++ pkgsrc/security/libjwt/PLIST        Fri Feb 21 16:20:50 2025
@@ -1,6 +1,16 @@
-@comment $NetBSD: PLIST,v 1.1 2024/09/13 19:35:15 adam Exp $
-bin/jwtauth
-bin/jwtgen
+@comment $NetBSD: PLIST,v 1.2 2025/02/21 16:20:50 adam Exp $
+bin/jwk2key
+bin/jwt-generate
+bin/jwt-verify
+bin/key2jwk
 include/jwt.h
-lib/libjwt.la
+include/jwt_export.h
+lib/cmake/LibJWT/LibJWTConfig-noconfig.cmake
+lib/cmake/LibJWT/LibJWTConfig.cmake
+lib/libjwt.a
+lib/libjwt.so
+lib/libjwt.so.14
+lib/libjwt.so.14.2.0
 lib/pkgconfig/libjwt.pc
+share/doc/LibJWT/LICENSE
+share/doc/LibJWT/README.md



Home | Main Index | Thread Index | Old Index