diff options
Diffstat (limited to 'dev-db/telegraf/telegraf-1.3.1.ebuild')
-rw-r--r-- | dev-db/telegraf/telegraf-1.3.1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
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} +} |