commit:     ac6b63d40aad8ea469100ae9926516f44a8375c1
Author:     David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Tue Apr  2 12:24:20 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Apr  2 18:01:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac6b63d4

dev-db/influxdb: add 2.7.5

Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/36060
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-db/influxdb/Manifest              |   3 +
 dev-db/influxdb/influxdb-2.7.5.ebuild | 284 ++++++++++++++++++++++++++++++++++
 2 files changed, 287 insertions(+)

diff --git a/dev-db/influxdb/Manifest b/dev-db/influxdb/Manifest
index 747e0c19b0f5..11b7a47c667e 100644
--- a/dev-db/influxdb/Manifest
+++ b/dev-db/influxdb/Manifest
@@ -66,6 +66,9 @@ DIST influxdb-1.8.10.tar.gz 12082933 BLAKE2B 
511202025bd0c2305b8fa3b8be439f6e294
 DIST influxdb-2.7.3-assets.tar.gz 19829786 BLAKE2B 
1ca0fe1a6265329b226eb4de0d1310e71b766bcd8d05f636e3ee0c75c2b9f50c90b8c7f38225c0380b3074f84eb07805a7d42cf06cfbdac3b8b1ffad3befb8e5
 SHA512 
85f49e3e5a262fcecb801b3ba91157557fa30933a9cc210f2ad7395d3165225fba2f50190e452f76b2567adb765aba297dbcb425d388851f742edd55375da135
 DIST influxdb-2.7.3-deps.tar.xz 421383868 BLAKE2B 
0590a5023de66cb01772ed2d18f993f8e706e1dfd8fb1a7f191bfe0244baa16610537f87b20fd16b840b04afc7b5f97cc751a8ba1bc9f179f31bada73b51052e
 SHA512 
f0130c57db60fa3ff622cf646d234f1bc47eccded070ad959df541f8c0ce3a9feefeb86f9bf1b7fbdf562347d40e8eabd42ad65b5a415dec9e74b9542ca31a6e
 DIST influxdb-2.7.3.tar.gz 14249851 BLAKE2B 
d859330ece0aa0dc0eb2ce7246d0ee7a1f25796dd436d102b402255a4c463a93e0369287228b4f840ee333aa3509882aaadddfae901e9e2842cfed6d582032c4
 SHA512 
4d9f2faa742fda0366d3386487461d6dd06f6ad27589db3b87ce37242ee9b335e96028d6685683d2691cd2424a1a8d2fff535056eb290af0a1152883767f02b5
+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 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.5.ebuild 
b/dev-db/influxdb/influxdb-2.7.5.ebuild
new file mode 100644
index 000000000000..32422fb6df90
--- /dev/null
+++ b/dev-db/influxdb/influxdb-2.7.5.ebuild
@@ -0,0 +1,284 @@
+# 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"
+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