[app-admin/fluentd] bump, build tested and starts, nothing else yet

This commit is contained in:
2025-11-28 13:41:56 +01:00
parent 8de4f95793
commit 688a8df0b5
6 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby33 ruby34"
inherit ruby-fakegem
DESCRIPTION="data collector and unified logging layer (project under CNCF)"
HOMEPAGE="https://www.fluentd.org"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
COMMON_DEPEND="acct-group/fluentd
acct-user/fluentd"
DEPEND="${COMMON_DEPEND}
test? (
dev-ruby/async
dev-ruby/test-unit-rr
dev-ruby/rr[test]
dev-ruby/timecop
)
"
RDEPEND="${COMMON_DEPEND}"
ruby_add_rdepend "
dev-ruby/bundler
>=dev-ruby/coolio-1.8.1
>=dev-ruby/http_parser_rb-0.8.0
>=dev-ruby/msgpack-1.7.5
>=dev-ruby/serverengine-2.3.2
>=dev-ruby/sigdump-0.2.5
>=dev-ruby/strptime-0.2.4
>=dev-ruby/tzinfo-2.0.6
>=dev-ruby/webrick-1.8.2
>=dev-ruby/yajl-ruby-1.4.3"
ruby_add_depend "test? ( dev-ruby/flexmock )"
all_ruby_prepare() {
sed -i \
-e '/tzinfo-data/d' \
-e '/dig_rb/d' \
"${PN}".gemspec || die "'sed failed"
# Avoid test dependency on unpackaged oj
rm -f test/test_event_time.rb || die
}
all_ruby_install() {
all_fakegem_install
keepdir /var/log/fluentd
fowners fluentd:adm /var/log/fluentd
insinto /etc/fluent
doins fluent.conf
newconfd "${FILESDIR}"/${PN}.confd ${PN}
newinitd "${FILESDIR}"/${PN}.initd ${PN}
insinto /etc/logrotate.d
newins "${FILESDIR}"/${PN}.logrotate ${PN}
}
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]]; then
elog "A default configuration file has been installed in"
elog "${EROOT}/etc/fluent/fluent.conf. You will need to edit"
elog "this file to match your configuration."
fi
}