commit: aa38668d66558aebb89d49ca705033272aa45166 Author: David Roman <droman <AT> ifae <DOT> es> AuthorDate: Tue Dec 17 11:17:46 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Dec 17 17:29:56 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa38668d
dev-db/influxdb: add 2.7.11 Closes: https://bugs.gentoo.org/945822 Signed-off-by: David Roman <droman <AT> ifae.es> Signed-off-by: Sam James <sam <AT> gentoo.org> dev-db/influxdb/Manifest | 3 + dev-db/influxdb/influxdb-2.7.11.ebuild | 287 +++++++++++++++++++++++++++++++++ 2 files changed, 290 insertions(+) diff --git a/dev-db/influxdb/Manifest b/dev-db/influxdb/Manifest index cbbf9c82b322..6217f3b0b1a0 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.10-assets.tar.gz 19554632 BLAKE2B a9d71bd511018e0cd1b46f41b32bb89da8a802acb3ed74e7742929d50f6caa80510ac219609ae659ded6a514e0b57ed8a2786a4428c1dd192f685dea1a2a9b41 SHA512 3ee86a57f3f4f83b1b68fe9541b7393d08466b819afd7e74e1d50e11306e00d9c9c14592002e2279693c9eb48876fd664179ad3a75363afca3d38e6102857af7 DIST influxdb-2.7.10-deps.tar.xz 468839592 BLAKE2B 18de232ce5c6bfccb2f75fd77b4991008ceaf98cb2f92d97cf5f37508503d381f11b8484c17f76402a6ad462cb1974d60305e6861f9a7bd3502ff4bd92b8b7d4 SHA512 87bdaab1c3adc7fd037cb293d60119f1ea7829230d1c8ac1b8fc044b6270014769e9c6a7d8f649f001c7613426948d02ddeae27812c4a3c929c8fe8fb02e7d46 DIST influxdb-2.7.10.tar.gz 14277469 BLAKE2B d5e5528f013780c53bec914d1a221170b59a6066e17164030d7cf624b7c9803e66dbffa95ce1b18fc997f40e4ea4e0860d5d9e15bc6d033d101c74033c021503 SHA512 5ad6fc094a847a3ec96579a43ebbfa5e3085842d3899608665e3b4a9680f87de29cc3dc5888482e23f636a3511e6797aa5ef5900c04ceb765ed4705f67e87bff +DIST influxdb-2.7.11-assets.tar.gz 19831060 BLAKE2B 48e968946ea8e4ea1af9e8d803bce989d0620200cb0e1538af926465162286f24f23ef77185d8cb6cd0fe8a9ba3af8de2cade65e42a3072a982fedff1933a7f4 SHA512 32af7869e5a8710fa45702af5158347ac3f4cedc63042778d9793ba6a8452f49f9a283e6eeed80a58fe275245447f01e38c00c97c7741cf18c8e76cfb4d39b2d +DIST influxdb-2.7.11-deps.tar.xz 457309940 BLAKE2B aeed1dcd364003daa4c961b44831beb15b22e0fe7e1e68a6b5d82fff6be82a2da8336d2072ba91fe0219effee8df16f713439436fe14c62b42624ad5485d4459 SHA512 7122815907990e087222679d7614e860ee2e5dedeac06ff46e20c221c2b6afe5ff238d7b312533d702cdad764c2f4f3b33108b7c86998b1e064972ad93aa4849 +DIST influxdb-2.7.11.tar.gz 14289075 BLAKE2B 11e29bd2e4375c22d64534e5d3396547252e743b5bb9d0c6071ed88a8e27dbcd57b1747d36a5164769eb3e4a1afb36072525716239955e38e1d92b4778556001 SHA512 42baf2330ceb2f1796472b7fe894aea797fae330158a671f4de43b6265dce5772f7c2b3267f0b81aea615f16305bfc74d050031c6df61e740abe38a8d23448b1 DIST influxdb-2.7.8-assets.tar.gz 20147021 BLAKE2B 7d09dfa8fecc568b935964c350e13d6d539611e3d33b4364595f8a21f2b5eba9c8da60c4d9b03a55b9f1d7151cdf029785aff304c159ba15424f673aca01b20f SHA512 74a4baefe2d7cdc6dca86f2bd0621655c1836574bad658a891198f42c86032951f2cc7c66d7b54584ca37d3c14cb15c2e3930d8573e99e3910060e0e3a273f19 DIST influxdb-2.7.8-deps.tar.xz 468669044 BLAKE2B 6867a28693e7810c4bb269f262d3882a04d8eadf984f0a2cee73d8882d0294d478563fb50f47bba3b5a07a22efaf294eabac4d3a6630eb332c9c8765ac7c1fad SHA512 2d6af21e0bea4a54b45cbb1f1b8eb8fc71107bf56960a843d793cf43ad61ddf082d70f598f9fab299a021e03960b68fabf201408a137766f79e00a24da78fb30 DIST influxdb-2.7.8.tar.gz 14277447 BLAKE2B 107c41b69834ac19c26a3a90a547efe439189e1b4b1284a1e23a894df5722e2bfe071622ecf64e6c0d5099d59032859f9a2962203cc56738ea4c067504c11c7d SHA512 1756f02819e45251282277ece9b8760cad7c0d5764922bbb29f60f02a0f2c5790e65d00e32d7db3b6701269d1aac151879943479496df12282e4641d34038dc0 diff --git a/dev-db/influxdb/influxdb-2.7.11.ebuild b/dev-db/influxdb/influxdb-2.7.11.ebuild new file mode 100644 index 000000000000..d942f6197c86 --- /dev/null +++ b/dev-db/influxdb/influxdb-2.7.11.ebuild @@ -0,0 +1,287 @@ +# 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.195.2" +UI_PV="2.7.10" + +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-v${UI_PV}/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 +# This tarball ships with next patch applied: https://github.com/influxdata/flux/pull/5516 +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 ~arm64" +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" +}
