Files
Daniel Golle 523e9e5df8 libp11: update to 0.4.18
Changes since 0.4.16:

0.4.18 (2026-02-16):
 * Support for RSA-PSS and RSA-OAEP using keys retrieved using the
   PKCS11_get_private_key() libp11 API and the PKCS#11 provider.
 * Improved test coverage.

0.4.17 (2026-02-01):
 * Ed25519 and Ed448 support (PKCS#11 v3.2).
 * Fixed OPENSSL_NO_EC builds.
 * Reverted RSA public exponent change from PR #474.
 * Fixed crash on module initialization failures.
 * Ignoring trailing newlines in pin-source files.
 * Initial build fixes for the upcoming OpenSSL 4.x.

Drop the now obsolete 001-fix-install.patch which has been merged
upstream.

Link: https://github.com/OpenSC/libp11/blob/libp11-0.4.18/NEWS
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-05-09 19:13:24 +03:00

63 lines
1.8 KiB
Makefile

#
# Copyright (C) 2011-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libp11
PKG_VERSION:=0.4.18
PKG_RELEASE:=1
PKG_SOURCE_URL:=https://github.com/OpenSC/libp11/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_HASH:=9292de67ca73aba1deacf577c9086b595765f36ef47712cfeb49fa31f6e772fb
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING
PKG_BUILD_PARALLEL:=1
PKG_FIXUP:=libtool
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/libp11
SECTION:=libs
CATEGORY:=Libraries
TITLE:=PKCS#11 wrapper library
URL:=https://www.opensc-project.org/opensc/wiki/libp11
DEPENDS:=+libopenssl +@OPENSSL_ENGINE
CONFLICTS:=engine_pkcs11
endef
define Package/libp11/description
Libp11 is a library implementing a small layer on top of PKCS#11 API
to make using PKCS#11 implementations easier.
endef
CONFIGURE_ARGS += --with-enginesdir=/usr/lib/engines
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.{a,so} $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libp11.pc $(1)/usr/lib/pkgconfig/libp11.pc
endef
define Package/libp11/install
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11.so.* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/engines
$(CP) $(PKG_INSTALL_DIR)/usr/lib/engines/*.so* $(1)/usr/lib/engines
$(LN) pkcs11.so $(1)/usr/lib/engines/libpkcs11.so
endef
$(eval $(call BuildPackage,libp11))