From 2ff407caa92c3d695828f165f16de179329f1f7b Mon Sep 17 00:00:00 2001 From: Dale Showers Date: Wed, 20 May 2026 13:34:16 -0400 Subject: [PATCH] net-analyzer/reaction: use cargo_target_dir Closes: https://bugs.gentoo.org/975426 Signed-off-by: Dale Showers --- net-analyzer/reaction/reaction-2.3.0.ebuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/net-analyzer/reaction/reaction-2.3.0.ebuild b/net-analyzer/reaction/reaction-2.3.0.ebuild index 6731c13ac7..14fe717612 100644 --- a/net-analyzer/reaction/reaction-2.3.0.ebuild +++ b/net-analyzer/reaction/reaction-2.3.0.ebuild @@ -486,6 +486,7 @@ CRATES=" zerovec@0.11.5 zmij@1.0.15 " + inherit cargo shell-completion systemd DESCRIPTION="Scan logs and take action" @@ -501,14 +502,15 @@ LICENSE="AGPL-3" LICENSE+=" Apache-2.0 MIT MPL-2.0 Unicode-3.0" SLOT="0" KEYWORDS="~amd64" -RUST_MIN_VER="1.82.0" +RUST_MIN_VER="1.89.0" src_install() { cargo_src_install - newbashcomp target/release/${PN}.bash ${PN} - dofishcomp target/release/${PN}.fish + local target_dir="$(cargo_target_dir)" + newbashcomp ${target_dir}/${PN}.bash ${PN} + dofishcomp ${target_dir}/${PN}.fish systemd_dounit "${FILESDIR}/systemd/${PN}.service" - doman target/release/*.[0-9] + doman ${target_dir}/*.[0-9] doinitd "${FILESDIR}/init.d/${PN}" keepdir /var/lib/${PN} keepdir /etc/${PN}.d