diff options
author | William Hubbs <williamh@gentoo.org> | 2018-08-15 12:21:26 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2018-08-15 12:21:47 -0500 |
commit | 9b87e7c8cc57e78f8bbf2309327c4c359acf53ff (patch) | |
tree | dd49fadc62d04e6c1b71742e52024bae7e51e5e1 /net-analyzer/kapacitor | |
parent | media-libs/blender: change depends for OpenVDB 5.x compat (diff) | |
download | gentoo-9b87e7c8cc57e78f8bbf2309327c4c359acf53ff.tar.gz gentoo-9b87e7c8cc57e78f8bbf2309327c4c359acf53ff.tar.bz2 gentoo-9b87e7c8cc57e78f8bbf2309327c4c359acf53ff.zip |
net-analyzer/kapacitor: 1.5.1 version bump
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-analyzer/kapacitor')
-rw-r--r-- | net-analyzer/kapacitor/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/kapacitor/kapacitor-1.5.1.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/net-analyzer/kapacitor/Manifest b/net-analyzer/kapacitor/Manifest index f2322b6bb560..03dbf0800fc2 100644 --- a/net-analyzer/kapacitor/Manifest +++ b/net-analyzer/kapacitor/Manifest @@ -1 +1,2 @@ DIST kapacitor-1.4.1.tar.gz 7543899 BLAKE2B 142ea7899be3728d2e857a83beebb8ff32dae6b7a71097de1474878a1728c6597937d03a828746af2464d6406ae80796b11579a10baacb66843bd535f971d940 SHA512 315e01e97f6a89afbbd0e36c17ee64d2744bc8ccce2e318f17ad5fba75599fdc55c303069c32aed07ba73c8ba9cdbacdb76c7ffe0c81681c1ef0be0ba405802e +DIST kapacitor-1.5.1.tar.gz 5668659 BLAKE2B 5caf7a51945d84010f25dcbe198d4a1b7fc21f2ef7036a0489d6274212068937942f0490637a11ab05399d3a95ec1d96f3d42f0a2b3e3b7b4ff1377ef1e220e6 SHA512 6e25f89d9b75c6c14350a189be7bcd4210a331025a4bd0a8fa363dee8abbe8c582013a9c3020e638e9490ded12d70212963dc01bd3570395412641e2911d93f5 diff --git a/net-analyzer/kapacitor/kapacitor-1.5.1.ebuild b/net-analyzer/kapacitor/kapacitor-1.5.1.ebuild new file mode 100644 index 000000000000..dd499480fbdd --- /dev/null +++ b/net-analyzer/kapacitor/kapacitor-1.5.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_PN=github.com/influxdata/kapacitor + +inherit golang-build golang-vcs-snapshot systemd user + +DESCRIPTION="Monitoring, processing and alerting on time series data" +HOMEPAGE="https://www.influxdata.com" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +pkg_setup() { + enewgroup kapacitor + enewuser kapacitor -1 -1 /var/lib/kapacitor kapacitor +} + +src_compile() { + pushd "src/${EGO_PN}" > /dev/null || die + set -- env GOPATH="${S}" go build -v -work -x ./... + echo "$@" + "$@" || die "compile failed" + popd > /dev/null +} + +src_install() { + pushd "src/${EGO_PN}" > /dev/null || die + set -- env GOPATH="${S}" go install -v -work -x ./... + echo "$@" + "$@" || die + dobin "${S}"/bin/kapacitor{,d} + insinto /etc/kapacitor +doins etc/kapacitor/kapacitor.conf +keepdir /etc/kapacitor/load + insinto /etc/logrotate.d + doins etc/logrotate.d/kapacitor + systemd_dounit scripts/kapacitor.service + keepdir /var/log/kapacitor + fowners kapacitor:kapacitor /var/log/kapacitor + newconfd "${FILESDIR}"/kapacitor.confd kapacitor + newinitd "${FILESDIR}"/kapacitor.rc kapacitor + popd > /dev/null || die +} |