summaryrefslogtreecommitdiff
blob: 4cbac28200f91cd1e724485fda54c99c7e648c5b (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-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netwatch/netwatch-1.3.0.1.ebuild,v 1.3 2010/06/28 19:46:54 fauli Exp $

EAPI="2"

inherit versionator eutils

MY_PV=$(replace_version_separator 3 '-')

DESCRIPTION="Ethernet/PPP IP Packet Monitor"
HOMEPAGE="http://www.slctech.org/~mackay/netwatch.html"
SRC_URI="http://www.slctech.org/~mackay/NETWATCH/${PN}-${MY_PV}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="doc"

RDEPEND="sys-libs/ncurses"
DEPEND="${RDEPEND}
	sys-kernel/linux-headers"

S=${WORKDIR}/${PN}-$(get_version_component_range 1-3)

src_prepare() {
	epatch "${FILESDIR}"/append_ldflags.patch
	epatch "${FILESDIR}/${PN}.c.patch"
}

src_install() {
	dosbin netresolv netwatch || die "dosbin failed"

	doman netwatch.1 || die "doman failed"
	dodoc BUGS CHANGES README* TODO || die "dodoc failed"

	if use doc; then
		dohtml NetwatchKeyCommands.html || die "dohtml failed"
	fi
}