public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-analyzer/kapacitor/, net-analyzer/kapacitor/files/
@ 2018-03-26 18:01 William Hubbs
  0 siblings, 0 replies; only message in thread
From: William Hubbs @ 2018-03-26 18:01 UTC (permalink / raw
  To: gentoo-commits

commit:     71ce84ea58f61d1febcde93d0ee9416bb42709a0
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 26 17:59:20 2018 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Mar 26 18:01:11 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71ce84ea

net-analyzer/kapacitor: 1.4.1-r1 bump for service script fixes

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 net-analyzer/kapacitor/files/kapacitor.rc        |  6 ++-
 net-analyzer/kapacitor/kapacitor-1.4.1-r1.ebuild | 48 ++++++++++++++++++++++++
 2 files changed, 53 insertions(+), 1 deletion(-)

diff --git a/net-analyzer/kapacitor/files/kapacitor.rc b/net-analyzer/kapacitor/files/kapacitor.rc
index 8ee907f66d5..b89d0b1cbf9 100644
--- a/net-analyzer/kapacitor/files/kapacitor.rc
+++ b/net-analyzer/kapacitor/files/kapacitor.rc
@@ -9,12 +9,16 @@ make_pidfile=yes
 command_user="kapacitor:kapacitor"
 
 # Logging
-error_log="${error_log:-/var/log/influxdb/influxd.log}"
+error_log="${error_log:-/var/log/kapacitor/kapacitor.err}"
 output_log="${output_log:-/dev/null}"
 
 # Max open files
 rc_ulimit="-n 65536"
 
+depend() {
+	after net
+}
+
 start_pre() {
 	# Check if config file exist
 	if [ ! -r ${config} ]; then

diff --git a/net-analyzer/kapacitor/kapacitor-1.4.1-r1.ebuild b/net-analyzer/kapacitor/kapacitor-1.4.1-r1.ebuild
new file mode 100644
index 00000000000..dd499480fbd
--- /dev/null
+++ b/net-analyzer/kapacitor/kapacitor-1.4.1-r1.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
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-03-26 18:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-26 18:01 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/kapacitor/, net-analyzer/kapacitor/files/ William Hubbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox