commit:     5c91066fcef76c7baa4e87a21967c3138459c46b
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  9 23:53:57 2022 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Sep 10 00:19:43 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c91066f

net-analyzer/nagios-check_rbl: add 1.7.0

Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 net-analyzer/nagios-check_rbl/Manifest             |  1 +
 .../nagios-check_rbl/nagios-check_rbl-1.7.0.ebuild | 60 ++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/net-analyzer/nagios-check_rbl/Manifest 
b/net-analyzer/nagios-check_rbl/Manifest
index f9794ee78806..f5643f9d6de3 100644
--- a/net-analyzer/nagios-check_rbl/Manifest
+++ b/net-analyzer/nagios-check_rbl/Manifest
@@ -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

diff --git a/net-analyzer/nagios-check_rbl/nagios-check_rbl-1.7.0.ebuild 
b/net-analyzer/nagios-check_rbl/nagios-check_rbl-1.7.0.ebuild
new file mode 100644
index 000000000000..fe1663694bb6
--- /dev/null
+++ b/net-analyzer/nagios-check_rbl/nagios-check_rbl-1.7.0.ebuild
@@ -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
+}

Reply via email to