| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ifstat/ifstat-1.1-r2.ebuild,v 1.1 2012/07/11 01:50:49 jer Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
inherit autotools eutils |
| 7 |
|
| 8 |
IUSE="snmp" |
| 9 |
|
| 10 |
DESCRIPTION="Network interface bandwidth usage, with support for snmp targets." |
| 11 |
SRC_URI="http://gael.roualland.free.fr/ifstat/${P}.tar.gz" |
| 12 |
HOMEPAGE="http://gael.roualland.free.fr/ifstat/" |
| 13 |
|
| 14 |
SLOT="0" |
| 15 |
LICENSE="GPL-2" |
| 16 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
| 17 |
|
| 18 |
DEPEND="snmp? ( >=net-analyzer/net-snmp-5.0 )" |
| 19 |
RDEPEND="${DEPEND}" |
| 20 |
|
| 21 |
DOCS=( HISTORY README TODO ) |
| 22 |
|
| 23 |
src_prepare() { |
| 24 |
epatch "${FILESDIR}"/${P}-make.patch |
| 25 |
eautoreconf |
| 26 |
} |
| 27 |
|
| 28 |
src_configure() { |
| 29 |
econf $(use_with snmp) |
| 30 |
} |