net-misc/ntpd-rs: install the metrics unit only with USE=metrics

ntpd-rs-metrics.service runs as ntpd-rs-observe, which only metrics? pulls in, so
with USE=-metrics the unit was installed but could not start. The OpenRC script was
already conditional.

Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
Zakk committed 2026-10-21 17:42:42 +11:00
1 parent 0c00052bc6
commit 06773a9a5b
1 file changed
+2 -2
@@ -1,4 +1,4 @@
# Copyright 2024-2025 Gentoo Authors
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.13.3
@@ -52,6 +52,6 @@ src_install(){
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
use metrics && newinitd "${FILESDIR}/${PN}-metrics.initd" "${PN}-metrics"
systemd_dounit ../docs/examples/conf/ntpd-rs-metrics.service
use metrics && systemd_dounit ../docs/examples/conf/ntpd-rs-metrics.service
systemd_dounit ../docs/examples/conf/ntpd-rs.service
}