blob: 337995cdc6772287b578f4d7fb1e9e0184ea5a42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/mrtg-ping-probe/mrtg-ping-probe-2.2.0.ebuild,v 1.4 2008/01/18 19:10:36 armin76 Exp $
DESCRIPTION="Addon mrtg contrib for stats ping/loss packets"
SRC_URI="ftp://ftp.pwo.de/pub/pwo/mrtg/mrtg-ping-probe/${P}.tar.gz"
HOMEPAGE="http://pwo.de/projects/mrtg/"
KEYWORDS="~x86"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
DEPEND="net-analyzer/mrtg"
src_unpack() {
unpack ${A} || die
cd ${S} || die
sed -i -e 's:#!/usr/local/bin/perl -w:#!/usr/bin/perl -w:' check-ping-fmt
#sed -i -e 's:#!/bin/ksh:#!/bin/sh:' mrtg-ping-cfg
#sed -i -e 's:head -10:head -n 10:' mrtg-ping-cfg
#sed -i -e 's:PING_PROBE=/usr/local/httpd/mrtg/mrtg-ping-probe:PING_PROBE=/usr/bin/mrtg-ping-probe:' mrtg-ping-cfg
sed -i -e 's:#!/bin/perl:#!/usr/bin/perl:' mrtg-ping-probe
}
src_compile() {
emake || 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
}
|