From 74d274f02fa23f1a6799e9f96ccb1ef77162f1bc Mon Sep 17 00:00:00 2001 From: darmac Date: Sat, 22 Aug 2020 23:51:20 +0800 Subject: Add new package: consul (#18044) * Add new package: consul * fix package type * refine install phase --- var/spack/repos/builtin/packages/consul/package.py | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 var/spack/repos/builtin/packages/consul/package.py diff --git a/var/spack/repos/builtin/packages/consul/package.py b/var/spack/repos/builtin/packages/consul/package.py new file mode 100644 index 0000000000..7882937547 --- /dev/null +++ b/var/spack/repos/builtin/packages/consul/package.py @@ -0,0 +1,25 @@ +# 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 Consul(MakefilePackage): + """Consul is a distributed, highly available, + and data center aware solution to connect and configure applications + across dynamic, distributed infrastructure.""" + + homepage = "https://www.consul.io" + url = "https://github.com/hashicorp/consul/archive/v1.8.1.tar.gz" + + version('1.8.1', sha256='c173e9866e6181b3679a942233adade118976414f6ca2da8deaea0fa2bba9b06') + version('1.8.0', sha256='a87925bde6aecddf532dfd050e907b6a0a6447cdd5dc4f49b46d97c9f73b58f9') + version('1.7.6', sha256='893abad7563c1f085303705f72d8789b338236972123f0ab6d2be24dbb58c2ac') + + depends_on('go@1.14:') + + def install(self, spec, prefix): + install_tree('bin', prefix.bin) + install_tree('lib', prefix.lib) -- cgit v1.2.3-60-g2f50