diff options
author | darmac <xiaojun2@hisilicon.com> | 2020-04-29 00:07:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 11:07:02 -0500 |
commit | a1e03151b2fa76b41c395c2a08d81463039530f9 (patch) | |
tree | 5816cacf3892823c3db965bbaf5407073496ecf8 /var | |
parent | 2f88af4d2c4e1feffb2f697c064ea8ba8c1fe96e (diff) | |
download | spack-a1e03151b2fa76b41c395c2a08d81463039530f9.tar.gz spack-a1e03151b2fa76b41c395c2a08d81463039530f9.tar.bz2 spack-a1e03151b2fa76b41c395c2a08d81463039530f9.tar.xz spack-a1e03151b2fa76b41c395c2a08d81463039530f9.zip |
Add new package: etcd (#16348)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/etcd/package.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/etcd/package.py b/var/spack/repos/builtin/packages/etcd/package.py new file mode 100644 index 0000000000..fa21e6965b --- /dev/null +++ b/var/spack/repos/builtin/packages/etcd/package.py @@ -0,0 +1,35 @@ +# 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 * +import platform + + +class Etcd(Package): + """etcd is a distributed reliable key-value store for the most + critical data of a distributed system""" + + homepage = "https://etcd.io/" + url = "https://github.com/etcd-io/etcd/archive/v3.4.7.tar.gz" + + version('3.4.7', sha256='858f5ad8c830a66f6bd0cd19386deea64d374185b32f40650ba979e0a70b8b97') + version('3.4.6', sha256='e9ebd003f5545a05017a8dbdde236d6c9d25f98ee35f8ba237e57b75330664f9') + version('3.4.5', sha256='2888f73dc52ba89da470d9bd40b1348ffe8b3da51cd8fe8bff5a1a8db2e50d46') + version('3.4.4', sha256='46bcd0d034fe9cc6ae86a9f2a72bdc78761ca99bfd5ae4b96b24e4ad93fc627e') + version('3.3.20', sha256='a9fcd2a3343f7f5b99acae956dd7c4fe12f16772b660f16fa9c24368df002477') + + depends_on('go@:1.13.9') + + def setup_run_environment(self, env): + if platform.machine() == 'aarch64': + env.set('ETCD_UNSUPPORTED_ARCH', 'arm64') + + def setup_build_environment(self, env): + if platform.machine() == 'aarch64': + env.set('ETCD_UNSUPPORTED_ARCH', 'arm64') + + def install(self, spec, prefix): + make() + install_tree('bin', prefix.bin) |