summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2020-02-07 08:58:31 -0600
committerWilliam Hubbs <williamh@gentoo.org>2020-02-07 08:58:31 -0600
commit4829f47087fc3872dda91ec1b5f462c209573d41 (patch)
tree304ff8065d658421b7eaed468c0afefa3c8b7a89 /net-analyzer/telegraf
parentacct-user/telegraf: add user for telegraf (diff)
downloadgentoo-4829f47087fc3872dda91ec1b5f462c209573d41.tar.gz
gentoo-4829f47087fc3872dda91ec1b5f462c209573d41.tar.bz2
gentoo-4829f47087fc3872dda91ec1b5f462c209573d41.zip
net-analyzer/telegraf: 1.13.3 bump
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'net-analyzer/telegraf')
-rw-r--r--net-analyzer/telegraf/Manifest2
-rw-r--r--net-analyzer/telegraf/telegraf-1.13.3.ebuild59
2 files changed, 61 insertions, 0 deletions
diff --git a/net-analyzer/telegraf/Manifest b/net-analyzer/telegraf/Manifest
index d659104fc0e4..2ab9ba3fa0b0 100644
--- a/net-analyzer/telegraf/Manifest
+++ b/net-analyzer/telegraf/Manifest
@@ -206,5 +206,7 @@ DIST telegraf-1.11.5-vendor.tar.gz 70214304 BLAKE2B 64cfaa9f207835e043f5df002d14
DIST telegraf-1.11.5.tar.gz 1471311 BLAKE2B 7c5b7c2b835ee8c943baf01bb3515fb724b10b04682254e0fd501c7f066fe67a4ef18c0d3442b676448ccb8cd0430099e56ad0cc3970eee3f9d80d540271f4df SHA512 1e6001981693e4612ba34a680f1c3349c2f203d8ba2983f3841fad08b68251a942beef6cc462cb64b95eba1412ea6a35a863ff9426270896c50c83e6f177ca5d
DIST telegraf-1.12.1-vendor.tar.gz 128021524 BLAKE2B f4db3e4d2998959c850a82ea77c1c02c5195e6bd5eef4d55521bbaa0e3355b21554e1a179585d57d8fce1fd061d8f157fddb2dde5091c15062811902c014b835 SHA512 2a501d9456a3a130a4202e87e2c0b44c9b2d5fefca12601f0a3fea6073c97fb7b40dd86546fe291b740b38ecf57843fff18a6f4280482af915b3be9e7270b597
DIST telegraf-1.12.1.tar.gz 1561005 BLAKE2B 997e3deddc13acb6c0af41d5f622353facfd1c09e76640965c8ebe447e06a7cf5bb25753b8c67b2c7c1af7c3d50f787acc23e5b5a45253db943031a130c33d39 SHA512 8018d48482ec1cdada9d57bb6b8068a0758d58908a4c88deb089645282fde662191bd356e0081178b0e7bc1be6bb19cb2c29bba0039398b7d64f53de9fbf87d6
+DIST telegraf-1.13.3-vendor.tar.gz 142151740 BLAKE2B 9068835a6b75721732998ed50f23a6e6e90d92eee32c3ff1bb07fb19942e6f808289b459b34a6b83920c323c00063a91d2bb2e38d457a7a512b43715bc7d7dc0 SHA512 db56f4ecf1802a21405ae7db80281b5155b6f4922dd8e49aa48b554ff3bf179810fae3de3f6ea0e6ee661683e0e9f0536919fd912ea3de827f7c85aa314fff36
+DIST telegraf-1.13.3.tar.gz 1640358 BLAKE2B eda968676b42ddfd1f447326463feaabe0860425ea1688ccf19a248f652ec4828c5cae1c302a7129a62a6557eb2c0a206476bfc7082a89d4bffcd3113bad0e81 SHA512 ac71f054ffccf5f1d27db6e68989a2440b975087f91cce487b58df2bd6984378d86fb992f7a7f11aabf7b20937258d05893b74fb5d6f83a8db8449e80cf1d2fd
DIST telegraf-1.5.3.tar.gz 911976 BLAKE2B 3e67a037eb22be88de700131f15120faa13b7a9bd8404f76c29376e3e4da630d84767fd8cbff45b3e14e6ce836dcc68a2a87b462eb91d398d57370c1112879c0 SHA512 48e80a4f3f00b5c18f584e28836c36abd7b7f9bacb33dd90ff569dbdc0a5bf69e29d38ae2d74a9c14ee6dc3400dda91e586dd31bc11522257c2206efb3e93348
DIST telegraf-1.8.3.tar.gz 1205303 BLAKE2B 60579cca57863362cb4003f8da4326cef0d1bc4986d07d38f4b594556736ad79e0363098df41c13a2d10bbeeccce20fabcd0b07c7e187cbeecb5c561008d587e SHA512 367069b3578529307d5fa6eb14eabf78a44743d75e5df7c3860b35de212b5809c54cd1a7c791076137f60096d227774b4d5206606cd3fad08594721b4b49de4e
diff --git a/net-analyzer/telegraf/telegraf-1.13.3.ebuild b/net-analyzer/telegraf/telegraf-1.13.3.ebuild
new file mode 100644
index 000000000000..264ae05a70d3
--- /dev/null
+++ b/net-analyzer/telegraf/telegraf-1.13.3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+EGO_PN=github.com/influxdata/telegraf
+
+inherit systemd
+
+MY_PV="${PV/_rc/-rc.}"
+COMMIT=da364558
+
+DESCRIPTION="The plugin-driven server agent for collecting & reporting metrics."
+HOMEPAGE="https://github.com/influxdata/telegraf"
+SRC_URI="https://github.com/influxdata/telegraf/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~williamh/dist/${P}-vendor.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RESTRICT="strip"
+
+BDEPEND="dev-lang/go"
+DEPEND="acct-group/telegraf
+ acct-user/telegraf"
+ RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ mv ../vendor .
+}
+
+src_compile() {
+ echo module ${EGO_PN} > go.mod
+ set -- env GO111MODULE=on go build -mod vendor -v -x -o telegraf \
+ -ldflags="-X main.commit=${COMMIT} -X main.version=${PV}" \
+ cmd/telegraf/telegraf.go
+ echo "$@"
+ "$@" || die
+}
+
+src_install() {
+ dobin telegraf
+ insinto /etc/telegraf
+ doins etc/telegraf.conf
+ keepdir /etc/telegraf/telegraf.d
+
+ insinto /etc/logrotate.d
+ doins etc/logrotate.d/telegraf
+
+systemd_dounit scripts/telegraf.service
+ newconfd "${FILESDIR}"/telegraf.confd telegraf
+ newinitd "${FILESDIR}"/telegraf.rc telegraf
+
+ dodoc -r docs/*
+
+ keepdir /var/log/telegraf
+ fowners telegraf:telegraf /var/log/telegraf
+}