summaryrefslogtreecommitdiff
path: root/app-misc/carbon-c-relay
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-28 23:59:44 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-28 23:59:44 +0100
commit5f0030fd1370c4d03dbb2e0d3086f5e618a33749 (patch)
treed3996b456278fbe1e1528053ddd115c4bac05401 /app-misc/carbon-c-relay
parent413421048cc2b0df9a218f0ab3cb151846809eb5 (diff)
gentoo auto-resync : 28:04:2024 - 23:59:44
Diffstat (limited to 'app-misc/carbon-c-relay')
-rw-r--r--app-misc/carbon-c-relay/Manifest8
-rw-r--r--app-misc/carbon-c-relay/carbon-c-relay-3.7.3.ebuild58
-rw-r--r--app-misc/carbon-c-relay/carbon-c-relay-3.8.1.ebuild (renamed from app-misc/carbon-c-relay/carbon-c-relay-3.7.4-r1.ebuild)49
-rw-r--r--app-misc/carbon-c-relay/files/carbon-c-relay.initd-r174
-rw-r--r--app-misc/carbon-c-relay/metadata.xml1
5 files changed, 32 insertions, 158 deletions
diff --git a/app-misc/carbon-c-relay/Manifest b/app-misc/carbon-c-relay/Manifest
index c9ea29839fa0..7100e98c5456 100644
--- a/app-misc/carbon-c-relay/Manifest
+++ b/app-misc/carbon-c-relay/Manifest
@@ -1,9 +1,7 @@
AUX carbon-c-relay.confd-r1 365 BLAKE2B 10a531055296877bb027f5dc6546b054da7e5b84950bbcf8de8d4af552e61fcd9bbebeea3bc432a25f14103c4f2f30db4885259f855182e6923b79649e63fb60 SHA512 a432cf28c86ec45c807eeb5a7b506e7dcc6155c138aea5dc60eb8bcf5036ac0efc3a81fbc044af34dab5f05f250635892c5e706dfd69cc1087f0c283c3aa9393
-AUX carbon-c-relay.initd-r1 1801 BLAKE2B 4627b6e0d9a44d5c544ccff0c33557c73dd971929fbb442be79f3913752f39b1d534d4e4e936ebe94ebd5883d56e3f04314b9033c0a5ef7a3cbe7e05e1aeeb42 SHA512 5cf3c424a8be6bb55a80b58ce590838fec8ed26f8f407e8561c1e3ea094e80ad4021d153b3d816ab6d4e6589494d9ce621fe14196e223ef3a092d0aa26a63399
AUX carbon-c-relay.initd-r2 1805 BLAKE2B 4e45257b74319b06e3e4092d803ea967436dfedd3da10406dc398e9fe2a2fbd1cdc2020e47d1864209ed16adb8b4bfb77eabe41b304d9cc262da528e95935fbb SHA512 0842fa097c7a441907210b30ed1a75b9137d41f4c885f273d5d3b2eedd2403bb55bd7c443be10f8a4f3645d19ae1c466404a7b30c06d09810f7895fa64bb23f7
-DIST carbon-c-relay-3.7.3.tar.gz 575680 BLAKE2B d2d07c7f1ec356a16bb375bd740ffa018a0d256ef1ce97ae0555001411a05e28173c2009f3980b0d711977068392b5a0baca68f9dda3a677c7c3d245cad70a0e SHA512 ba3e4b7173abe5e3b018413a8d46d91c3f433e785dcf3d7643836b91f9a6ff993b22c3db51192476c75d45486d1e2541ad73056671b4bdbfd1447dcfc3f26ff3
DIST carbon-c-relay-3.7.4.tar.gz 584098 BLAKE2B 27fe6d7b785129aa6edd81e0a92880eee3530249900662e63f1ad7a9c1b4c8f9ff98635989311de964e4c42d4bb98f3ce1956ed170b8eceeea558ec3c191f45e SHA512 a9bcaa699e071e57e0a9092b97d1ead6781af4e00ef19f289a986c5baf56dec2c747961dfc2622285de034c17ce7ed2f5a7c856d617b26488dbdea58c4d72754
-EBUILD carbon-c-relay-3.7.3.ebuild 1554 BLAKE2B 5b6503c4885b83de536991982ed922e9dd29fe45b22ca521b3fec74670f10db374cf5d9b836bfd24f0813c649b6c0c1c67bac5928d826cf7adfae1fed69a88fa SHA512 618d79a13ec5d434aeebd9ebda98cb59a8e83a8533a4b60e7b7de4060801f9768e5910ab7f3a521c14b41652fdf2e36d9bbb1cad099b9b5e7f0b1ba6e59d2ded
-EBUILD carbon-c-relay-3.7.4-r1.ebuild 1561 BLAKE2B c6d83bf7ed429d8241f5c1fba7b2314f4df73cc78f07c47f19a26d735e12aa02527cabd65958a3b7a1ac6c4a580e1a8569123457f7ea29b33e6500b3695693ba SHA512 b3b5c6702bcc93722b40acf1d9fafa1f5a4be520b7a622152cb60788439141a97b0f6040d46d8013f65763e52c37f1de984f80df2a2ec25307a8499885cf5c44
+DIST carbon-c-relay-3.8.1.tar.gz 465489 BLAKE2B 984bc330e0188cd403461c44388e8166840eeafc6f76cefd3f13da617ef9026ee7638367522d046b7f7df268aecaa088603be98a7f5650cce7759b00193d52d0 SHA512 fd59bf8af91a606e03e80c7ab7c8819d6040e2f8057bd66c6fcdacc526e5ba41479b19393919d89712af78a5050dd61db378b9620a880e7cec6b5c9b19e10ff5
EBUILD carbon-c-relay-3.7.4-r3.ebuild 1331 BLAKE2B 5384dd8c9f18acc3dccfa78ee30d7dcd230b48ef2b50ece9bbe2c5240f49ab8b77a4b837aa0ff5f9b6492649e369ff9199adfaa0a71cbb524548eaebc66aa893 SHA512 82d7d9d46a32d9a9fe5ea52aa93a2f188711b9f9042f1ecd95d7993b1fb9cb20b7915eb2450c0d648ca5d79d02d57553eba30ba71a185e5dcb34429b6e52c6ec
-MISC metadata.xml 654 BLAKE2B 9cf6ce108100d80ba05644a782876997280ae4523b07366b3a88942fad4392fed358b134e8f33597fdc98540698531e3e7b0155e63194b4030de227f4a4c75e1 SHA512 954f00ed3ccde9cc651e9de24bcc2339deca58b2cc27f923801862fdc5298771ce5c0e729fa03c2d4d5b03624dbcbd3a17295b7e4e31fbb57221da861747d545
+EBUILD carbon-c-relay-3.8.1.ebuild 1432 BLAKE2B 2c2325504b024561d6f4a984c6a54b2830f981e1eaccd49c7a73310aa6cce9c88e1742e0edccfbd8616037e35f13229354cf8fecf644802c7b367a1132516067 SHA512 f0df2165193d24bd3f1425789af84ad5f480d70af5be760c3b7c24dd572c1494768968050db91734a9c7b16a4d89a4eb1ede3adc4147c9b8664027a3870b76ed
+MISC metadata.xml 729 BLAKE2B 524f22188951b038e4c33458cd3fac69b8cafc1f70a517b0115ef305c7a0e0961210582471eefc91ec9074afe96fae0e2dcc249f223148dca1a6f74c49216f3f SHA512 86e44039f5fb939cb0af1202e2ad9458f48203faec0ea2ea14dbba7a0da51272d6afac36dee2d5942f0ec000e6049e5687423dc6a0c17fa0687a8a0ceb3ec18b
diff --git a/app-misc/carbon-c-relay/carbon-c-relay-3.7.3.ebuild b/app-misc/carbon-c-relay/carbon-c-relay-3.7.3.ebuild
deleted file mode 100644
index 4e3fbd702416..000000000000
--- a/app-misc/carbon-c-relay/carbon-c-relay-3.7.3.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DESCRIPTION="Enhanced C version of Carbon relay, aggregator and rewriter"
-HOMEPAGE="https://github.com/grobian/carbon-c-relay"
-SRC_URI="https://github.com/grobian/carbon-c-relay/releases/download/v${PV}/${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~ppc64 ~x64-macos ~x64-solaris"
-IUSE="lz4 snappy zlib ssl pcre pcre2 +oniguruma"
-
-# ensure only one of pcre, pcre2 and oniguruma is set, or none (libc)
-# unforunately pcre is in global USE, so we have to exclude that here
-REQUIRED_USE="
- pcre2? ( !oniguruma )
- oniguruma? ( !pcre2 )
-"
-RDEPEND="lz4? ( app-arch/lz4 )
- snappy? ( app-arch/snappy )
- zlib? ( app-arch/gzip )
- ssl? ( dev-libs/openssl:0= )
- !oniguruma? ( !pcre2? ( pcre? ( dev-libs/libpcre ) ) )
- pcre2? ( dev-libs/libpcre2 )
- oniguruma? ( dev-libs/oniguruma )
- acct-group/carbon
- acct-user/carbon"
-DEPEND="${RDEPEND}"
-
-src_configure() {
- local pcrecfg
- if use !pcre2 && use !oniguruma ; then
- pcrecfg=$(use_with pcre)
- else
- pcrecfg="--without-pcre"
- fi
-
- econf $(use_with lz4) $(use_with snappy) \
- $(use_with ssl) $(use_with zlib gzip) \
- "${pcrecfg}" $(use_with pcre2) $(use_with oniguruma)
-}
-
-src_install() {
- default
-
- # rename too generic name
- mv "${ED}"/usr/bin/{relay,${PN}} || die
-
- # remove libfaketime, necessary for testing only
- rm -f "${ED}"/usr/$(get_libdir)/libfaketime.*
-
- dodoc ChangeLog.md
-
- newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
- newconfd "${FILESDIR}"/${PN}.confd-r1 ${PN}
-}
diff --git a/app-misc/carbon-c-relay/carbon-c-relay-3.7.4-r1.ebuild b/app-misc/carbon-c-relay/carbon-c-relay-3.8.1.ebuild
index 3282c5737a7d..17b4a10ca21f 100644
--- a/app-misc/carbon-c-relay/carbon-c-relay-3.7.4-r1.ebuild
+++ b/app-misc/carbon-c-relay/carbon-c-relay-3.8.1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
DESCRIPTION="Enhanced C version of Carbon relay, aggregator and rewriter"
HOMEPAGE="https://github.com/grobian/carbon-c-relay"
@@ -10,36 +10,44 @@ SRC_URI="https://github.com/grobian/carbon-c-relay/releases/download/v${PV}/${P}
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x64-macos ~x64-solaris"
-IUSE="lz4 snappy zlib ssl pcre pcre2 +oniguruma"
+IUSE="client lz4 snappy zlib ssl pcre2 +oniguruma"
-# ensure only one of pcre, pcre2 and oniguruma is set, or none (libc)
-# unforunately pcre is in global USE, so we have to exclude that here
+# ensure only one of pcre2 and oniguruma is set, or none (libc)
REQUIRED_USE="
pcre2? ( !oniguruma )
oniguruma? ( !pcre2 )
"
-RDEPEND="lz4? ( app-arch/lz4 )
+DEPEND="
+ lz4? ( app-arch/lz4 )
snappy? ( app-arch/snappy )
zlib? ( app-arch/gzip )
ssl? ( dev-libs/openssl:0= )
- !oniguruma? ( !pcre2? ( pcre? ( dev-libs/libpcre ) ) )
pcre2? ( dev-libs/libpcre2 )
oniguruma? ( dev-libs/oniguruma )
+"
+RDEPEND="
+ ${DEPEND}
acct-group/carbon
- acct-user/carbon"
-DEPEND="${RDEPEND}"
+ acct-user/carbon
+"
src_configure() {
- local pcrecfg
- if use !pcre2 && use !oniguruma ; then
- pcrecfg=$(use_with pcre)
- else
- pcrecfg="--without-pcre"
- fi
+ econf \
+ $(use_with lz4) \
+ $(use_with snappy) \
+ $(use_with ssl) \
+ $(use_with zlib gzip) \
+ --without-pcre \
+ $(use_with pcre2) \
+ $(use_with oniguruma)
+}
- econf $(use_with lz4) $(use_with snappy) \
- $(use_with ssl) $(use_with zlib gzip) \
- "${pcrecfg}" $(use_with pcre2) $(use_with oniguruma)
+src_compile() {
+ default
+ # build useful utility irregardless of FEATURES=test
+ if use client ; then
+ emake sendmetric || die
+ fi
}
src_install() {
@@ -47,9 +55,8 @@ src_install() {
# rename too generic name
mv "${ED}"/usr/bin/{relay,${PN}} || die
-
- # remove libfaketime, necessary for testing only
- rm -f "${ED}"/usr/$(get_libdir)/libfaketime.*
+ # install useful utility
+ use client && dobin sendmetric
dodoc ChangeLog.md
diff --git a/app-misc/carbon-c-relay/files/carbon-c-relay.initd-r1 b/app-misc/carbon-c-relay/files/carbon-c-relay.initd-r1
deleted file mode 100644
index 1e2734941cc1..000000000000
--- a/app-misc/carbon-c-relay/files/carbon-c-relay.initd-r1
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-extra_commands="configtest"
-extra_started_commands="reload"
-
-description="Lightweight graphite metrics router and aggregator."
-description_configtest="Run carbon-c-relay's internal config check."
-description_reload="Reload the carbon-c-relay configuration without losing connections."
-
-routes_config=${ROUTES_FILE:-/etc/${SVCNAME}.conf}
-
-command="/usr/bin/carbon-c-relay"
-command_args="-f ${routes_config} ${EXTRA_OPTS}"
-pidfile="/run/carbon-c-relay/${SVCNAME}.pid"
-logfile=${LOGFILE:-/var/log/${SVCNAME}.log}
-user=${USER:-carbon}
-group=${GROUP:-carbon}
-
-depend() {
- need net
- use dns
-}
-
-start_pre() {
- if [ "${RC_CMD}" != "restart" ]; then
- configtest || return 1
- fi
- touch "${logfile}"
- mkdir -p "${pidfile%/*}"
- chown ${user}:${group} "${logfile}" "${pidfile%/*}"
-}
-
-stop_pre() {
- if [ "${RC_CMD}" = "restart" ]; then
- configtest || return 1
- fi
-}
-
-stop_post() {
- rm -f "${pidfile}"
-}
-
-start() {
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --start --pidfile "${pidfile}" \
- --user ${user} --group ${group} \
- --exec ${command} -- -D -P "${pidfile}" -l "${logfile}" \
- ${command_args}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- # migration path
- local pfile=${pidfile}
- [[ -e /run/carbon-c-relay.pid ]] && pfile="/run/carbon-c-relay.pid"
- start-stop-daemon --stop --exec ${command} --pidfile "${pfile}"
- eend $?
-}
-
-reload() {
- configtest || return 1
- ebegin "Refreshing ${SVCNAME}'s configuration"
- kill -HUP $(< "${pidfile}") &>/dev/null
- eend $? "Failed to reload ${SVCNAME}"
-}
-
-configtest() {
- ebegin "Checking ${SVCNAME}'s configuration"
- ${command} -f "${routes_config}" -t < /dev/null > /dev/null
- eend $? "failed, please correct errors above"
-}
diff --git a/app-misc/carbon-c-relay/metadata.xml b/app-misc/carbon-c-relay/metadata.xml
index 6555a55f462c..a156277eb8f0 100644
--- a/app-misc/carbon-c-relay/metadata.xml
+++ b/app-misc/carbon-c-relay/metadata.xml
@@ -5,6 +5,7 @@
<email>grobian@gentoo.org</email>
</maintainer>
<use>
+ <flag name="client">build and install sendmetric client utility</flag>
<flag name="lz4">add support for LZ4 compressed transport</flag>
<flag name="snappy">add support for Snappy compressed transport</flag>
<flag name="pcre2">use <pkg>dev-libs/libpcre2</pkg> as regex implementation</flag>