diff options
author | Stephen Klimaszewski <steev@gentoo.org> | 2008-02-16 02:24:07 +0000 |
---|---|---|
committer | Stephen Klimaszewski <steev@gentoo.org> | 2008-02-16 02:24:07 +0000 |
commit | be188f34fbde81ea90ac0be50a0843fe0455280b (patch) | |
tree | 163daf516251c3448349c39e629f1bab12238c7a /net-analyzer/driftnet | |
parent | Sign the xem-sources Manifest (diff) | |
download | gentoo-2-be188f34fbde81ea90ac0be50a0843fe0455280b.tar.gz gentoo-2-be188f34fbde81ea90ac0be50a0843fe0455280b.tar.bz2 gentoo-2-be188f34fbde81ea90ac0be50a0843fe0455280b.zip |
New patch from Debian, fixes compile issues. Going to unmask -r4.
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-analyzer/driftnet')
-rw-r--r-- | net-analyzer/driftnet/ChangeLog | 10 | ||||
-rw-r--r-- | net-analyzer/driftnet/driftnet-0.1.6-r4.ebuild | 77 |
2 files changed, 85 insertions, 2 deletions
diff --git a/net-analyzer/driftnet/ChangeLog b/net-analyzer/driftnet/ChangeLog index f0a33950488b..27b2832cc118 100644 --- a/net-analyzer/driftnet/ChangeLog +++ b/net-analyzer/driftnet/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/driftnet -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/driftnet/ChangeLog,v 1.31 2007/07/22 07:45:55 pva Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/driftnet/ChangeLog,v 1.32 2008/02/16 02:24:07 steev Exp $ + +*driftnet-0.1.6-r4 (16 Feb 2008) + + 16 Feb 2008; Steev Klimaszewski <steev@gentoo.org> + +driftnet-0.1.6-r4.ebuild: + New patch from Debian, fixes compile issues. Going to unmask -r4. 22 Jul 2007; <pva@gentoo.org> driftnet-0.1.6-r3.ebuild: Removed virtual/x11 dependency. diff --git a/net-analyzer/driftnet/driftnet-0.1.6-r4.ebuild b/net-analyzer/driftnet/driftnet-0.1.6-r4.ebuild new file mode 100644 index 000000000000..ac6082c7a417 --- /dev/null +++ b/net-analyzer/driftnet/driftnet-0.1.6-r4.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/driftnet/driftnet-0.1.6-r4.ebuild,v 1.1 2008/02/16 02:24:07 steev Exp $ + +inherit eutils flag-o-matic + +MY_P="${PN}_${PV}" +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="mirror://debian/pool/main/d/driftnet/${MY_P}.orig.tar.gz + mirror://debian/pool/main/d/driftnet/${MY_P}-8.diff.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc -sparc ~x86" +SLOT="0" +IUSE="gtk" + +RDEPEND="media-libs/jpeg + media-libs/giflib + media-libs/libpng + net-libs/libpcap + gtk? ( >=x11-libs/gtk+-2.0.0 )" + +DEPEND="${RDEPEND} + >=x11-misc/makedepend-1.0.0 + dev-util/pkgconfig" + +S="${WORKDIR}/${P}.orig" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${DISTDIR}"/${MY_P}-8.diff.gz + + # don't use gtk+ by default + sed -i 's:^\(.*gtk-config.*\)$:#\1:g' Makefile || die "sed disable gtk failed" +} + +src_compile() { + append-ldflags $(bindnow-flags) + + if use gtk; then + sed -i 's:^#\(.*gtk-config.*\)$:\1:g' Makefile || die "sed enable gtk failed" + emake || die "gtk+ build failed" + mv driftnet driftnet-gtk + make clean || die + else + append-flags -DNO_DISPLAY_WINDOW + fi + + emake || die "emake failed" +} + +src_install () { + dobin driftnet || die "dobin failed" + doman driftnet.1 || die "doman failed" + + use gtk && { dobin driftnet-gtk || die "dobin failed (gtk)" ; } + + dodoc CHANGES CREDITS README TODO || die "dodoc failed" + + elog "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" +} + +pkg_postinst() { + if ! has_version 'virtual/mpg123' ; then + elog + elog "In case you want driftnet to be able to play" + elog "audio files found on the streams, you need to do:" + elog " # emerge mpg123" + elog + fi +} |