/[gentoo-x86]/net-analyzer/ethstatus/ethstatus-0.4.2-r2.ebuild
Gentoo

Contents of /net-analyzer/ethstatus/ethstatus-0.4.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Apr 27 14:15:28 2014 UTC (7 months, 3 weeks ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Removal (bug #501432).

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/ethstatus/ethstatus-0.4.2-r2.ebuild,v 1.8 2010/03/11 14:07:28 s4t4n Exp $
4
5 DESCRIPTION="ncurses based utility to display real time statistics about network traffic."
6 HOMEPAGE="http://ethstatus.calle69.net/"
7 SRC_URI="mirror://debian/pool/main/e/ethstatus/${PN}_${PV}.orig.tar.gz"
8
9 LICENSE="GPL-2"
10 SLOT="0"
11 KEYWORDS="amd64 ~ppc x86"
12 IUSE=""
13
14 RDEPEND=">=sys-libs/ncurses-5.4-r1"
15
16 DEPEND="${RDEPEND}
17 >=sys-apps/sed-4.1.4-r1"
18
19 src_unpack()
20 {
21 unpack ${A}
22
23 #Make it honour user LDFLAGS, see bug #290840 (part 1)
24 sed -i 's/LDFLAGS = -lncurses//' "${S}/Makefile"
25
26 #Fix LDFLAGS ordering, see bug #247926, #290840 (part 2)
27 sed -i 's/$(LDFLAGS) -o ${BIN} ${SRC}/-o ${BIN} ${SRC} $(LDFLAGS) -lncurses/' "${S}/Makefile"
28 }
29
30 src_compile()
31 {
32 emake CFLAGS="${CFLAGS}" || die "Compilation failed"
33 }
34
35 src_install()
36 {
37 dobin ethstatus
38 doman ethstatus.1
39 dodoc CHANGELOG README
40 }

  ViewVC Help
Powered by ViewVC 1.1.20