/[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 - (hide annotations) (download)
Sun Apr 27 14:15:28 2014 UTC (2 years, 3 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Removal (bug #501432).

1 s4t4n 1.8 # Copyright 1999-2010 Gentoo Foundation
2 s4t4n 1.1 # Distributed under the terms of the GNU General Public License v2
3 jer 1.9 # $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 s4t4n 1.1
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 dholm 1.5 KEYWORDS="amd64 ~ppc x86"
12 s4t4n 1.1 IUSE=""
13    
14 s4t4n 1.7 RDEPEND=">=sys-libs/ncurses-5.4-r1"
15    
16     DEPEND="${RDEPEND}
17     >=sys-apps/sed-4.1.4-r1"
18 s4t4n 1.1
19 s4t4n 1.6 src_unpack()
20     {
21     unpack ${A}
22    
23 s4t4n 1.8 #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 s4t4n 1.6 }
29    
30 s4t4n 1.1 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