diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-09-24 09:35:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 20:35:50 -0500 |
commit | 83c1f035a2bcaf61e781cead1fb3930230c22fa2 (patch) | |
tree | 34965c875920ee899b2d425c98bc57a3a011c223 | |
parent | 9577ed71fee52bbbd3221fa905eaf0579c1f3b5c (diff) | |
download | spack-83c1f035a2bcaf61e781cead1fb3930230c22fa2.tar.gz spack-83c1f035a2bcaf61e781cead1fb3930230c22fa2.tar.bz2 spack-83c1f035a2bcaf61e781cead1fb3930230c22fa2.tar.xz spack-83c1f035a2bcaf61e781cead1fb3930230c22fa2.zip |
Add new package: pciutils (#18795)
-rw-r--r-- | var/spack/repos/builtin/packages/pciutils/package.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pciutils/package.py b/var/spack/repos/builtin/packages/pciutils/package.py new file mode 100644 index 0000000000..da00975a02 --- /dev/null +++ b/var/spack/repos/builtin/packages/pciutils/package.py @@ -0,0 +1,23 @@ +# 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 Pciutils(MakefilePackage): + """This package contains the PCI Utilities.""" + + homepage = "https://mj.ucw.cz/sw/pciutils/" + url = "https://github.com/pciutils/pciutils/archive/v3.7.0.tar.gz" + + version('3.7.0', sha256='ea768aa0187ba349391c6c157445ecc2b42e7d671fc1ce8c53ff5ef513f1e2ab') + version('3.6.4', sha256='551d0ac33f030868b7e95c29e58dc2b1882455dbc9c15c15adf7086e664131f1') + version('3.6.3', sha256='7ab0fbb35cffa326eb852539260562bac14f3d27cda8c70bc2cf3211ed97c014') + + def install(self, spec, prefix): + make('install', 'PREFIX={0}'.format(prefix)) + + def setup_run_environment(self, env): + env.prepend_path('PATH', self.prefix.sbin) |