Add new package: dmidecode (#18759)

This commit is contained in:
darmac 2020-09-24 09:59:51 +08:00 committed by GitHub
parent 3cdb79f569
commit dec8da9257
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,20 @@
# 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 Dmidecode(MakefilePackage):
"""Dmidecode reports information about your system's hardware
as described in your system BIOS according to the SMBIOS/DMI standard. ."""
homepage = "https://github.com/mirror/dmidecode"
url = "https://github.com/mirror/dmidecode/archive/dmidecode-3-2.tar.gz"
version('3-2', sha256='489d840d076785617a432649603aafa6358327f4376694c062b69dfa359bcc2d')
def install(self, spec, prefix):
mkdirp(prefix.bin)
install('dmidecode', prefix.bin)