blob: 3ee8a55dd6ef795f27be1ed1ba544d26194c8970 (
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
35
36
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/xnetload/xnetload-1.11.3-r1.ebuild,v 1.5 2007/07/22 08:09:16 pva Exp $
inherit toolchain-funcs
DESCRIPTION="This little tool displays a count and a graph of the traffic over a specified network connection."
HOMEPAGE="http://www.xs4all.nl/~rsmith/software/"
SRC_URI="http://www.xs4all.nl/~rsmith/software/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ppc ppc64 ~sparc x86"
DEPEND=">=x11-libs/libX11-1.0.0
>=x11-libs/libXmu-1.0.0
>=x11-libs/libXt-1.0.0
>=x11-libs/libXaw-1.0.1"
IUSE=""
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "s:CC = gcc:CC = $(tc-getCC):" \
-e "s:CFLAGS = -pipe -O2 -Wall:CFLAGS = ${CFLAGS} -Wall:" \
-e "s:LFLAGS = -s -pipe:LFLAGS = ${LDFLAGS}:" \
-e "s:gcc -MM:$(tc-getCC) -MM:" \
-e "s:/usr/X11R6:/usr:g" Makefile || die "sed failed in Makefile"
}
src_install() {
dobin xnetload
doman xnetload.1
dodoc README ChangeLog
}
|