From 8de56dc82d802e0376379f95406d794b4dd0adda Mon Sep 17 00:00:00 2001 From: Jakov Smolić Date: Tue, 11 Jan 2022 22:03:21 +0100 Subject: net-analyzer/mrtg-ping-probe: Port to EAPI 8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/826830 Signed-off-by: Jakov Smolić --- .../mrtg-ping-probe-2.2.0-r1.ebuild | 32 +++++++++++++++++++++ .../mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild | 33 ---------------------- 2 files changed, 32 insertions(+), 33 deletions(-) create mode 100644 net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0-r1.ebuild delete mode 100644 net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild (limited to 'net-analyzer/mrtg-ping-probe') diff --git a/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0-r1.ebuild b/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0-r1.ebuild new file mode 100644 index 000000000000..c435fe21a0b3 --- /dev/null +++ b/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0-r1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Addon mrtg contrib for stats ping/loss packets" +HOMEPAGE="http://pwo.de/projects/mrtg/" +SRC_URI="ftp://ftp.pwo.de/pub/pwo/mrtg/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +BDEPEND="dev-lang/perl" +RDEPEND=" + net-analyzer/mrtg +" + +src_prepare() { + sed -i check-ping-fmt \ + -e 's:#!/usr/local/bin/perl -w:#!/usr/bin/perl -w:' \ + || die + sed -i mrtg-ping-probe \ + -e 's:#!/bin/perl:#!/usr/bin/perl:' \ + || die +} + +src_install() { + dodoc ChangeLog NEWS README TODO mrtg.cfg-ping + doman mrtg-ping-probe.1 + dobin check-ping-fmt mrtg-ping-probe "${FILESDIR}"/mrtg-ping-cfg +} diff --git a/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild b/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild deleted file mode 100644 index 98d1db01c9ce..000000000000 --- a/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -DESCRIPTION="Addon mrtg contrib for stats ping/loss packets" -SRC_URI="ftp://ftp.pwo.de/pub/pwo/mrtg/${PN}/${P}.tar.gz" -HOMEPAGE="http://pwo.de/projects/mrtg/" - -KEYWORDS="~x86" -LICENSE="GPL-2" -SLOT="0" - -DEPEND="dev-lang/perl" -RDEPEND=" - ${DEPEND} - net-analyzer/mrtg -" - -src_prepare() { - sed -i check-ping-fmt \ - -e 's:#!/usr/local/bin/perl -w:#!/usr/bin/perl -w:' \ - || die - sed -i mrtg-ping-probe \ - -e 's:#!/bin/perl:#!/usr/bin/perl:' \ - || die -} - -src_install() { - dodoc ChangeLog NEWS README TODO mrtg.cfg-ping - doman mrtg-ping-probe.1 - dobin check-ping-fmt mrtg-ping-probe "${FILESDIR}"/mrtg-ping-cfg -} -- cgit v1.2.3-65-gdbad