From 24ee8c58752f0dc4376961a28f7364e6d7c7a7aa Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 24 Feb 2024 17:40:43 +0000 Subject: gentoo auto-resync : 24:02:2024 - 17:40:43 --- dev-db/Manifest.gz | Bin 16246 -> 16239 bytes dev-db/influxdb/Manifest | 4 +- dev-db/influxdb/files/influxdb.confd-r1 | 18 ++ dev-db/influxdb/files/influxdb.initd-r1 | 47 +++++ dev-db/influxdb/influxdb-2.7.3-r1.ebuild | 284 +++++++++++++++++++++++++++++++ dev-db/influxdb/influxdb-2.7.3.ebuild | 280 ------------------------------ 6 files changed, 352 insertions(+), 281 deletions(-) create mode 100644 dev-db/influxdb/files/influxdb.confd-r1 create mode 100644 dev-db/influxdb/files/influxdb.initd-r1 create mode 100644 dev-db/influxdb/influxdb-2.7.3-r1.ebuild delete mode 100644 dev-db/influxdb/influxdb-2.7.3.ebuild (limited to 'dev-db') diff --git a/dev-db/Manifest.gz b/dev-db/Manifest.gz index 05c33cdac109..ec69ff80f576 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 3abcb59675c7..6e8ac3dc8325 100644 --- a/dev-db/influxdb/Manifest +++ b/dev-db/influxdb/Manifest @@ -1,5 +1,7 @@ AUX influxdb.confd 489 BLAKE2B 8b7c6f674227e64de62041a3e7303eda89cebe98a8b7b33372b3eeefd7e56434d7a85dd65a9befcea0aa0f868d722c86261485d348f5ef66d52f7ceadb0e7b62 SHA512 0ecc1974d330bef0f2b8422ecc6fdb4eedf7fec60158102bb77cb292022d900cedf9cce255aaba490f45593de26cbba08a8569776dd340ade3239c78517aab5f +AUX influxdb.confd-r1 482 BLAKE2B 1626bb81b3ca3489cebecd6d333043a8f8f2c50b9a8457cc25c8ad49d63d2a2fdfae3dd82d5c3045d422773595ca5889cb8ff6628f5e727cec246a5f80cab311 SHA512 e40e1e771a1e26f0e9cc2d274585b68f6c4390deb54f97c42cbf9262794b148cd978609f2a323b0e5f7b2584f18fee00235540a37c0a20fc99928292b645c54f AUX influxdb.initd 1066 BLAKE2B 8ad52f4023289e481322697c1bc176a4bf95e138b8453a1d10c42e07a164d47697c2a9e25b79dd6292a117f0d852abcc558123f6083fb31c73bf80a16cd9fbfa SHA512 93419790d446b2c35848bf98cc4e1883bee39582cf72628bbe9f2ebbf9a828d3de33c393833d02cd8fadd48daa5318b5f242915e0b76e1a7a30e62d7c3cf6c26 +AUX influxdb.initd-r1 1083 BLAKE2B ca4b2f0d3c4b750396f6c35a567f43a359e0e858c9b3b89d68e42184471d2e4295471375055f8efa13a7884abd99b89d4706bff76cab1a719d2b9db11be6f84b SHA512 e035d28bee39459128b8b254911a66645541b01a6b293981be00bc437dc567cba8e02d0aa86df90eb575d752566071f99807f36ef0bb8d9bb98ef063292b3bf5 DIST adler32-1.2.0.crate 6411 BLAKE2B 51d44ccfd774158687b8244e83377e40ff896364e3d41e9015665131cc2a176d4ca0ab5a84df027dec0869ee735ee36f5687a06c1d2341de666070cdbab89483 SHA512 8ed72612fb78e213fc92963fdae0508ef26988656c939e6c9cddccbe2658d4a956a8ae934d9658262a8b2687dc446b3f1ee7614128b440487c81e606526dfda3 DIST ahash-0.7.6.crate 38030 BLAKE2B aca3661477fcd7822d6d10970151e05c28e1615f8cd7ddaac064b15102027e404b19b0f3f16dd76145048594ea1c22ae27dd08cc05c411efbae9ec7a1ef55ce9 SHA512 61354688b6fb096359faefb6f34be958cd2215d56b88c22c737d24183eaad433f811bc9e64f927e4852c87d2799c22fda82b55cfbef2ed6357ff74f0c4ffec68 DIST aho-corasick-0.7.20.crate 111440 BLAKE2B 3f5d54fea2793ce1c2c4d5b3049b910f45a5721e7538cb2557df63dc3069ab3f6b66aceb5e9a48f21c43ae29778fd045428ea103b2a6de81659e605e30e64ca6 SHA512 ad31f3d1b3fe41e593d4ca7e721bbad62936f2e6a17fd1e0997353edb6fc906d1bef2b79f0ac7c7676abe637bbabb23ff22059947be379a2441011f8178983c5 @@ -189,5 +191,5 @@ 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.3.ebuild 6297 BLAKE2B fbb116020aeaf5c01268af087823ad82c8b50740846b6fdd72252919ec6385451a80517ce8388f931e7dc07cea3398e06270d1b9201043c7825e1d4a5f48d596 SHA512 a94355c070c3e3daa5cb5784089005a25d6c1eca2cac12f432d75206a8bbc172a9f18dfdaa8d639fae858bb296b249a253c57a0185d4bb63205c762613f9fa69 +EBUILD influxdb-2.7.3-r1.ebuild 6373 BLAKE2B 2cc6c330d3d1cb326a48634e4ca327dcd6f4cba87016214a1c9a419aafcd441783d65a53e082aa00872920727e57d2172353facd5ea0ef740d61171045cd7059 SHA512 0d3ed90f50d4faca89c5bddd350956109a3e2b0f2923cf7b1a0b9768d4220ef9d9d16015a0383e03fae97f4b731132cc6102f633cfabc95e76114d5a68b0d1e1 MISC metadata.xml 794 BLAKE2B b2918ee4b0c547e06957606fc84ce3fa44144f6e4510ac2bca9008645ca4a08058f02c8cd96623575214763856a97f9fa887ca70dd8a9ba884c9328b1ea54a8a SHA512 4badc736aae9a6aa97766dedc40f906b983f91c9a08fe2784df2768bcbf4e164a365276bfcef271767b9d86afa7ccccbc8dbe31857641c724eeb0e2deeda01ee diff --git a/dev-db/influxdb/files/influxdb.confd-r1 b/dev-db/influxdb/files/influxdb.confd-r1 new file mode 100644 index 000000000000..7c225cfea51f --- /dev/null +++ b/dev-db/influxdb/files/influxdb.confd-r1 @@ -0,0 +1,18 @@ +#The convention in this file is to show the default setting commented +#out. +#To change the setting, uncomment it then change the value. + +#This is the influxd error log: +#error_log="/var/log/influxdb/influxd.log" + +#This is the influxd output log: +#output_log="/dev/null" + +#The influxd Config path location: +#config_path="/etc/influxdb/." + +# Extra options to pass to influxd: +#influxd_opts="" + +# Uncomment / edit to enable healthchecks +#INFLUXDB_HEALTHCHECK_URI="127.0.0.1:8086/ping" diff --git a/dev-db/influxdb/files/influxdb.initd-r1 b/dev-db/influxdb/files/influxdb.initd-r1 new file mode 100644 index 000000000000..ef7da61d271d --- /dev/null +++ b/dev-db/influxdb/files/influxdb.initd-r1 @@ -0,0 +1,47 @@ +#!/sbin/openrc-run + +# Logging +error_log="${error_log:-/var/log/influxdb/influxd.log}" +output_log="${output_log:-/dev/null}" + +config_path="${config_path:-/etc/influxdb/.}" +influxd_opts=${influxd_opts:-} + +command=/usr/bin/influxd +command_args="${influxd_opts}" +command_user="influxdb:influxdb" +extra_commands="version" + +retry=SIGTERM/30/SIGKILL/10 +supervisor="supervise-daemon" + +# Max open files +rc_ulimit="-n 65536" + +start_pre() { + # Check if config file exist + if [ -n "${config_path}" ] && [ ! -e "${config_path}" ]; then + checkpath -d -o "${command_user}" "$(dirname "${config_path}")" + fi + if [ -n "${error_log}" ] && [ ! -e "${error_log}" ]; then + checkpath -d -o "${command_user}" "$(dirname "${error_log}")" + fi + if [ -n "${output_log}" ] && [ ! -e "${output_log}" ]; then + checkpath -d -o "${command_user}" "$(dirname "${output_log}")" + fi + return 0 +} + +version() { + $command version +} + +if [ -n "${INFLUXDB_HEALTHCHECK_URI}" ]; then + healthcheck_delay=300 + healthcheck_timer=60 + + healthcheck() { + command -v wget || return 0 + wget -Oq- "${INFLUXDB_HEALTHCHECK_URI}" + } +fi diff --git a/dev-db/influxdb/influxdb-2.7.3-r1.ebuild b/dev-db/influxdb/influxdb-2.7.3-r1.ebuild new file mode 100644 index 000000000000..f14c9edbd5c8 --- /dev/null +++ b/dev-db/influxdb/influxdb-2.7.3-r1.ebuild @@ -0,0 +1,284 @@ +# 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.3" + +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/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 influxdb + newinitd "${FILESDIR}"/influxdb.initd 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.3.ebuild b/dev-db/influxdb/influxdb-2.7.3.ebuild deleted file mode 100644 index 6e2b4f1de31e..000000000000 --- a/dev-db/influxdb/influxdb-2.7.3.ebuild +++ /dev/null @@ -1,280 +0,0 @@ -# Copyright 1999-2023 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.3" - -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/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 influxdb - newinitd "${FILESDIR}"/influxdb.initd influxdb - keepdir /var/log/influxdb - fowners influxdb:influxdb /var/log/influxdb -} - -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