net-analyzer/nagios-check_rbl: add 1.7.0

Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky
2022-09-09 19:53:57 -04:00
parent 8aa0e92c56
commit 5c91066fce
2 changed files with 61 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST check_rbl-1.6.3.tar.gz 50250 BLAKE2B cdaaf7252871c6a2cf34a1cacef36251b8526b73f4edb73fc1611a3426f350523928532bc78068438b8e71ec0e023da46749673aa5e9e1d5c6cd8b889f330305 SHA512 2fc84089eb9e41657f522aa7813776b3d46811759e177d031ff5d2f737d63c00897d50d5d878c1e5d5368ca1dde0b173e81b8a6f16fbb970270ef63d988add9b
DIST check_rbl-1.7.0.tar.gz 51673 BLAKE2B 7e2d23ea5cd44082ebe9963326bc2a8517c737640fada229d0b65d64ac92ce50e80b675834f4bd7dbc56d653e0243558fe6f1c402b11498d48bc948d3facda57 SHA512 5b219362bfa736832e935c64019ee50b87d4f9cc2bce0ab4795eb4c59e03712adc9461cdd6624cbaf1d98a5afdd9f611dbdc58fd913a4478b0fef0664cddcf80

View File

@@ -0,0 +1,60 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Monitor whether or not a host is blacklisted"
HOMEPAGE="https://github.com/matteocorti/check_rbl"
MY_P="${P/nagios-/}"
SRC_URI="https://github.com/matteocorti/check_rbl/releases/download/v${PV}/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~sparc ~x86"
IUSE=""
# No, this is not redundant -- see bug 627082.
RESTRICT=test
# The package's INSTALL/Makefile.PL files specify its dependencies.
#
# * Capture::Tiny (dev-perl/Capture-Tiny)
# * Data::Validate::Domain (dev-perl/Data-Validate-Domain)
# * Data::Validate::IP (dev-perl/Data-Validate-IP)
# * IO::Select (dev-lang/perl)
# * Monitoring::Plugin (dev-perl/Monitoring-Plugin)
# * Monitoring::Plugin::Getopt (dev-perl/Monitoring-Plugin)
# * Monitoring::Plugin::Threshold (dev-perl/Monitoring-Plugin)
# * Net::DNS (dev-perl/Net-DNS)
# * Net::IP (dev-perl/Net-IP)
# * Readonly (dev-perl/Readonly)
# * Socket (virtual/perl-Socket)
#
RDEPEND="dev-lang/perl
dev-perl/Capture-Tiny
dev-perl/Data-Validate-Domain
dev-perl/Data-Validate-IP
dev-perl/Monitoring-Plugin
dev-perl/Net-DNS
dev-perl/Net-IP
dev-perl/Readonly
virtual/perl-Socket"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
src_configure() {
perl Makefile.PL INSTALLDIRS=vendor || die
}
src_install() {
default
local nagiosplugindir=/usr/$(get_libdir)/nagios/plugins
# It's simplest to move this file after it's been installed.
dodir "${nagiosplugindir}"
mv "${D}"/usr/bin/check_rbl "${D}"/"${nagiosplugindir}" || die
}