summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-09-24 09:51:20 +0800
committerGitHub <noreply@github.com>2020-09-23 20:51:20 -0500
commitdc0cff5eb235f2d095653fdfd6cff0afa779ab0c (patch)
treef7df859a731cfa0daed92d3aca16f31d726ab5c3 /var
parentc4f57890b529c2845414ea1b3a452a11835a150e (diff)
downloadspack-dc0cff5eb235f2d095653fdfd6cff0afa779ab0c.tar.gz
spack-dc0cff5eb235f2d095653fdfd6cff0afa779ab0c.tar.bz2
spack-dc0cff5eb235f2d095653fdfd6cff0afa779ab0c.tar.xz
spack-dc0cff5eb235f2d095653fdfd6cff0afa779ab0c.zip
Add new package: libatasmart (#18771)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libatasmart/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libatasmart/package.py b/var/spack/repos/builtin/packages/libatasmart/package.py
new file mode 100644
index 0000000000..ae7d2ccb0c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libatasmart/package.py
@@ -0,0 +1,26 @@
+# 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 Libatasmart(AutotoolsPackage):
+ """A small and lightweight parser library for ATA S.M.A.R.T. hard disk
+ health monitoring."""
+
+ homepage = "http://git.0pointer.de/?p=libatasmart.git"
+ url = "https://github.com/ebe-forks/libatasmart/archive/v0.19.tar.gz"
+
+ version('0.19', sha256='10bb5321a254e28bd60fd297f284bfc81cce4fde92e150187640e62ec667e5fb')
+ version('0.18', sha256='4a6e93fbaec2d4caffb06ddd47c2c35ea4ad2d3d22e805bf284adba949f64ddf')
+ version('0.17', sha256='353b2ec097814254989a809fd495f95a315e608fdf320c2b96dc52d70392e955')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+
+ def setup_run_environment(self, env):
+ env.prepend_path('PATH', self.prefix.sbin)