package/libjwt: new package

JSON Web Tokens are an open, industry standard RFC 7519
method for representing claims securely between two parties.

This Library is used by Asterisk 20.6.0 and newer.
We need to use autotools to install pkgconfig file.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
[Peter: drop _SOURCE, add host-pkgconf, add to DEVELOPERS]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Waldemar Brodkorb 2024-02-02 16:56:14 +01:00 committed by Peter Korsgaard
parent 62a5510c21
commit 7251775773
5 changed files with 29 additions and 0 deletions

View File

@ -3116,6 +3116,7 @@ F: package/ngrep/
N: Waldemar Brodkorb <wbx@openadk.org>
F: package/asterisk/
F: package/libjwt/
F: package/mksh/
F: package/ruby/
F: package/uclibc/

View File

@ -1846,6 +1846,7 @@ menu "JSON/XML"
source "package/libbson/Config.in"
source "package/libfastjson/Config.in"
source "package/libjson/Config.in"
source "package/libjwt/Config.in"
source "package/libroxml/Config.in"
source "package/libucl/Config.in"
source "package/libxml2/Config.in"

9
package/libjwt/Config.in Normal file
View File

@ -0,0 +1,9 @@
config BR2_PACKAGE_LIBJWT
bool "libjwt"
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_JANSSON
help
JSON Web Tokens are an open, industry standard RFC 7519
method for representing claims securely between two parties.
https://github.com/benmcollins/libjwt

View File

@ -0,0 +1,3 @@
# Locally computed
sha256 cb2fd95123689e7d209a3a8c060e02f68341c9a5ded524c0cd881a8cd20d711f libjwt-1.15.3.tar.gz
sha256 fab3dd6bdab226f1c08630b1dd917e11fcb4ec5e1e020e2c16f83a0a13863e85 LICENSE

15
package/libjwt/libjwt.mk Normal file
View File

@ -0,0 +1,15 @@
################################################################################
#
# libjwt
#
################################################################################
LIBJWT_VERSION = 1.15.3
LIBJWT_SITE = $(call github,benmcollins,libjwt,v$(LIBJWT_VERSION))
LIBJWT_DEPENDENCIES = host-pkgconf jansson openssl
LIBJWT_AUTORECONF = YES
LIBJWT_INSTALL_STAGING = YES
LIBJWT_LICENSE = MPL-2.0
LIBJWT_LICENSE_FILES = LICENSE
$(eval $(autotools-package))