Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/kapacitor/
Date: Wed, 15 Aug 2018 17:22:36
Message-Id: 1534353707.9b87e7c8cc57e78f8bbf2309327c4c359acf53ff.williamh@gentoo
1 commit: 9b87e7c8cc57e78f8bbf2309327c4c359acf53ff
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 15 17:21:26 2018 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 15 17:21:47 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b87e7c8
7
8 net-analyzer/kapacitor: 1.5.1 version bump
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 net-analyzer/kapacitor/Manifest | 1 +
13 net-analyzer/kapacitor/kapacitor-1.5.1.ebuild | 48 +++++++++++++++++++++++++++
14 2 files changed, 49 insertions(+)
15
16 diff --git a/net-analyzer/kapacitor/Manifest b/net-analyzer/kapacitor/Manifest
17 index f2322b6bb56..03dbf0800fc 100644
18 --- a/net-analyzer/kapacitor/Manifest
19 +++ b/net-analyzer/kapacitor/Manifest
20 @@ -1 +1,2 @@
21 DIST kapacitor-1.4.1.tar.gz 7543899 BLAKE2B 142ea7899be3728d2e857a83beebb8ff32dae6b7a71097de1474878a1728c6597937d03a828746af2464d6406ae80796b11579a10baacb66843bd535f971d940 SHA512 315e01e97f6a89afbbd0e36c17ee64d2744bc8ccce2e318f17ad5fba75599fdc55c303069c32aed07ba73c8ba9cdbacdb76c7ffe0c81681c1ef0be0ba405802e
22 +DIST kapacitor-1.5.1.tar.gz 5668659 BLAKE2B 5caf7a51945d84010f25dcbe198d4a1b7fc21f2ef7036a0489d6274212068937942f0490637a11ab05399d3a95ec1d96f3d42f0a2b3e3b7b4ff1377ef1e220e6 SHA512 6e25f89d9b75c6c14350a189be7bcd4210a331025a4bd0a8fa363dee8abbe8c582013a9c3020e638e9490ded12d70212963dc01bd3570395412641e2911d93f5
23
24 diff --git a/net-analyzer/kapacitor/kapacitor-1.5.1.ebuild b/net-analyzer/kapacitor/kapacitor-1.5.1.ebuild
25 new file mode 100644
26 index 00000000000..dd499480fbd
27 --- /dev/null
28 +++ b/net-analyzer/kapacitor/kapacitor-1.5.1.ebuild
29 @@ -0,0 +1,48 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +EGO_PN=github.com/influxdata/kapacitor
35 +
36 +inherit golang-build golang-vcs-snapshot systemd user
37 +
38 +DESCRIPTION="Monitoring, processing and alerting on time series data"
39 +HOMEPAGE="https://www.influxdata.com"
40 +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +IUSE=""
46 +
47 +pkg_setup() {
48 + enewgroup kapacitor
49 + enewuser kapacitor -1 -1 /var/lib/kapacitor kapacitor
50 +}
51 +
52 +src_compile() {
53 + pushd "src/${EGO_PN}" > /dev/null || die
54 + set -- env GOPATH="${S}" go build -v -work -x ./...
55 + echo "$@"
56 + "$@" || die "compile failed"
57 + popd > /dev/null
58 +}
59 +
60 +src_install() {
61 + pushd "src/${EGO_PN}" > /dev/null || die
62 + set -- env GOPATH="${S}" go install -v -work -x ./...
63 + echo "$@"
64 + "$@" || die
65 + dobin "${S}"/bin/kapacitor{,d}
66 + insinto /etc/kapacitor
67 +doins etc/kapacitor/kapacitor.conf
68 +keepdir /etc/kapacitor/load
69 + insinto /etc/logrotate.d
70 + doins etc/logrotate.d/kapacitor
71 + systemd_dounit scripts/kapacitor.service
72 + keepdir /var/log/kapacitor
73 + fowners kapacitor:kapacitor /var/log/kapacitor
74 + newconfd "${FILESDIR}"/kapacitor.confd kapacitor
75 + newinitd "${FILESDIR}"/kapacitor.rc kapacitor
76 + popd > /dev/null || die
77 +}