summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-08-22 23:51:20 +0800
committerGitHub <noreply@github.com>2020-08-22 10:51:20 -0500
commit74d274f02fa23f1a6799e9f96ccb1ef77162f1bc (patch)
tree72070ec26c4dbf053d04ad40d8c7e262698dfed9
parentd599e4d9d440ee146fb864b3ba043c82f31e5f8b (diff)
downloadspack-74d274f02fa23f1a6799e9f96ccb1ef77162f1bc.tar.gz
spack-74d274f02fa23f1a6799e9f96ccb1ef77162f1bc.tar.bz2
spack-74d274f02fa23f1a6799e9f96ccb1ef77162f1bc.tar.xz
spack-74d274f02fa23f1a6799e9f96ccb1ef77162f1bc.zip
Add new package: consul (#18044)
* Add new package: consul * fix package type * refine install phase
-rw-r--r--var/spack/repos/builtin/packages/consul/package.py25
1 files changed, 25 insertions, 0 deletions
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)