new package: telegraf (#27201)
This commit is contained in:
parent
47babb2518
commit
7b3e02471b
22
var/spack/repos/builtin/packages/telegraf/package.py
Normal file
22
var/spack/repos/builtin/packages/telegraf/package.py
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# Copyright 2013-2021 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)
|
||||||
|
|
||||||
|
|
||||||
|
class Telegraf(MakefilePackage):
|
||||||
|
"""Telegraf is an agent for collecting, processing, aggregating,
|
||||||
|
and writing metrics."""
|
||||||
|
|
||||||
|
homepage = "https://github.com/influxdata/telegraf"
|
||||||
|
url = "https://github.com/influxdata/telegraf/archive/refs/tags/v1.19.3.tar.gz"
|
||||||
|
|
||||||
|
version('1.20.3', sha256='cf8fd4d38970648281101e8a71b1a48c5765c8aaa9d67619c00272c9192e9057')
|
||||||
|
version('1.19.3', sha256='d2fb8a3519a5690c801e1221e22c3693ed95204f70f6c57eb13267ca1964c659')
|
||||||
|
|
||||||
|
depends_on('go', type='build')
|
||||||
|
|
||||||
|
def install(self, spec, prefix):
|
||||||
|
mkdirp(prefix.bin)
|
||||||
|
install('telegraf', prefix.bin)
|
||||||
|
install_tree('docs', prefix.docs)
|
Loading…
Reference in New Issue
Block a user