summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Suhl <nico@overninethousand.de>2017-06-05 19:50:08 +0200
committerNico Suhl <nico@overninethousand.de>2017-06-05 19:50:08 +0200
commit0768ba55a5a477e9cf73f40822321069522ae16a (patch)
tree55666344c24bcf632a858a21e3094c992ef6dacb
parentadd atom-bin (diff)
downloadnico-0768ba55a5a477e9cf73f40822321069522ae16a.tar.gz
nico-0768ba55a5a477e9cf73f40822321069522ae16a.tar.bz2
nico-0768ba55a5a477e9cf73f40822321069522ae16a.zip
update telegraf to version 1.3.1
-rw-r--r--dev-db/telegraf/Manifest1
-rw-r--r--dev-db/telegraf/telegraf-1.3.1.ebuild38
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-db/telegraf/Manifest b/dev-db/telegraf/Manifest
index d0648ba..e46b09d 100644
--- a/dev-db/telegraf/Manifest
+++ b/dev-db/telegraf/Manifest
@@ -1 +1,2 @@
DIST telegraf_1.2.1_amd64.deb 9637426 SHA256 001d9ee9185526420cb7092a5ebc35af91090b5633e992da4d8cfa7e4c2d0c3d SHA512 100d59a35b850f9d80574427ee0d7091cbbc094860f7acfadfa73c2aeeb13ef7465596d6a5e1e42bcd71447426ac4aad1a9a07879f87804b5406a32fcde80334 WHIRLPOOL 62f63dbf5feb0f10b1045bd56e800fe2f3e222baf62f210fc1df6f4661a0e02915367531db911617513fd0030a0bfb1f48563914b1fdacfbcfca50c4d355ec3c
+DIST telegraf_1.3.1-1_amd64.deb 11170578 SHA256 59dbd9668302f1a4959986a22ebbe6db4787d2f6494abcf80b1266691ae96770 SHA512 46d1be83649ddd85088e06a61333d9cade3cf8b53b15234946e116b35cfd2b29318b23b013b5351cdcf06f0d29c8ab02b49d93ef48efd8a2bc14f48267d35c17 WHIRLPOOL 4c47d630f42f1cc6f6cbae6b2f96e3f0b647b08a93cd470698e3a9d6aea3a959bd3f0088cce7e8c1063602cd5d6e1a774b9c4ccbd550d4853a607a47d069edce
diff --git a/dev-db/telegraf/telegraf-1.3.1.ebuild b/dev-db/telegraf/telegraf-1.3.1.ebuild
new file mode 100644
index 0000000..ccf1b49
--- /dev/null
+++ b/dev-db/telegraf/telegraf-1.3.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit user unpacker
+
+DESCRIPTION="A plugin-driven server agent for reporting metrics into InfluxDB"
+HOMEPAGE="http://influxdb.com"
+SRC_URI="https://dl.influxdata.com/telegraf/releases/${PN}_${PV}-1_amd64.deb"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+RESTRICT="mirror"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_unpack() {
+ mkdir -p ${WORKDIR}/${P}
+ cd ${WORKDIR}/${P}
+ unpack_deb ${A}
+}
+
+src_install() {
+ cp -Rp * "${D}"
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+ fowners ${PN}:${PN} /var/log/${PN}
+}