mrtg-ping-probe-2.2.0.ebuild 726 B

12345678910111213141516171819202122232425262728293031323334
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. DESCRIPTION="Addon mrtg contrib for stats ping/loss packets"
  5. SRC_URI="ftp://ftp.pwo.de/pub/pwo/mrtg/${PN}/${P}.tar.gz"
  6. HOMEPAGE="http://pwo.de/projects/mrtg/"
  7. KEYWORDS="~x86"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. DEPEND="dev-lang/perl"
  11. RDEPEND="
  12. ${DEPEND}
  13. net-analyzer/mrtg
  14. "
  15. src_prepare() {
  16. sed -i check-ping-fmt \
  17. -e 's:#!/usr/local/bin/perl -w:#!/usr/bin/perl -w:' \
  18. || die
  19. sed -i mrtg-ping-probe \
  20. -e 's:#!/bin/perl:#!/usr/bin/perl:' \
  21. || die
  22. }
  23. src_install () {
  24. dodoc ChangeLog NEWS README TODO mrtg.cfg-ping
  25. doman mrtg-ping-probe.1
  26. dobin check-ping-fmt mrtg-ping-probe "${FILESDIR}"/mrtg-ping-cfg
  27. }