summaryrefslogtreecommitdiff
blob: 0c7d4f8fb83b78df67f1fc4b8df80d8a39c2db86 (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
37
38
39
40
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/slurm/slurm-0.2.2.ebuild,v 1.6 2004/04/27 21:18:27 agriffis Exp $

inherit eutils

DESCRIPTION="Realtime network interface monitor based on FreeBSD's pppstatus"
HOMEPAGE="http://www.raisdorf.net/slurm/"
SRC_URI="http://www.raisdorf.net/files/code/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

DEPEND="sys-libs/ncurses"

# internal use flag for alternative color set ;>
IUSE="altcolors"

src_unpack() {

	unpack ${A}
	cd ${S}
	# fixes some typos and color usage
	epatch "${FILESDIR}/slurm-0.2.2-fix-gentoo.patch"

	# apply alternative color set (red & white)
	use altcolors && epatch "${FILESDIR}/slurm-0.2.2-altcolors-gentoo.patch"
}


src_compile() {
	./configure || die "configure failed"
	emake || die "make failed"
}

src_install() {
	dobin slurm
	doman slurm.1
	dodoc Changelog COPYRIGHT KEYS README THANKS TODO
}