summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-09-25 00:40:26 +0800
committerGitHub <noreply@github.com>2020-09-24 11:40:26 -0500
commitfb7f07b27ce5c24961878328abb1416318138065 (patch)
treecfa80d9da4ea5b05a511fcd27821a1b90a23cdec
parentaf162498f06891bb1dbae429ecb5327abdac494e (diff)
downloadspack-fb7f07b27ce5c24961878328abb1416318138065.tar.gz
spack-fb7f07b27ce5c24961878328abb1416318138065.tar.bz2
spack-fb7f07b27ce5c24961878328abb1416318138065.tar.xz
spack-fb7f07b27ce5c24961878328abb1416318138065.zip
Add new package: smartmontools (#18926)
-rw-r--r--var/spack/repos/builtin/packages/smartmontools/package.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/smartmontools/package.py b/var/spack/repos/builtin/packages/smartmontools/package.py
new file mode 100644
index 0000000000..a3c555bd1a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/smartmontools/package.py
@@ -0,0 +1,19 @@
+# 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 Smartmontools(AutotoolsPackage):
+ """S.M.A.R.T. utility toolset."""
+
+ homepage = "http://smartmontools.sourceforge.net"
+ url = "https://nchc.dl.sourceforge.net/project/smartmontools/smartmontools/6.6/smartmontools-6.6.tar.gz"
+
+ version('6.6', sha256='51f43d0fb064fccaf823bbe68cf0d317d0895ff895aa353b3339a3b316a53054')
+
+ def setup_run_environment(self, env):
+ env.prepend_path('PATH', self.prefix.sbin)
+ env.prepend_path('LD_LIBRARY_PATH', self.prefix.usr.lib)