add new package: keyutils (#15433)

This commit is contained in:
darmac 2020-03-12 08:29:31 +08:00 committed by GitHub
parent 6af8e19b2d
commit a9a59ea3b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,27 @@
# 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 *
import glob
class Keyutils(MakefilePackage):
"""These tools are used to control the key management system built
into the Linux kernel."""
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/"
url = "https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/keyutils-1.6.1.tar.gz"
version('1.6.1', sha256='3c71dcfc6900d07b02f4e061d8fb218a4ae6519c1d283d6a57b8e27718e2f557')
version('1.6', sha256='c6a27b4e3d0122d921f3dcea4b1f02a8616ca844535960d6af76ef67d015b5cf')
version('1.5.10', sha256='e1fdbde234c786b65609a4cf080a2c5fbdb57f049249c139160c85fc3dfa7da9')
version('1.5.9', sha256='2dc0bdb099ab8331e02e5dbbce320359bef76eda0a4ddbd2ba1d1b9d3a8cdff8')
def install(self, spec, prefix):
install_tree('.', prefix)
mkdirp(prefix.include)
headers = glob.glob(join_path(prefix, '*.h'))
for h in headers:
install(h, prefix.include)