diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 17:40:43 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 17:40:43 +0000 |
commit | 24ee8c58752f0dc4376961a28f7364e6d7c7a7aa (patch) | |
tree | 0a71618e774dce4efc0ddc7808557a03925de8d9 /dev-db/influxdb | |
parent | a625efe29cec7f7c437cf33a956ea99eed1e4bd9 (diff) |
gentoo auto-resync : 24:02:2024 - 17:40:43
Diffstat (limited to 'dev-db/influxdb')
-rw-r--r-- | dev-db/influxdb/Manifest | 4 | ||||
-rw-r--r-- | dev-db/influxdb/files/influxdb.confd-r1 | 18 | ||||
-rw-r--r-- | dev-db/influxdb/files/influxdb.initd-r1 | 47 | ||||
-rw-r--r-- | dev-db/influxdb/influxdb-2.7.3-r1.ebuild (renamed from dev-db/influxdb/influxdb-2.7.3.ebuild) | 6 |
4 files changed, 73 insertions, 2 deletions
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.ebuild b/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() { |