# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=standalone PYTHON_COMPAT=( python3_{9..15} ) inherit distutils-r1 MY_PN="${PN/nagios-plugin-/}" DESCRIPTION="check_systemd is a Nagios / Icinga monitoring plugin to check systemd" HOMEPAGE="https://github.com/Josef-Friedrich/check_systemd" SRC_URI="https://github.com/Josef-Friedrich/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/${MY_PN}-${PV}" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64" RDEPEND="dev-python/nagiosplugin" src_install() { distutils-r1_src_install dodir "/usr/$(get_libdir)/nagios/plugins" dosym -r "/usr/lib/python-exec/python3.14/check_systemd" "/usr/$(get_libdir)/nagios/plugins/check_systemd" || die }