2021-06-22 09:22:59 +02:00
|
|
|
# Copyright 2020-2021 Gentoo Authors
|
2020-03-28 23:58:16 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2024-07-01 22:22:11 +02:00
|
|
|
EAPI=8
|
2020-03-28 23:58:16 +01:00
|
|
|
|
2024-07-26 12:57:39 +02:00
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
2024-07-01 22:22:11 +02:00
|
|
|
PYTHON_COMPAT=( python3_{10..12} )
|
2020-03-28 23:58:16 +01:00
|
|
|
inherit distutils-r1 git-r3
|
|
|
|
|
|
|
|
MY_PN=${PN/nagios-/}
|
|
|
|
|
|
|
|
DESCRIPTION="A nagios-like plugin to check that zones are synced"
|
2024-07-26 12:57:39 +02:00
|
|
|
HOMEPAGE="https://github.com/alarig/check_dns_sync"
|
|
|
|
MY_GITHUB_AUTHOR="alarig"
|
2020-03-28 23:58:16 +01:00
|
|
|
EGIT_REPO_URI="https://github.com/${MY_GITHUB_AUTHOR}/${MY_PN}.git"
|
|
|
|
|
|
|
|
LICENSE="BSD-2"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
${DEPEND}
|
|
|
|
dev-python/nagiosplugin[${PYTHON_USEDEP}]
|
|
|
|
net-dns/bind-tools
|
|
|
|
"
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
2020-05-07 15:42:40 +02:00
|
|
|
python_scriptinto /usr/lib64/nagios/plugins/
|
|
|
|
python_foreach_impl python_newscript src/check_dns_sync/check_dns_sync.py \
|
2020-05-07 15:39:51 +02:00
|
|
|
check_dns_sync
|
2020-03-28 23:58:16 +01:00
|
|
|
}
|