diff options
| author | Pedro Arizmendi <dwosky@pm.me> | 2022-04-06 22:25:11 +0200 |
|---|---|---|
| committer | Joonas Niilola <juippis@gentoo.org> | 2022-11-05 19:36:07 +0200 |
| commit | 5b4be3ac4ea3025b7a0a54ed129b5cb891258d1b (patch) | |
| tree | ba1bb597715888624d2b998c86a7b9d2f084f2fe /dev-db/influxdb/influxdb-1.8.10.ebuild | |
| parent | 45ee30e85df74aff434b0b49122b88c13bb34da6 (diff) | |
| download | gentoo-5b4be3ac4ea3025b7a0a54ed129b5cb891258d1b.tar.gz gentoo-5b4be3ac4ea3025b7a0a54ed129b5cb891258d1b.tar.bz2 gentoo-5b4be3ac4ea3025b7a0a54ed129b5cb891258d1b.zip | |
dev-db/influxdb: Version bump to 1.8.10
Closes: https://bugs.gentoo.org/837131
Signed-off-by: Pedro Arizmendi <dwosky@pm.me>
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Closes: https://github.com/gentoo/gentoo/pull/25224
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-db/influxdb/influxdb-1.8.10.ebuild')
| -rw-r--r-- | dev-db/influxdb/influxdb-1.8.10.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-db/influxdb/influxdb-1.8.10.ebuild b/dev-db/influxdb/influxdb-1.8.10.ebuild new file mode 100644 index 000000000000..07a098575233 --- /dev/null +++ b/dev-db/influxdb/influxdb-1.8.10.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module systemd +GIT_COMMIT=688e697c51fd5353725da078555adbeff0363d01 +GIT_BRANCH=1.8 + +DESCRIPTION="Scalable datastore for metrics, events, and real-time analytics" +HOMEPAGE="https://www.influxdata.com" + +SRC_URI="https://github.com/influxdata/influxdb/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://github.com/Dwosky/packages/raw/main/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD BSD-2 EPL-2.0 ISC MIT MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="man" + +BDEPEND="man? ( + app-text/asciidoc + app-text/xmlto +)" +COMMON_DEPEND=" + acct-group/influxdb + acct-user/influxdb" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +src_compile() { + GOBIN="${S}/bin" \ + go install \ + -ldflags="-X main.version=${PV} + -X main.branch=${GIT_BRANCH} + -X main.commit=${GIT_COMMIT}" \ + ./... || die "compile failed" + use man && emake -C man build +} + +src_install() { + dobin bin/influx* + dodoc *.md + use man && doman man/*.1 + insinto /etc/influxdb + newins etc/config.sample.toml influxdb.conf + insinto /etc/logrotate.d + newins scripts/logrotate influxdb + systemd_dounit scripts/influxdb.service + + newconfd "${FILESDIR}"/influxdb.confd influxdb + newinitd "${FILESDIR}"/influxdb.initd influxdb + keepdir /var/log/influxdb + fowners influxdb:influxdb /var/log/influxdb +} + +src_test() { + go test ./tests || die +} |
