summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-09-24 09:46:57 +0800
committerGitHub <noreply@github.com>2020-09-23 20:46:57 -0500
commit92fe14cc47948af4acf732c333b392e473d7b37e (patch)
tree9991545f68e387d077834fc06eee5b833e646865
parentb69643de7f9ec207949e0054d2b1e98dbb81d898 (diff)
downloadspack-92fe14cc47948af4acf732c333b392e473d7b37e.tar.gz
spack-92fe14cc47948af4acf732c333b392e473d7b37e.tar.bz2
spack-92fe14cc47948af4acf732c333b392e473d7b37e.tar.xz
spack-92fe14cc47948af4acf732c333b392e473d7b37e.zip
Add new package: libp11 (#18778)
-rw-r--r--var/spack/repos/builtin/packages/libp11/package.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libp11/package.py b/var/spack/repos/builtin/packages/libp11/package.py
new file mode 100644
index 0000000000..66947f8b06
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libp11/package.py
@@ -0,0 +1,33 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Libp11(AutotoolsPackage):
+ """The PKCS#11 API is an abstract API to perform operations on
+ cryptographic objects such as private keys, without requiring
+ access to the objects themselves. That is, it provides a logical
+ separation of the keys from the operations. The PKCS #11 API is
+ mainly used to access objects in smart cards and Hardware or
+ Software Security Modules (HSMs). That is because in these modules
+ the cryptographic keys are isolated in hardware or software and
+ are not made available to the applications using them."""
+
+ homepage = "https://github.com/OpenSC/libp11/wiki"
+ url = "https://github.com/OpenSC/libp11/archive/libp11-0.4.10.tar.gz"
+
+ version('0.4.10', sha256='123c1525fa7ce7a34060f9a4148a30717482c517a378f428b704459820c1bf35')
+ version('0.4.9', sha256='9d1c76d74c21ca224f96204982097ebc6b956f645b2b0b5f9c502a20e9ffcfd8')
+ version('0.4.8', sha256='acccd56b736942dfcc490d102d2cb2b6afa6b2e448dd1dc5a1b773eadb98f83d')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+
+ def autoreconf(self, spec, prefix):
+ bash = which('bash')
+ bash('./bootstrap')