From e8aa09f74c8ba0c9e1c5ae3ab49f93b6a0820330 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Sep 2024 12:32:28 +0100 Subject: gentoo auto-resync : 14:09:2024 - 12:32:27 --- dev-db/Manifest.gz | Bin 16753 -> 16748 bytes dev-db/influxdb/Manifest | 8 +- dev-db/influxdb/influxdb-2.7.10.ebuild | 285 ++++++++++++++++++++++++++++++++ dev-db/influxdb/influxdb-2.7.6.ebuild | 286 --------------------------------- 4 files changed, 289 insertions(+), 290 deletions(-) create mode 100644 dev-db/influxdb/influxdb-2.7.10.ebuild delete mode 100644 dev-db/influxdb/influxdb-2.7.6.ebuild (limited to 'dev-db') diff --git a/dev-db/Manifest.gz b/dev-db/Manifest.gz index e745af92d11d..9ff1fc74a734 100644 Binary files a/dev-db/Manifest.gz and b/dev-db/Manifest.gz differ diff --git a/dev-db/influxdb/Manifest b/dev-db/influxdb/Manifest index f9b964b9245f..6a2a47e7782f 100644 --- a/dev-db/influxdb/Manifest +++ b/dev-db/influxdb/Manifest @@ -67,9 +67,9 @@ DIST idna-0.3.0.crate 271128 BLAKE2B cf8a2c43760f03e94953c6692423a12f28fe763aabe DIST indexmap-1.9.3.crate 54653 BLAKE2B 7bc1768589e74020dc15d3dd064009edaaef39b7aeb682d0ca8e49944e3f020b9c04d64feb102e88b22feb40863479dfaf4722d6a77b5d19e7ca553f4bf64c1b SHA512 2aa8069eb07a814c8fa3e11296c9f032ef60963520d7786ad20cca5cb7e73b8f76d97722a994d65295bb713020aadce5008cd3df5e99d8bd968ef1979f910a37 DIST influxdb-1.8.10-deps.tar.xz 151055544 BLAKE2B b660cdf996ea918db2d569472f42bb48cfdd694398d2577e4e97d549a549e90851b417463bc5228735b3b23d108fad83868971770953bea38ff27bde4fb9493f SHA512 bfd89dc2817c59de1286b2dbf4e9895d8a104aa1e2cd3db54069e40328d51baee152c761ba92818f67b2a6ab20591b543dd84259e4e2a545a79cd59ca197dd95 DIST influxdb-1.8.10.tar.gz 12082933 BLAKE2B 511202025bd0c2305b8fa3b8be439f6e2941313b42587e6e6eedfcb6ae44c8fd821e5ffcbde288eb4d2d426d3fcbde940cdcb2a993918263ec31c57ecfce0e85 SHA512 4f5d20c190288d6397f0e87abd9b9136340b17f091c361cbc111ba661a3e63626edf5c74ddeeda164d82102dd06026e0037f50da546cda25e6c8647f4c739fae -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 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.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 @@ -194,6 +194,6 @@ DIST windows_x86_64_msvc-0.42.2.crate 666936 BLAKE2B bc3a456e7f8bc272f8978ec6950 DIST windows_x86_64_msvc-0.48.0.crate 671422 BLAKE2B abb063610dcc38581657133182b7d9efeed5553df67bd2bd6f30f1668a645186e4824f9ef556a5abc84ace10b1b437b6325bbda6df5a64ce880d7dcb743ac786 SHA512 6e598b8e3ac54912a8ebac01b0dd2c58fd282072527d7fedc7f6ebecdfb7dcb09ae46c22293bc0117849437f8b053db5e90406e7a38276f0f0afd06be3966795 DIST yansi-0.5.1.crate 16525 BLAKE2B 3b5a93b98293daae72f53bf3f13bfc05feba8d5b27921f79595f7448fbcb9a0dfa6cd70f467c5735b914c46b7d3592e6cce080c540a458a904308525eb3aa839 SHA512 7b33005a066cc612408a65df6533e8718d1de43efc0fd57416a19dc2b811497570e6e18f100fb26073565e395e711518c27de7d644ae64777713f1a102eb16d2 EBUILD influxdb-1.8.10.ebuild 1415 BLAKE2B c32cd9f1b5ad1696b4e612f2c99c43170e828a41653004da588e607b19de495bc8926ca1a7d60287a49394c53509d9e542ecff4b378b4486e7b69d4c3e044afb SHA512 ee1e42b70fabf4ed8676033be9a0f5e10d514a9ad98741a0e685cfb8e11f4f8f51a0ed28f91043e5b78c44f7dbfe74aea6f93fc79193ca8da425316fcd561b69 -EBUILD influxdb-2.7.6.ebuild 6616 BLAKE2B fdc72ab8bd7507be44a23301f29eadf3236bc52bedab56e2de6b0ba51ee8fd2fd3caab046cb03e51328c2f6f10094d34e6ee3a1800dd4bda35f62847fb46dc89 SHA512 183a75df09aa81fd892694476cfaa1a48c7142c09812ce7c314dbe9047480d28ee6ee1ef0ea54bafc70ce9d81e75fbdc04233f6c8a467c45bcf8cda5185c536a +EBUILD influxdb-2.7.10.ebuild 6499 BLAKE2B 29e85d7dec8a7267ed1e4653f6df3ab92b3a7d038e2283130436499fe9117b2f86aa90a47afb66f3fa036a07e4fa8b64b0f8a2096cb3915ede1cf878cea5c6c7 SHA512 ef907164c20e8c666ae947b8d55fac72648aaebc02f20addbea349e1cddac8344a96607a84d79e83598ff34deedaca56c01198fa39e79278ce8066bb03e32f14 EBUILD influxdb-2.7.8.ebuild 6498 BLAKE2B ac5e9f2f4056ff3f044e144573d925d5107f8c4d9c01ba8ea3e0a4942b7f719f8ac1dde13f2fbafb99df817ee04b6798100fd42f3069cab753f77be7d8777725 SHA512 27d81200134d7b35d02855bd5beecd6f2238292d3fc028d9af81d5341f8fd0927daeec76065c5ee5c643602ba3cb74c6f68b067674160bfd2d260ddade74305e MISC metadata.xml 794 BLAKE2B b2918ee4b0c547e06957606fc84ce3fa44144f6e4510ac2bca9008645ca4a08058f02c8cd96623575214763856a97f9fa887ca70dd8a9ba884c9328b1ea54a8a SHA512 4badc736aae9a6aa97766dedc40f906b983f91c9a08fe2784df2768bcbf4e164a365276bfcef271767b9d86afa7ccccbc8dbe31857641c724eeb0e2deeda01ee diff --git a/dev-db/influxdb/influxdb-2.7.10.ebuild b/dev-db/influxdb/influxdb-2.7.10.ebuild new file mode 100644 index 000000000000..60339b24dc5b --- /dev/null +++ b/dev-db/influxdb/influxdb-2.7.10.ebuild @@ -0,0 +1,285 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" + adler32@1.2.0 + ahash@0.7.6 + aho-corasick@0.7.20 + android_system_properties@0.1.5 + ansi_term@0.12.1 + anyhow@1.0.70 + arrayvec@0.5.2 + atty@0.2.14 + autocfg@1.1.0 + bitflags@1.3.2 + bitflags@2.0.2 + bumpalo@3.12.0 + cast@0.3.0 + cc@1.0.79 + cfg-if@1.0.0 + chrono@0.4.24 + clap@2.34.0 + codespan-reporting@0.11.1 + colored@2.0.0 + core-foundation-sys@0.8.4 + crc32fast@1.3.2 + criterion-plot@0.4.5 + criterion@0.3.6 + crossbeam-channel@0.5.7 + crossbeam-deque@0.8.3 + crossbeam-epoch@0.9.14 + crossbeam-utils@0.8.15 + csv-core@0.1.10 + csv@1.2.1 + ctor@0.1.26 + cxx-build@1.0.94 + cxx@1.0.94 + cxxbridge-flags@1.0.94 + cxxbridge-macro@1.0.94 + derivative@2.2.0 + derive_more@0.99.17 + diff@0.1.13 + dissimilar@1.0.6 + either@1.8.1 + ena@0.14.2 + env_logger@0.9.3 + errno-dragonfly@0.1.2 + errno@0.3.0 + expect-test@1.4.1 + fallible-iterator@0.2.0 + fallible-streaming-iterator@0.1.9 + fastrand@1.9.0 + flatbuffers@22.12.6 + fnv@1.0.7 + form_urlencoded@1.1.0 + getrandom@0.2.8 + half@1.8.2 + hashbrown@0.12.3 + hashlink@0.8.1 + heck@0.3.3 + hermit-abi@0.1.19 + hermit-abi@0.2.6 + hermit-abi@0.3.1 + humantime@2.1.0 + iana-time-zone-haiku@0.1.1 + iana-time-zone@0.1.56 + idna@0.3.0 + indexmap@1.9.3 + instant@0.1.12 + io-lifetimes@1.0.10 + itertools@0.10.5 + itoa@1.0.6 + js-sys@0.3.61 + lazy_static@1.4.0 + libc@0.2.141 + libflate@1.3.0 + libflate_lz77@1.2.0 + libsqlite3-sys@0.26.0 + link-cplusplus@1.0.8 + linux-raw-sys@0.3.1 + lock_api@0.4.9 + log@0.4.17 + lsp-types@0.91.1 + maplit@1.0.2 + memchr@2.5.0 + memoffset@0.8.0 + num-integer@0.1.45 + num-traits@0.2.15 + num_cpus@1.15.0 + once_cell@1.17.1 + oorandom@11.1.3 + ordered-float@3.6.0 + output_vt100@0.1.3 + pad@0.1.6 + parking_lot@0.11.2 + parking_lot_core@0.8.6 + percent-encoding@2.2.0 + pkg-config@0.3.26 + plotters-backend@0.3.4 + plotters-svg@0.3.3 + plotters@0.3.4 + pretty@0.11.3 + pretty_assertions@1.3.0 + proc-macro-error-attr@1.0.4 + proc-macro-error@1.0.4 + proc-macro2@1.0.56 + pulldown-cmark@0.9.2 + quote@1.0.26 + rayon-core@1.11.0 + rayon@1.7.0 + redox_syscall@0.2.16 + redox_syscall@0.3.5 + regex-syntax@0.6.29 + regex@1.7.3 + rle-decode-fast@1.0.3 + rusqlite@0.29.0 + rustc-hash@1.1.0 + rustc_version@0.4.0 + rustix@0.37.7 + ryu@1.0.13 + salsa-macros@0.17.0-pre.2 + salsa@0.17.0-pre.2 + same-file@1.0.6 + scopeguard@1.1.0 + scratch@1.0.5 + semver@1.0.17 + serde@1.0.159 + serde_cbor@0.11.2 + serde_derive@1.0.159 + serde_json@1.0.95 + serde_repr@0.1.12 + smallvec@1.10.0 + strsim@0.8.0 + structopt-derive@0.4.18 + structopt@0.3.26 + syn@1.0.109 + syn@2.0.13 + tempfile@3.5.0 + termcolor@1.2.0 + textwrap@0.11.0 + thiserror-impl@1.0.40 + thiserror@1.0.40 + tinytemplate@1.2.1 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + typed-arena@2.0.2 + unicase@2.6.0 + unicode-bidi@0.3.13 + unicode-ident@1.0.8 + unicode-normalization@0.1.22 + unicode-segmentation@1.10.1 + unicode-width@0.1.10 + url@2.3.1 + vcpkg@0.2.15 + vec_map@0.8.2 + version_check@0.9.4 + walkdir@2.3.3 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.84 + wasm-bindgen-macro-support@0.2.84 + wasm-bindgen-macro@0.2.84 + wasm-bindgen-shared@0.2.84 + wasm-bindgen@0.2.84 + web-sys@0.3.61 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.5 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-sys@0.45.0 + windows-sys@0.48.0 + windows-targets@0.42.2 + windows-targets@0.48.0 + windows@0.48.0 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.0 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.0 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.0 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.0 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.0 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.0 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.0 + yansi@0.5.1 +" + +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" + +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.9/build.tar.gz -> ${P}-assets.tar.gz" +# Generate go-mod of base dir. Then cd go-mod/github.com/influxdata/pkg-config@v0.2.11 and generate go-mod of it +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/pkg-config@v0.2.11/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/pkg-config@v0.2.11" || 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/pkg-config@v0.2.11/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" +} diff --git a/dev-db/influxdb/influxdb-2.7.6.ebuild b/dev-db/influxdb/influxdb-2.7.6.ebuild deleted file mode 100644 index 6fc1b5b27282..000000000000 --- a/dev-db/influxdb/influxdb-2.7.6.ebuild +++ /dev/null @@ -1,286 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -CRATES=" - adler32@1.2.0 - ahash@0.7.6 - aho-corasick@0.7.20 - android_system_properties@0.1.5 - ansi_term@0.12.1 - anyhow@1.0.70 - arrayvec@0.5.2 - atty@0.2.14 - autocfg@1.1.0 - bitflags@1.3.2 - bitflags@2.0.2 - bumpalo@3.12.0 - cast@0.3.0 - cc@1.0.79 - cfg-if@1.0.0 - chrono@0.4.24 - clap@2.34.0 - codespan-reporting@0.11.1 - colored@2.0.0 - core-foundation-sys@0.8.4 - crc32fast@1.3.2 - criterion-plot@0.4.5 - criterion@0.3.6 - crossbeam-channel@0.5.7 - crossbeam-deque@0.8.3 - crossbeam-epoch@0.9.14 - crossbeam-utils@0.8.15 - csv-core@0.1.10 - csv@1.2.1 - ctor@0.1.26 - cxx-build@1.0.94 - cxx@1.0.94 - cxxbridge-flags@1.0.94 - cxxbridge-macro@1.0.94 - derivative@2.2.0 - derive_more@0.99.17 - diff@0.1.13 - dissimilar@1.0.6 - either@1.8.1 - ena@0.14.2 - env_logger@0.9.3 - errno-dragonfly@0.1.2 - errno@0.3.0 - expect-test@1.4.1 - fallible-iterator@0.2.0 - fallible-streaming-iterator@0.1.9 - fastrand@1.9.0 - flatbuffers@22.12.6 - fnv@1.0.7 - form_urlencoded@1.1.0 - getrandom@0.2.8 - half@1.8.2 - hashbrown@0.12.3 - hashlink@0.8.1 - heck@0.3.3 - hermit-abi@0.1.19 - hermit-abi@0.2.6 - hermit-abi@0.3.1 - humantime@2.1.0 - iana-time-zone-haiku@0.1.1 - iana-time-zone@0.1.56 - idna@0.3.0 - indexmap@1.9.3 - instant@0.1.12 - io-lifetimes@1.0.10 - itertools@0.10.5 - itoa@1.0.6 - js-sys@0.3.61 - lazy_static@1.4.0 - libc@0.2.141 - libflate@1.3.0 - libflate_lz77@1.2.0 - libsqlite3-sys@0.26.0 - link-cplusplus@1.0.8 - linux-raw-sys@0.3.1 - lock_api@0.4.9 - log@0.4.17 - lsp-types@0.91.1 - maplit@1.0.2 - memchr@2.5.0 - memoffset@0.8.0 - num-integer@0.1.45 - num-traits@0.2.15 - num_cpus@1.15.0 - once_cell@1.17.1 - oorandom@11.1.3 - ordered-float@3.6.0 - output_vt100@0.1.3 - pad@0.1.6 - parking_lot@0.11.2 - parking_lot_core@0.8.6 - percent-encoding@2.2.0 - pkg-config@0.3.26 - plotters-backend@0.3.4 - plotters-svg@0.3.3 - plotters@0.3.4 - pretty@0.11.3 - pretty_assertions@1.3.0 - proc-macro-error-attr@1.0.4 - proc-macro-error@1.0.4 - proc-macro2@1.0.56 - pulldown-cmark@0.9.2 - quote@1.0.26 - rayon-core@1.11.0 - rayon@1.7.0 - redox_syscall@0.2.16 - redox_syscall@0.3.5 - regex-syntax@0.6.29 - regex@1.7.3 - rle-decode-fast@1.0.3 - rusqlite@0.29.0 - rustc-hash@1.1.0 - rustc_version@0.4.0 - rustix@0.37.7 - ryu@1.0.13 - salsa-macros@0.17.0-pre.2 - salsa@0.17.0-pre.2 - same-file@1.0.6 - scopeguard@1.1.0 - scratch@1.0.5 - semver@1.0.17 - serde@1.0.159 - serde_cbor@0.11.2 - serde_derive@1.0.159 - serde_json@1.0.95 - serde_repr@0.1.12 - smallvec@1.10.0 - strsim@0.8.0 - structopt-derive@0.4.18 - structopt@0.3.26 - syn@1.0.109 - syn@2.0.13 - tempfile@3.5.0 - termcolor@1.2.0 - textwrap@0.11.0 - thiserror-impl@1.0.40 - thiserror@1.0.40 - tinytemplate@1.2.1 - tinyvec@1.6.0 - tinyvec_macros@0.1.1 - typed-arena@2.0.2 - unicase@2.6.0 - unicode-bidi@0.3.13 - unicode-ident@1.0.8 - unicode-normalization@0.1.22 - unicode-segmentation@1.10.1 - unicode-width@0.1.10 - url@2.3.1 - vcpkg@0.2.15 - vec_map@0.8.2 - version_check@0.9.4 - walkdir@2.3.3 - wasi@0.11.0+wasi-snapshot-preview1 - wasm-bindgen-backend@0.2.84 - wasm-bindgen-macro-support@0.2.84 - wasm-bindgen-macro@0.2.84 - wasm-bindgen-shared@0.2.84 - wasm-bindgen@0.2.84 - web-sys@0.3.61 - winapi-i686-pc-windows-gnu@0.4.0 - winapi-util@0.1.5 - winapi-x86_64-pc-windows-gnu@0.4.0 - winapi@0.3.9 - windows-sys@0.45.0 - windows-sys@0.48.0 - windows-targets@0.42.2 - windows-targets@0.48.0 - windows@0.48.0 - windows_aarch64_gnullvm@0.42.2 - windows_aarch64_gnullvm@0.48.0 - windows_aarch64_msvc@0.42.2 - windows_aarch64_msvc@0.48.0 - windows_i686_gnu@0.42.2 - windows_i686_gnu@0.48.0 - windows_i686_msvc@0.42.2 - windows_i686_msvc@0.48.0 - windows_x86_64_gnu@0.42.2 - windows_x86_64_gnu@0.48.0 - windows_x86_64_gnullvm@0.42.2 - windows_x86_64_gnullvm@0.48.0 - windows_x86_64_msvc@0.42.2 - windows_x86_64_msvc@0.48.0 - yansi@0.5.1 -" - -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/pkg-config@v0.2.11 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 ~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/pkg-config@v0.2.11/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/pkg-config@v0.2.11" || 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/pkg-config@v0.2.11/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" -} -- cgit v1.2.3