blob: da57a96611ff829e06f77398447ec3ebcc0cb44e (
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
41
42
43
44
45
46
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/driftnet/driftnet-0.1.6.ebuild,v 1.4 2002/10/05 05:39:17 drobbins Exp $
IUSE="gtk"
DESCRIPTION="Driftnet is a program which listens to network traffic and picks out images from TCP streams it observes."
HOMEPAGE="http://www.ex-parrot.com/~chris/driftnet/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 sparc sparc64"
DEPEND="media-libs/jpeg
media-libs/libungif
net-libs/libpcap
gtk? ( <x11-libs/gtk+-1.3.0 )"
RDEPEND="media-sound/mpg123"
SRC_URI="http://www.ex-parrot.com/~chris/${PN}/${P}.tar.gz"
S=${WORKDIR}/${P}
src_compile() {
if [ `use gtk` ]
then
emake || die "gtk+ build failed"
mv driftnet driftnet-gtk
make clean || die
fi
patch -p1 <${FILESDIR}/${P}-nogtk.patch || die
emake || die
}
src_install () {
dobin driftnet
doman driftnet.1
use gtk && dobin driftnet-gtk
dodoc CHANGES COPYING CREDITS README TODO
einfo "marking the no-display driftnet as setuid root."
chown root.wheel ${D}/usr/bin/driftnet
chmod 750 ${D}/usr/bin/driftnet
chmod u+s ${D}/usr/bin/driftnet
}
|