[gentoo-commits] repo/gentoo:master commit in: dev-db/influxdb/files/, dev-db/influxdb/
commit: 27d408eda1c027c48312e7b9ae96b01cae508474 Author: Conrad Kostecki gentoo org> AuthorDate: Mon Feb 12 20:25:32 2024 + Commit: Conrad Kostecki gentoo org> CommitDate: Sat Feb 24 16:53:58 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27d408ed dev-db/influxdb: fix config handling The config handling changed in v2 completly. This means, the parameter "-config" is gone and does not exist anymore. Instead, INFLUXD_CONFIG_PATH needs to be defined with the path, where InfluxDB v2 needs to look for config files. For compatibility reason, we will use '/etc/influxdb'. This can be overriden by user. Closes: https://bugs.gentoo.org/908437 Signed-off-by: Conrad Kostecki gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35289 Signed-off-by: Conrad Kostecki gentoo.org> dev-db/influxdb/files/influxdb.confd-r1| 18 + dev-db/influxdb/files/influxdb.initd-r1| 47 ++ ...luxdb-2.7.3.ebuild => influxdb-2.7.3-r1.ebuild} | 6 ++- 3 files changed, 70 insertions(+), 1 deletion(-) diff --git a/dev-db/influxdb/files/influxdb.confd-r1 b/dev-db/influxdb/files/influxdb.confd-r1 new file mode 100644 index ..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 ..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.ebuild b/dev-db/influxdb/influxdb-2.7.3-r1.ebuild similarity index 98% rename from dev-db/influxdb/influxdb-2.7.3.ebuild rename to dev-db/influxdb/influxdb-2.7.3-r1.ebuild index 6e2b4f1de31e..f14c9edbd5c8 100644 --- a/dev-db/influxdb/influxdb-2.7.3.ebuild +++ b/dev-db/influxdb/influxdb-2.7.3-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -267,6 +267,10 @@ src_install() { 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() {
[gentoo-commits] repo/gentoo:master commit in: dev-db/influxdb/files/, dev-db/influxdb/
commit: 49371a1e0a5cb39497e91082fc2fa75d1a40129d Author: Konstantin Podshumok gmail com> AuthorDate: Wed Jul 31 03:37:01 2019 + Commit: Robin H. Johnson gentoo org> CommitDate: Wed Jul 15 21:29:52 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49371a1e dev-db/influxdb bump version 1.8.0, fix -version option, USE flag doc (Merged as influxdb-1.8.0-r1.ebuild by developer, cleanup commits follow) Bug: https://bugs.gentoo.org/691168 Bug: https://bugs.gentoo.org/695232 Closes: https://bugs.gentoo.org/689880 Closes: https://github.com/gentoo/gentoo/pull/12586 Signed-off-by: Konstantin Podshumok gmail.com> (cherry picked from commit 225ff981202f06c2a2eff344e89b0c987e4989a5) Signed-off-by: Robin H. Johnson gentoo.org> dev-db/influxdb/files/influxdb.confd | 6 + dev-db/influxdb/files/influxdb.rc-r1 | 43 +++ dev-db/influxdb/influxdb-1.8.0-r1.ebuild | 504 +++ 3 files changed, 553 insertions(+) diff --git a/dev-db/influxdb/files/influxdb.confd b/dev-db/influxdb/files/influxdb.confd index 44e8a9cd304..7541ad057ae 100644 --- a/dev-db/influxdb/files/influxdb.confd +++ b/dev-db/influxdb/files/influxdb.confd @@ -8,5 +8,11 @@ #This is the influxd output log: #output_log="/dev/null" +#The influxd Config file location: +#config="/etc/influxdb/influxdb.conf" + # 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.rc-r1 b/dev-db/influxdb/files/influxdb.rc-r1 new file mode 100644 index 000..28fd9f6861c --- /dev/null +++ b/dev-db/influxdb/files/influxdb.rc-r1 @@ -0,0 +1,43 @@ +#!/sbin/openrc-run + +config="${config:-/etc/influxdb/influxdb.conf}" + +supervisor="supervise-daemon" +command=/usr/bin/influxd +command_args="-config ${config} -pidfile ${pidfile} ${influxd_opts}" +command_user="influxdb:influxdb" + +retry=SIGTERM/30/SIGKILL/10 +wait=1000 + +# Logging +error_log="${error_log:-/var/log/influxdb/influxd.log}" +output_log="${output_log:-/dev/null}" + +# Max open files +rc_ulimit="-n 65536" + +start_pre() { + # Check if config file exist + if [ ! -r ${config} ]; then + eerror "config file ${config} doesn't exist" + return 1 + fi + if [ ! -f "$error_log" ]; then + mkdir -p "$(dirname $error_log)" + fi + if [ ! -f "$output_log" ]; then + mkdir -p "$(dirname $output_log)" + fi + return 0 +} + +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-1.8.0-r1.ebuild b/dev-db/influxdb/influxdb-1.8.0-r1.ebuild new file mode 100644 index 000..9879d5f13bb --- /dev/null +++ b/dev-db/influxdb/influxdb-1.8.0-r1.ebuild @@ -0,0 +1,504 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Scalable datastore for metrics, events, and real-time analytics" +HOMEPAGE="https://www.influxdata.com; + +inherit go-module systemd user + +EGO_PN="github.com/influxdata/${PN}" +EGO_SUM=( + "github.com/influxdata/flux v0.65.0" # MIT + "github.com/influxdata/influxql v1.1.0" # MIT + "github.com/influxdata/line-protocol v0.0.0-20180522152040-32c6aa80de5e" # MIT + "github.com/influxdata/tdigest v0.0.0-20181121200506-bf2b5ad3c0a9" # Apache-2.0 + "github.com/influxdata/roaring v0.4.13-0.20180809181101-fc520f41fab6" # Apache-2.0 + "github.com/influxdata/usage-client v0.0.0-20160829180054-6d3895376368" # MIT + "github.com/gogo/protobuf v1.1.1" # BSD + "cloud.google.com/go v0.51.0" # Apache-2.0 + "cloud.google.com/go/bigtable v1.2.0" # Apache-2.0 + "google.golang.org/appengine v1.6.5" # Apache-2.0 + "github.com/google/flatbuffers v1.11.0" # Apache-2.0 + "github.com/apache/arrow/go/arrow v0.0.0-20191024131854-af6fa24be0db" # Apache-2.0 + "github.com/c-bata/go-prompt v0.2.2" # MIT + "github.com/cespare/xxhash v1.1.0" # MIT + "github.com/eclipse/paho.mqtt.golang v1.2.0" # EPL-1.0 + "github.com/go-sql-driver/mysql v1.4.1" # MPL-2.0 + "github.com/golang/geo v0.0.0-20190916061304-5b978397cfec" # Apache-2.0 + "github.com/golang/protobuf v1.3.2" # BSD + "github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db" # BSD + "github.com/google/go-cmp v0.4.0" # BSD + "github.com/googleapis/gax-go/v2 v2.0.5" # BSD + "github.com/jsternberg/zap-logfmt v1.0.0" # MIT + "github.com/lib/pq v1.0.0" # MIT + "github.com/mattn/go-isatty v0.0.4" # MIT + "github.com/mattn/go-runewidth v0.0.3" # MIT + "github.com/matttproud/golang_protobuf_extensions v1.0.1" #
[gentoo-commits] repo/gentoo:master commit in: dev-db/influxdb/files/, dev-db/influxdb/
commit: e6b47481f9d802618856bc575f1391bd9eefc267 Author: William Hubbs gentoo org> AuthorDate: Fri Mar 23 21:15:59 2018 + Commit: William Hubbs gentoo org> CommitDate: Fri Mar 23 21:16:45 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6b47481 dev-db/influxdb: new package, Open Source time series database Package-Manager: Portage-2.3.24, Repoman-2.3.6 dev-db/influxdb/Manifest | 45 +++ dev-db/influxdb/files/influxd.conf| 140 ++ dev-db/influxdb/files/influxdb.confd | 12 +++ dev-db/influxdb/files/influxdb.rc | 34 + dev-db/influxdb/influxdb-1.5.1.ebuild | 102 + dev-db/influxdb/metadata.xml | 13 6 files changed, 346 insertions(+) diff --git a/dev-db/influxdb/Manifest b/dev-db/influxdb/Manifest new file mode 100644 index 000..b0af2f876cb --- /dev/null +++ b/dev-db/influxdb/Manifest @@ -0,0 +1,45 @@ +DIST github.com-BurntSushi-toml-a368813c5e648fee92e5f6c30e3944ff9d5e8895.tar.gz 42256 BLAKE2B 65fba0e39dbd7d9ffc5707379629ba9e8d91f186214afeb6b5f5960bd7d4b0f233247ecc1b23bff9c4ea8572f00b106ce5b833f88d975be5ffb29778fc18dcee SHA512 8a54f8b1f2fb9b5882d3c1498376c15aaf00eb8d9379090c38b03a6a291215923637dae9f36db1cca700687169cb08911e515222cd72fc153a5082ff4ddb5573 +DIST github.com-RoaringBitmap-roaring-cefad6e4f79d4fa5d1d758ff937dde300641ccfa.tar.gz 140675 BLAKE2B 229edd09629c2df7c3396a84ba3d4a427aa81e8a086a305059354b6ad1bb2009fba595068b727e57b51c4d610a23cab122b080536fed9326df42d7f2c41018a9 SHA512 6ca696bd1dec2c3b587e76614f64ca0b09df8af042c9193e6afcf23ec34f6f5e79ee13f9fdf450c5180c6eac07cf1e346cc2d64a653ef107d035efd98c71a23c +DIST github.com-beorn7-perks-4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9.tar.gz 10593 BLAKE2B 057738aefe26d3d42ba1bc0906675403512a7bab1161bc1015f6d833296778f2236cb2b99bbebd5c7db2384634fef62d2afbfc8dd59bfb1320bc6184105aa437 SHA512 ecac8d361b4695b1fc32a9aaf9e0785201d1bebbf270226540e2c3fe193ad21f4fe8aed4e01937bd1e7273ca394455ca6fd7cf29418710f279cbb8eb92939e32 +DIST github.com-bmizerany-pat-c068ca2f0aacee5ac3681d68e4d0a003b7d1fd2c.tar.gz 6245 BLAKE2B 69344b2fd9aef8454d35a1a77c5192e6d461bde063524636a1c59fe529325803ea98853073323f8957f8396fb8bac74ca135880b89120a6041007870b692e38f SHA512 62b061ed5a9f037744dec9927a4c3f85dd260cf951cbc62d1eb897ee2c24d7572071fe1a97a0fecd2be866a84ea935a1e6daa34c97018cd3b391f50f0a42398f +DIST github.com-boltdb-bolt-4b1ebc1869ad66568b313d0dc410e2be72670dda.tar.gz 83764 BLAKE2B b6e248bec2aec56d3713536c1cd00c7cacb54be0c21f4a3c82c461cc0782defd25ecd991b18945ca970bb159d9a46aad3851a697f6a0de4e3c5945c3d2208b5e SHA512 57586f4a26dfff950e766fd7663cc223b063aeafa32f7592a512b91bbd75315328313ec189a9461a17b65d36a99629f7b3fb0b3b6b1a2b23b1de9ad1f36a97fe +DIST github.com-cespare-xxhash-1b6d2e40c16ba0dfce5c8eac2480ad6e7394819b.tar.gz 7839 BLAKE2B d70832fb4aaf18a33b3f45e4fb82ba003e46ecc4b5cb2cbc85a482851126a15e93396f4103cad79f4d0d83d67eb583a96721a2076a89570bf08f1e88f9e89504 SHA512 f93e119df10acc2e525734207bad67024bc0a48e7d84f72713c8cdebe6ffa8a75f4f11504dc9a7d59ea960f5724ae16145156371e650a093a7591829ebec758b +DIST github.com-collectd-go-collectd-e84e8af5356e7f47485bbc95c96da6dd7984a67e.tar.gz 38929 BLAKE2B 42cd83708205c355c0bc8fdc400dad066286bdd19ba2a351255ca61b7c1bc5ed0ee9fa663c59c22dcc8327ed6b5fcc58d7f5793fe090b5aeb495ed57e1d4 SHA512 6b7ca8a439d9cb4d8a9b30620b7b6d278c625e4331d61ec2aed25e981e2cb5bbe44476e92feb1128a849cecd361d1976a82f26b6632e3d4fb58bee406ce635e4 +DIST github.com-davecgh-go-spew-346938d642f2ec3594ed81d874461961cd0faa76.tar.gz 42402 BLAKE2B e12d244274de239df8b72a2f020ed1f21a2dd2ebaf0448a431a9ec9d9d91a7face3f24936f3359fde39247c03c5aa5a61d2cc81bdf6bb668338cd81097bdfe7f SHA512 80b9f535dd85685cfd346b3c7f946fbc8b44d0537b7a3b7827103237a85f718fee2059067a7e1f21db13322f0d3ed1f7c44c36b451b8a6b5a0f6cf4e4db6553b +DIST github.com-dgrijalva-jwt-go-24c63f56522a87ec5339cc3567883f1039378fdb.tar.gz 33535 BLAKE2B b20b1b0e41b52674471cfac16d4e151a650ece6e4fcd6e176e3a42d3795c47f963d155abcf6f2d4bd2fd438069c9587b28c049687bd31eda2044eff2fa7e2969 SHA512 b3afa346607289628947345e0e30d17fb0e736bc0b93e326e8bc5d7b564ad77387536006c1d3112955c649c4aee2e3b4f73db1013e8815447f54f8664a4c +DIST github.com-dgryski-go-bits-2ad8d707cc05b1815ce6ff2543bb5e8d8f9298ef.tar.gz 2196 BLAKE2B 6ae32c4d0b9e4114f3b9d5a0c1a8c8e7a3d8a7aefe7ca3396f087660adcfceff789bbb6188d9f6806b35f99a7a6843d03eb77065508d5caa0c6716bc0b163283 SHA512 2d2a80187f913dd1801f6768ba79f1ccdc7b085eb60863ec58822ce38cc0a111dd916134dde5afc4366fcba846d2d21615dc6ca06012df3085179afbdff3d611 +DIST github.com-dgryski-go-bitstream-7d46cd22db7004f0cceb6f7975824b560cf0e486.tar.gz 3009 BLAKE2B 1bc80b61dcd45cde68ded690d7129e05c45e151290bdb6209030034305ec3557c208da6f5a5c28b71af2679dc75548cba4043f5fa5bb1fb5a700148e23860fe6 SHA512 7df53064b89f8f21238dd154ecf18575b87504d801d0a96198539e8f8a772e05ba12cc70ef3200d4170c7fda7e01753d7a7e46e6a8f966e7f96532e78c5db60e