blob: 2ad68112fb8093edae820a1870f455991ba75c20 (
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
|
# Copyright 1999-2004 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.11 2004/06/09 17:46:14 agriffis Exp $
inherit eutils
DESCRIPTION="A program which listens to network traffic and picks out images from TCP streams it observes"
HOMEPAGE="http://www.ex-parrot.com/~chris/driftnet/"
SRC_URI="http://www.ex-parrot.com/~chris/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="x86 sparc "
SLOT="0"
IUSE="gtk"
DEPEND="media-libs/jpeg
media-libs/libungif
net-libs/libpcap
gtk? ( <x11-libs/gtk+-1.3.0 )"
RDEPEND="virtual/mpg123"
src_compile() {
if use gtk; then
emake || die "gtk+ build failed"
mv driftnet driftnet-gtk
make clean || die
fi
epatch "${FILESDIR}/${P}-nogtk.patch"
emake || die "emake failed"
}
src_install () {
dobin driftnet || die "dobin failed"
doman driftnet.1 || die "doman failed"
if use gtk ; then
dobin driftnet-gtk || die "dobin failed (gtk)"
fi
dodoc CHANGES CREDITS README TODO || die "dodoc failed"
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"
}
|