annotate net-analyzer/mrtg/mrtg-2.16.4.ebuild @ 261:37e37d78b2a2

imapfilter-2.2.2 is in portage
author holger
date Wed, 13 Oct 2010 10:01:26 +0200
parents 8be68a037e29
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
234
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
1 # Copyright 1999-2010 Gentoo Foundation
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/mrtg/mrtg-2.16.2-r1.ebuild,v 1.1 2010/05/29 04:48:18 pva Exp $
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
4
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
5 EAPI="3"
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
6
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
7 DESCRIPTION="A tool to monitor the traffic load on network-links"
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
8 HOMEPAGE="http://oss.oetiker.ch/mrtg/"
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
9 SRC_URI="http://oss.oetiker.ch/mrtg/pub/${P}.tar.gz"
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
10
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
11 LICENSE="GPL-2"
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
12 SLOT="0"
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
13 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
14 IUSE=""
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
15
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
16 DEPEND="dev-lang/perl
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
17 dev-perl/SNMP_Session
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
18 >=media-libs/gd-1.8.4"
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
19
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
20 src_prepare() {
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
21 rm ./lib/mrtg2/{SNMP_{Session,util},BER}.pm || die
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
22 }
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
23
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
24 src_install () {
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
25 keepdir /var/lib/mrtg
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
26
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
27 emake DESTDIR="${ED}" install || die "emake install failed"
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
28 mv "${ED}/usr/share/doc/"{mrtg2,${PF}}
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
29
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
30 newinitd "${FILESDIR}/mrtg.rc" ${PN} || die
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
31 newconfd "${FILESDIR}/mrtg.confd" ${PN} || die
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
32 }
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
33
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
34 pkg_postinst(){
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
35 elog "You must configure mrtg before being able to run it. Try cfgmaker."
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
36 elog "The following thread may be useful:"
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
37 elog "http://forums.gentoo.org/viewtopic-t-105862.html"
8be68a037e29 bump mrtg to 2.16.4 for perl-5.12
holger
parents:
diff changeset
38 }