diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /net-analyzer/kapacitor/kapacitor-1.5.5.ebuild | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'net-analyzer/kapacitor/kapacitor-1.5.5.ebuild')
-rw-r--r-- | net-analyzer/kapacitor/kapacitor-1.5.5.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
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 +} |