package/softhsm2: new package

The patch adds a package for softhsm2.

Signed-off-by: José Pekkarinen <jose.pekkarinen@unikie.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
José Pekkarinen 2021-10-25 11:19:55 +03:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 15a7be2c12
commit 53873b6dae
5 changed files with 41 additions and 0 deletions

View File

@ -1443,6 +1443,9 @@ N: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
F: package/zfs/ F: package/zfs/
F: support/testing/tests/package/test_zfs.py F: support/testing/tests/package/test_zfs.py
N: José Pekkarinen <jose.pekkarinen@unikie.com>
F: package/softhsm2/
N: Joseph Kogut <joseph.kogut@gmail.com> N: Joseph Kogut <joseph.kogut@gmail.com>
F: package/at-spi2-atk/ F: package/at-spi2-atk/
F: package/at-spi2-core/ F: package/at-spi2-core/

View File

@ -2021,6 +2021,7 @@ menu "Security"
source "package/libsemanage/Config.in" source "package/libsemanage/Config.in"
source "package/libsepol/Config.in" source "package/libsepol/Config.in"
source "package/safeclib/Config.in" source "package/safeclib/Config.in"
source "package/softhsm2/Config.in"
endmenu endmenu
menu "Text and terminal handling" menu "Text and terminal handling"

View File

@ -0,0 +1,18 @@
config BR2_PACKAGE_SOFTHSM2
bool "softhsm2"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
depends on !BR2_STATIC_LIBS # dlopen()
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
help
SoftHSM is an implementation of a cryptographic store
accessible through a PKCS#11 interface. You can use it
to explore PKCS#11 without having a Hardware Security
Module.
https://www.opendnssec.org/softhsm
comment "sofhsm2 needs a toolchain w/ C++, gcc >= 4.8 and dynamic library support"
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8

View File

@ -0,0 +1,4 @@
# From https://www.opendnssec.org/2020/04/1602/
sha256 61249473054bcd1811519ef9a989a880a7bdcc36d317c9c25457fc614df475f2 softhsm-2.6.1.tar.gz
# Locally computed
sha256 230cab7102816e99f7ce03ef476352fcad09d742fcbc6580d44393db6280b64c LICENSE

View File

@ -0,0 +1,15 @@
################################################################################
#
# softhsm2
#
################################################################################
SOFTHSM2_VERSION = 2.6.1
SOFTHSM2_SOURCE = softhsm-$(SOFTHSM2_VERSION).tar.gz
SOFTHSM2_SITE = https://dist.opendnssec.org/source
SOFTHSM2_LICENSE = BSD-2-Clause
SOFTHSM2_LICENSE_FILES = LICENSE
SOFTHSM2_DEPENDENCIES = openssl
SOFTHSM2_INSTALL_STAGING = YES
$(eval $(autotools-package))