summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-03-20 22:18:24 +0800
committerGitHub <noreply@github.com>2020-03-20 09:18:24 -0500
commit5f63fc5316f5008858f9d88b14b8eb47295d65e4 (patch)
tree04b77afc91eb79ada20c97b2f45bad4005067e55 /var
parent6cccce4932cf19eb8d4faac05f5195d93eb8488c (diff)
downloadspack-5f63fc5316f5008858f9d88b14b8eb47295d65e4.tar.gz
spack-5f63fc5316f5008858f9d88b14b8eb47295d65e4.tar.bz2
spack-5f63fc5316f5008858f9d88b14b8eb47295d65e4.tar.xz
spack-5f63fc5316f5008858f9d88b14b8eb47295d65e4.zip
add new package: glusterfs (#15565)
* add new package: glusterfs * fix list_depth for url * remove list_depth * add list_url for glusterfs
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/glusterfs/package.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/glusterfs/package.py b/var/spack/repos/builtin/packages/glusterfs/package.py
new file mode 100644
index 0000000000..89024cf977
--- /dev/null
+++ b/var/spack/repos/builtin/packages/glusterfs/package.py
@@ -0,0 +1,44 @@
+# 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 Glusterfs(AutotoolsPackage):
+ """Gluster is a software defined distributed storage that can scale to
+ several petabytes. It provides interfaces for object, block and file
+ storage."""
+
+ homepage = "https://www.gluster.org/"
+ url = "https://download.gluster.org/pub/gluster/glusterfs/7/7.3/glusterfs-7.3.tar.gz"
+ list_url = "https://download.gluster.org/pub/gluster/glusterfs/"
+ list_depth = 2
+
+ version('7.3', sha256='2401cc7c3f5488f6fc5ea09ce2ab30c918612f592571fb3de6124f8482ad4954')
+ version('7.2', sha256='8e43614967b90d64495fbe2c52230dd72572ce219507fb48bc317b1c228a06e1')
+ version('7.1', sha256='ffc5bd78b079009382bd01391865646bc9b2e8e72366afc96d62ba891dd9dbce')
+ version('7.0', sha256='8a872518bf9bd4dc1568f45c716bcde09e3bf7abf5b156ea90405e0fc2e9f07b')
+ version('6.8', sha256='41e855bdc456759c8c15ef494c636a25cc7b62c55ad132ecd55bec05df64793f')
+ version('6.7', sha256='e237dd59a2d5b73e156b0b71df49ff64a143b3aaf8f0a65daaf369bb40f5e923')
+
+ depends_on('m4', type='build')
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('flex', type='build')
+ depends_on('bison', type='build')
+ depends_on('rpcsvc-proto')
+ depends_on('acl')
+ depends_on('libuuid')
+ depends_on('libtirpc')
+ depends_on('userspace-rcu')
+
+ def url_for_version(self, version):
+ url = 'https://download.gluster.org/pub/gluster/glusterfs/{0}/{1}/glusterfs-{1}.tar.gz'
+ return url.format(version.up_to(1), version)
+
+ def autoreconf(self, spec, prefix):
+ bash = which('bash')
+ bash('./autogen.sh')