summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-09-24 09:41:12 +0800
committerGitHub <noreply@github.com>2020-09-23 20:41:12 -0500
commit16c0375d707fd54d3a1bdafc3b53dbe64b10e151 (patch)
treed761caabb561e1f57b4fef01923c330bbfda8310 /var
parent1b707988c528c46185e300b80d37c042a03c00d1 (diff)
downloadspack-16c0375d707fd54d3a1bdafc3b53dbe64b10e151.tar.gz
spack-16c0375d707fd54d3a1bdafc3b53dbe64b10e151.tar.bz2
spack-16c0375d707fd54d3a1bdafc3b53dbe64b10e151.tar.xz
spack-16c0375d707fd54d3a1bdafc3b53dbe64b10e151.zip
Add new package: mokutil (#18789)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mokutil/package.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mokutil/package.py b/var/spack/repos/builtin/packages/mokutil/package.py
new file mode 100644
index 0000000000..6b7c4571f3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/mokutil/package.py
@@ -0,0 +1,32 @@
+# 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 Mokutil(AutotoolsPackage):
+ """The utility to manipulate machines owner keys which managed in shim."""
+
+ homepage = "https://github.com/lcp/mokutil"
+ url = "https://github.com/lcp/mokutil/archive/0.4.0.tar.gz"
+
+ version('0.4.0', sha256='2e9c574e4a4fa63b2f23116cdcb389f448a28945548e232076f77947e35b7361')
+ version('0.3.0', sha256='70ccbffbbba0427dfd6b57902d667bf73d6223296c897ce3441fc2221352a773')
+ version('0.2.0', sha256='a51ef146b8f2169c4e4a0d2f86cae5f4d66cc520989fc2f70a7a620f9587a20b')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+ depends_on('efivar')
+
+ def setup_build_environment(self, env):
+ env.prepend_path('C_INCLUDE_PATH',
+ self.spec['efivar'].prefix.include.efivar)
+
+ def install(self, spec, prefix):
+ bash_completion_dir = 'BASH_COMPLETION_DIR='
+ bash_completion_dir += '{0}/usr/share/bash-completion/completions'
+ make('install', bash_completion_dir.format(prefix))