mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 17:04:32 +04:00
mox-pkcs11: add new package
Library for using built-in ECDSA key in devices based on Turris MOX for PKCS11 authentication Signed-off-by: Tomáš Macholda <tomas.macholda@nic.cz>
This commit is contained in:
committed by
Josef Schlehofer
parent
a050b08db2
commit
124596c317
51
utils/mox-pkcs11/Makefile
Normal file
51
utils/mox-pkcs11/Makefile
Normal file
@@ -0,0 +1,51 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
# Copyright (C) 2020, 2025 CZ.NIC z.s.p.o. (https://www.nic.cz/)
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=mox-pkcs11
|
||||
PKG_VERSION:=2.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://gitlab.nic.cz/turris/mox-pkcs11.git
|
||||
PKG_MIRROR_HASH:=424b5247288310c6a71b7babed201dc153c58fca73241530254d2cbc84f1b4ef
|
||||
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
||||
|
||||
PKG_MAINTAINER:=Tomáš Macholda <tomas.macholda@nic.cz>
|
||||
PKG_LICENSE:=GPL-3.0-or-later
|
||||
PKG_LICENSE_FILES:=LICENSE.txt
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/mox-pkcs11
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=MOX PKCS11 module
|
||||
DEPENDS:=@(TARGET_mvebu_cortexa53_DEVICE_ripe_atlas-v5||TARGET_mvebu_cortexa53_DEVICE_cznic_turris-mox) +libopenssl +libkeyutils
|
||||
URL:=https://gitlab.nic.cz/turris/mox-pkcs11
|
||||
endef
|
||||
|
||||
define Package/mox-pkcs11/description
|
||||
PKCS#11 module that provides access to Turris MOX internal ECDSA key
|
||||
for cryptographic operations.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(TARGET_CC) \
|
||||
$(TARGET_CFLAGS) \
|
||||
$(TARGET_LDFLAGS) \
|
||||
$(FPIC) \
|
||||
-o $(PKG_BUILD_DIR)/libmox-pkcs11.so $(PKG_BUILD_DIR)/mox-pkcs11.c
|
||||
-lcrypto \
|
||||
-lkeyutils \
|
||||
-Wall \
|
||||
-shared
|
||||
endef
|
||||
|
||||
define Package/mox-pkcs11/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/pkcs11/
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/libmox-pkcs11.so $(1)/usr/lib/pkcs11/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,mox-pkcs11))
|
||||
Reference in New Issue
Block a user