summaryrefslogtreecommitdiff
blob: 44bf6f336f38a4050b6e30da164c75ba7893f3d1 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ngrep/ngrep-1.42.ebuild,v 1.14 2005/02/20 20:09:24 ka0ttic Exp $

inherit eutils

DESCRIPTION="A grep for network layers"
HOMEPAGE="http://ngrep.sourceforge.net/"
SRC_URI="mirror://sourceforge/ngrep/${P}.tar.bz2"

LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ppc-macos s390 sparc x86"
IUSE=""

RDEPEND="virtual/libc
	virtual/libpcap"
DEPEND="${RDEPEND}"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-libpcap-include.patch
}

src_compile() {
	WANT_AUTOCONF=2.5 autoconf || die "autoconf failed"

	econf || die "econf failed"
	make || die "make failed"
}

src_install() {
	dobin ngrep
	doman ngrep.8
	dodoc BUGS CHANGES CREDITS INSTALL LICENSE README README.pcre TODO
}