mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
166f65ec92
Major version jump from 1.17.1 to 3.3.2. libjwt 3.x is a substantial rewrite: * New backend abstraction supporting OpenSSL, GnuTLS and MbedTLS crypto libraries (selected at build time). * New JWK and JWKS APIs for key handling with full RFC 7517 support. * Improved error handling and reporting. * EdDSA signature support (Ed25519, Ed448). * Optional libcurl integration for fetching JWKS from a URL. * Many API additions while keeping backwards-compatible semantics for the most common HMAC/RSA/ECDSA operations. Force OpenSSL backend (-DWITH_GNUTLS=OFF -DWITH_MBEDTLS=OFF) since libopenssl is already a dependency, avoiding pulling in libgnutls. Disable -DWITH_TESTS=OFF since the testsuite is not relevant for embedded targets. Link: https://github.com/benmcollins/libjwt/releases/tag/v3.3.2 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libjwt
|
|
PKG_VERSION:=3.3.2
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/benmcollins/libjwt/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=d1b16df8e7484d1856c21f770c6317cee3881c435a563160be76cf29d3142c8c
|
|
|
|
PKG_LICENSE:=MPL-2.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DWITH_GNUTLS=OFF \
|
|
-DWITH_MBEDTLS=OFF \
|
|
-DWITH_TESTS=OFF
|
|
CMAKE_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/libjwt
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=libjwt
|
|
URL:=https://github.com/benmcollins/libjwt
|
|
DEPENDS:=+libopenssl +jansson
|
|
ABI_VERSION:=0
|
|
endef
|
|
|
|
define Package/libjwt/description
|
|
JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.
|
|
libjwt seems to be the most popular implementation written in C.
|
|
endef
|
|
|
|
|
|
define Package/libjwt/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjwt.so* $(1)/usr/lib/
|
|
$(LN) libjwt.so.0 $(1)/usr/lib/libjwt.so
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libjwt))
|