net-analyzer/reaction: use cargo_target_dir

Closes: https://bugs.gentoo.org/975426
Signed-off-by: Dale Showers <gentoo@fictx.com>
This commit is contained in:
Dale Showers committed 2026-05-20 13:40:27 -04:00
1 parent e5418d03c6
commit 2ff407caa9
1 file changed
+6 -4
+6 -4
View File
@@ -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