commit:     5ad73995714554e9c9436fbd7b200729c4808e25
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Mon Jun 17 09:51:04 2024 +0000
Commit:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Tue Jun 25 20:15:49 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ad73995

dev-db/influxdb: add 2.7.6

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>

 dev-db/influxdb/Manifest              |   3 +
 dev-db/influxdb/influxdb-2.7.6.ebuild | 286 ++++++++++++++++++++++++++++++++++
 2 files changed, 289 insertions(+)

diff --git a/dev-db/influxdb/Manifest b/dev-db/influxdb/Manifest
index 11b7a47c667e..ab1f27740847 100644
--- a/dev-db/influxdb/Manifest
+++ b/dev-db/influxdb/Manifest
@@ -69,6 +69,9 @@ DIST influxdb-2.7.3.tar.gz 14249851 BLAKE2B 
d859330ece0aa0dc0eb2ce7246d0ee7a1f25
 DIST influxdb-2.7.5-assets.tar.gz 19829786 BLAKE2B 
1ca0fe1a6265329b226eb4de0d1310e71b766bcd8d05f636e3ee0c75c2b9f50c90b8c7f38225c0380b3074f84eb07805a7d42cf06cfbdac3b8b1ffad3befb8e5
 SHA512 
85f49e3e5a262fcecb801b3ba91157557fa30933a9cc210f2ad7395d3165225fba2f50190e452f76b2567adb765aba297dbcb425d388851f742edd55375da135
 DIST influxdb-2.7.5-deps.tar.xz 459263596 BLAKE2B 
13c6a2e3539960ec01b2d9132c54e47e4f178e66fa5eba07b63969c657fb4a69fa700a59d90201b768d52b57b449fbf330ae91463e22b818a5f7bf3918937d91
 SHA512 
cfc4bef0e33e29c54c529a20711753ac5da3c8a89af3a81bcb9612e745254fca9850751f69eec05f7c22959f8a7b240fc52d96b1dba7ed36c907d6c9206618b9
 DIST influxdb-2.7.5.tar.gz 14259860 BLAKE2B 
edcb6228bcc1267bdeb93bb0e34e65d4e97873f10a6e45a919e21e3aa82b2f8ddc02d77c05ea37ec5b5e04222b34e5e74af99dbe85af63fa78dff841316024fc
 SHA512 
895dfc031a18551822dd6ba17a4bdf5e6cef2bd67aa373188b8263a6ab389bd7b6c001ebe47bb945307cf71de2b03a9fa48d2bcc60cda8cbf1b569a09572395e
+DIST influxdb-2.7.6-assets.tar.gz 19829786 BLAKE2B 
1ca0fe1a6265329b226eb4de0d1310e71b766bcd8d05f636e3ee0c75c2b9f50c90b8c7f38225c0380b3074f84eb07805a7d42cf06cfbdac3b8b1ffad3befb8e5
 SHA512 
85f49e3e5a262fcecb801b3ba91157557fa30933a9cc210f2ad7395d3165225fba2f50190e452f76b2567adb765aba297dbcb425d388851f742edd55375da135
+DIST influxdb-2.7.6-deps.tar.xz 458572596 BLAKE2B 
07985d3bfcf7179f76f4b3cd1bc6bf015c40e5e63ac1e407f2920a04d3728250d4f90e09915048faa224530b0ca002b3ae4d75184480898a4ab7d61bb060633b
 SHA512 
a256e82bbe8c06fddb1cfe3a5857cfda7c9e78178d17951bb1d034c71033f55c7f5d70be1b56c7bdcb9b87e3631b8ce92375e974e1bfe5bb9a47f5103b919b9d
+DIST influxdb-2.7.6.tar.gz 14258162 BLAKE2B 
b530203f7995f97fdc26eb1fbca808374e870691e549534e581492e9d14a27dd5cd4b5bc952cf6e9d3c0394fb05f76559964f7f2e9e9ca070c4c6afc7442b15f
 SHA512 
841b720aa6351136cbae8ace0f48504cfc993f8f938542784d89c33523cbb6a3f0d5fd27644215e2f93018be57aad538a18a316b5172ace889a2bf9041190750
 DIST instant-0.1.12.crate 6128 BLAKE2B 
728923f757c1ee4e4a7afb90e460eed81392068961240a538e5c6468e15a0b6491f590fb5f6cc46e6d78901ca232351f65abb9f2f230d8f4983c5e58c4011902
 SHA512 
fae494c00111c51c840f9dd6a10febe403e27ebb933dd16633a213e9c20f2bc11adeb431c71f8a6713bf88f270a010941e15d83df294e658791934f83a5d2407
 DIST io-lifetimes-1.0.10.crate 37294 BLAKE2B 
9b8836c4bf30e6d102fd9973ac66f067c3ff8bc2806e55f26368ebdc9854f2e9cc6eecc8014f9a0b22a968a6eea8be243fcb7a641d2d0dfc747ee08a6a1450bb
 SHA512 
4b2cde9522780a408c5d4e6406286bc5dd3a0de1a99675129e9856e5d889498a127fd5dd7c937a7542135abc2213b60bfb6258b7871b8709dcdd79d60455bea9
 DIST itertools-0.10.5.crate 115354 BLAKE2B 
f24734bdfedf1dba48554e39b43669efcd4a43656eeb2c511096060daeaf049e1ad3eab232e757057750ce94aabad9fc8a0cf29a997edc6c4b167301c3443391
 SHA512 
d03c3cfba9841776913bbb6daad0c8945830c155f32ae4b48872e0f937c75a443f0ac9a0355f43b359ff75232f38b15f4f6d446b4be30b00b4209cf66ef770c3

diff --git a/dev-db/influxdb/influxdb-2.7.6.ebuild 
b/dev-db/influxdb/influxdb-2.7.6.ebuild
new file mode 100644
index 000000000000..3ff0bb6c8843
--- /dev/null
+++ b/dev-db/influxdb/influxdb-2.7.6.ebuild
@@ -0,0 +1,286 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]+wasi-snapshot-preview1
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+"
+
+inherit cargo go-module systemd
+
+DESCRIPTION="Scalable datastore for metrics, events, and real-time analytics"
+HOMEPAGE="https://www.influxdata.com";
+
+FLUX_PV="0.194.5"
+
+SRC_URI="https://github.com/influxdata/influxdb/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI+=" 
https://github.com/influxdata/ui/releases/download/OSS-v2.7.1/build.tar.gz -> 
${P}-assets.tar.gz"
+# Generate go-mod of base dir. Then cd 
go-mod/github.com/influxdata/[email protected] and generate go-mod of it
+# The tarball has next backported commit: 
github.com/influxdata/flux/commit/68c831c40b396f0274f6a9f97d77707c39970b02
+SRC_URI+=" https://gentoo.kropotkin.rocks/go-pkgs/${P}-deps.tar.xz";
+SRC_URI+=" ${CARGO_CRATE_URIS}"
+
+LICENSE="Apache-2.0 BSD BSD-2 EPL-2.0 ISC MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="virtual/pkgconfig"
+
+DEPEND="
+       acct-group/influxdb
+       acct-user/influxdb
+"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+       cargo_src_unpack
+}
+
+src_prepare() {
+       default
+
+       local data_dir
+       data_dir="${S}/static/data"
+       mkdir "${data_dir}" || die
+       mv "${WORKDIR}/build" "${data_dir}" || die
+}
+
+src_compile() {
+       mv "${WORKDIR}/go-mod" "${WORKDIR}/go-mod-tmp" || die
+       mv 
"${WORKDIR}/go-mod-tmp/github.com/influxdata/[email protected]/go-mod" 
"${WORKDIR}/go-mod" || die
+       cd "${WORKDIR}"/go-mod-tmp/github.com/influxdata/pkg-config* || die
+       ego build .
+       mv "${WORKDIR}/go-mod" 
"${WORKDIR}/go-mod-tmp/github.com/influxdata/[email protected]" || die
+       mv "${WORKDIR}/go-mod-tmp" "${WORKDIR}/go-mod" || die
+
+       cd "${WORKDIR}/go-mod/github.com/influxdata/flux@v${FLUX_PV}/libflux" 
|| die
+       cargo_src_compile
+
+       cd "${S}" || die
+
+       export 
PKG_CONFIG="${WORKDIR}/go-mod/github.com/influxdata/[email protected]/pkg-config"
+       ego generate ./static
+       GOBIN="${S}/bin" \
+               ego install \
+                       -tags 'assets,noasm,sqlite_json,sqlite_foreign_keys' \
+                       -ldflags="-X main.version=${PV}" \
+               ./...
+}
+
+src_test() {
+       ego test ./tests
+}
+
+src_install() {
+       dobin bin/influx*
+       dodoc *.md
+       cd .circleci/scripts/package/influxdb2/fs || die
+       systemd_dounit usr/lib/influxdb/scripts/influxdb.service
+       exeinto /usr/lib/influxdb/scripts
+       doexe usr/lib/influxdb/scripts/influxd-systemd-start.sh
+       exeinto /usr/share/influxdb
+       doexe usr/share/influxdb/influxdb2-upgrade.sh
+       newconfd "${FILESDIR}"/influxdb.confd-r1 influxdb
+       newinitd "${FILESDIR}"/influxdb.initd-r1 influxdb
+       keepdir /var/log/influxdb
+       fowners influxdb:influxdb /var/log/influxdb
+
+       newenvd - "99${PN}" <<-_EOF_
+               INFLUXD_CONFIG_PATH="/etc/influxdb"
+       _EOF_
+}
+
+pkg_postinst() {
+       elog "Upgrading from InfluxDB1.x requires migration of time series 
data."
+       elog "See https://docs.influxdata.com/influxdb/v2.7/upgrade/v1-to-v2/";
+       elog "Keep in mind that some applications not compatible with InfluxDB 
2.x"
+       elog "may stop working."
+
+       ewarn "The InfluxDB command line client has been moved to 
dev-db/influx-cli"
+       ewarn "You will need to install it separately"
+}

Reply via email to