summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-01-26 22:49:59 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-01-26 22:49:59 +0000
commitb82a5093d014bb9ca6f44c7e3d39b8a9a199d047 (patch)
tree8a1fa37e34926f44c2c9d5d5c3a4ae32f7042ef9 /net-analyzer/driftnet/driftnet-0.1.6.ebuild
parentUpdate version (diff)
downloadgentoo-2-b82a5093d014bb9ca6f44c7e3d39b8a9a199d047.tar.gz
gentoo-2-b82a5093d014bb9ca6f44c7e3d39b8a9a199d047.tar.bz2
gentoo-2-b82a5093d014bb9ca6f44c7e3d39b8a9a199d047.zip
use epatch; more error checking/messages; tidy
Diffstat (limited to 'net-analyzer/driftnet/driftnet-0.1.6.ebuild')
-rw-r--r--net-analyzer/driftnet/driftnet-0.1.6.ebuild42
1 files changed, 20 insertions, 22 deletions
diff --git a/net-analyzer/driftnet/driftnet-0.1.6.ebuild b/net-analyzer/driftnet/driftnet-0.1.6.ebuild
index 349a746d13aa..3f4f103de7ef 100644
--- a/net-analyzer/driftnet/driftnet-0.1.6.ebuild
+++ b/net-analyzer/driftnet/driftnet-0.1.6.ebuild
@@ -1,46 +1,44 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+# 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.8 2003/12/06 02:49:08 zul Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/driftnet/driftnet-0.1.6.ebuild,v 1.9 2004/01/26 22:49:37 mr_bones_ Exp $
-IUSE="gtk"
+inherit eutils
-DESCRIPTION="Driftnet is a program which listens to network traffic and picks out images from TCP streams it observes."
+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"
-SLOT="0"
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="media-sound/mpg123"
-SRC_URI="http://www.ex-parrot.com/~chris/${PN}/${P}.tar.gz"
-
-S=${WORKDIR}/${P}
src_compile() {
- if [ `use gtk` ]
- then
+ 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
+ epatch "${FILESDIR}/${P}-nogtk.patch"
+ emake || die "emake failed"
}
src_install () {
- dobin driftnet
- doman driftnet.1
- use gtk && dobin driftnet-gtk
- dodoc CHANGES COPYING CREDITS README TODO
+ 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
+ chown root:wheel "${D}/usr/bin/driftnet"
+ chmod 750 "${D}/usr/bin/driftnet"
+ chmod u+s "${D}/usr/bin/driftnet"
}