summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2020-07-12 16:24:29 -0500
committerWilliam Hubbs <williamh@gentoo.org>2020-07-13 10:28:46 -0500
commite3580775a6a8da149d1797ec0416bbd09a1aa714 (patch)
treeba5459157bbc32e9ff80854d1f3f0f404a8f74a4 /net-analyzer/kapacitor
parentacct-user/kapacitor: add user for kapacitor (diff)
downloadgentoo-e3580775a6a8da149d1797ec0416bbd09a1aa714.tar.gz
gentoo-e3580775a6a8da149d1797ec0416bbd09a1aa714.tar.bz2
gentoo-e3580775a6a8da149d1797ec0416bbd09a1aa714.zip
net-analyzer/kapacitor: 1.5.5 bump
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'net-analyzer/kapacitor')
-rw-r--r--net-analyzer/kapacitor/Manifest1
-rw-r--r--net-analyzer/kapacitor/kapacitor-1.5.5.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/net-analyzer/kapacitor/Manifest b/net-analyzer/kapacitor/Manifest
index 03dbf0800fc2..ed51e89c0feb 100644
--- a/net-analyzer/kapacitor/Manifest
+++ b/net-analyzer/kapacitor/Manifest
@@ -1,2 +1,3 @@
DIST kapacitor-1.4.1.tar.gz 7543899 BLAKE2B 142ea7899be3728d2e857a83beebb8ff32dae6b7a71097de1474878a1728c6597937d03a828746af2464d6406ae80796b11579a10baacb66843bd535f971d940 SHA512 315e01e97f6a89afbbd0e36c17ee64d2744bc8ccce2e318f17ad5fba75599fdc55c303069c32aed07ba73c8ba9cdbacdb76c7ffe0c81681c1ef0be0ba405802e
DIST kapacitor-1.5.1.tar.gz 5668659 BLAKE2B 5caf7a51945d84010f25dcbe198d4a1b7fc21f2ef7036a0489d6274212068937942f0490637a11ab05399d3a95ec1d96f3d42f0a2b3e3b7b4ff1377ef1e220e6 SHA512 6e25f89d9b75c6c14350a189be7bcd4210a331025a4bd0a8fa363dee8abbe8c582013a9c3020e638e9490ded12d70212963dc01bd3570395412641e2911d93f5
+DIST kapacitor-1.5.5.tar.gz 5708426 BLAKE2B 432d24f3bbe0f42e36b881e0c709cebd96dd3674ddf752f6a25cfb333108c903073b887e12d630d6c9e33a77b1256ea090cfe216cd9eb30b9bee53c48b7ab154 SHA512 34a2577a9c6f069ab8f747b9bd2f80f941bbedcccd740c24ec9f308804ec259e78cf14c924fcee3315b6f9f7f59adb9c50aedf06587898b8a0fb54f721d79212
diff --git a/net-analyzer/kapacitor/kapacitor-1.5.5.ebuild b/net-analyzer/kapacitor/kapacitor-1.5.5.ebuild
new file mode 100644
index 000000000000..255afd9819a0
--- /dev/null
+++ b/net-analyzer/kapacitor/kapacitor-1.5.5.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit golang-build golang-vcs-snapshot systemd
+EGO_PN=github.com/influxdata/kapacitor
+
+DESCRIPTION="Monitoring, processing and alerting on time series data"
+HOMEPAGE="https://www.influxdata.com"
+SRC_URI="https://github.com/influxdata/kapacitor/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+COMMON_DEPEND="acct-group/kapacitor
+ acct-user/kapacitor"
+ DEPEND="${COMMON_DEPEND}"
+ RDEPEND="${COMMON_DEPEND}"
+
+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
+}