diff options
author | Nico Suhl <nico@overninethousand.de> | 2017-03-05 22:41:42 +0100 |
---|---|---|
committer | Nico Suhl <nico@overninethousand.de> | 2017-03-05 22:41:42 +0100 |
commit | f4df4ae6ed119116d9bc462b16c430ddfbc8da6e (patch) | |
tree | 491e9467129b3860ac52b20520f91a1304a23521 | |
parent | add init config file for telegraf (diff) | |
download | nico-f4df4ae6ed119116d9bc462b16c430ddfbc8da6e.tar.gz nico-f4df4ae6ed119116d9bc462b16c430ddfbc8da6e.tar.bz2 nico-f4df4ae6ed119116d9bc462b16c430ddfbc8da6e.zip |
fix naming error while updating telegraf
-rw-r--r-- | dev-db/telegraf/telegraf-1.2.1-r1.ebuild | 38 | ||||
-rw-r--r-- | dev-db/telegraf/telegraf-1.2.1.ebuild | 3 |
2 files changed, 39 insertions, 2 deletions
diff --git a/dev-db/telegraf/telegraf-1.2.1-r1.ebuild b/dev-db/telegraf/telegraf-1.2.1-r1.ebuild new file mode 100644 index 0000000..7fe5952 --- /dev/null +++ b/dev-db/telegraf/telegraf-1.2.1-r1.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}_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} +} diff --git a/dev-db/telegraf/telegraf-1.2.1.ebuild b/dev-db/telegraf/telegraf-1.2.1.ebuild index 7fe5952..94024bb 100644 --- a/dev-db/telegraf/telegraf-1.2.1.ebuild +++ b/dev-db/telegraf/telegraf-1.2.1.ebuild @@ -32,7 +32,6 @@ src_unpack() { src_install() { cp -Rp * "${D}" - newconfd "${FILESDIR}/${PN}.confd" "${PN}" - newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newinitd "${FILESDIR}/${PN}.init.d" "${PN}" fowners ${PN}:${PN} /var/log/${PN} } |