You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/bmon/bmon-2.1.0-r3.ebuild,v 1.12 2012/03/06 19:07:32 jer Exp $
|
|
|
|
|
|
|
|
EAPI="1"
|
|
|
|
|
|
|
|
inherit eutils toolchain-funcs
|
|
|
|
|
|
|
|
DESCRIPTION="interface bandwidth monitor"
|
|
|
|
HOMEPAGE="http://www.infradead.org/~tgr/bmon/"
|
|
|
|
SRC_URI="http://people.suug.ch/~tgr/bmon/files/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 hppa ~ppc ~sparc x86"
|
|
|
|
IUSE="dbi rrdtool"
|
|
|
|
|
|
|
|
DEPEND=">=sys-libs/ncurses-5.3-r2
|
|
|
|
dev-libs/libnl:1.1
|
|
|
|
dbi? ( >=dev-db/libdbi-0.7.2-r1 )
|
|
|
|
rrdtool? ( >=net-analyzer/rrdtool-1.2.6-r1 )"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
unpack ${A}
|
|
|
|
cd "${S}"
|
|
|
|
# gcc4 fix, bug 105343
|
|
|
|
epatch "${FILESDIR}"/${P}-gcc4.diff
|
|
|
|
# Don't strip, bug #144370
|
|
|
|
epatch "${FILESDIR}"/${P}-nostrip.patch
|
|
|
|
# libnl crap, bug 176378
|
|
|
|
epatch "${FILESDIR}"/${P}-libnl-1.0.patch
|
|
|
|
# newer sysfs has symlinks for net class
|
|
|
|
epatch "${FILESDIR}"/${P}-sysfs-symlink.patch
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
econf \
|
|
|
|
$(use_enable dbi) \
|
|
|
|
$(use_enable rrdtool rrd) || die "econf failed"
|
|
|
|
emake CPPFLAGS="${CXXFLAGS} -I${WORKDIR}/libnl-${NLVER}/include" || die "emake failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" install || die "emake install failed"
|
|
|
|
dodoc ChangeLog
|
|
|
|
}
|