diff options
author | Chris Reffett <creffett@gentoo.org> | 2014-08-22 14:30:54 +0000 |
---|---|---|
committer | Chris Reffett <creffett@gentoo.org> | 2014-08-22 14:30:54 +0000 |
commit | 21d4ebe78f70a54fb95b7b4149e2475f6a68d543 (patch) | |
tree | f1b63a3c84d61074e60a41977e670d4a23ffa619 /net-analyzer/driftnet | |
parent | old (diff) | |
download | gentoo-2-21d4ebe78f70a54fb95b7b4149e2475f6a68d543.tar.gz gentoo-2-21d4ebe78f70a54fb95b7b4149e2475f6a68d543.tar.bz2 gentoo-2-21d4ebe78f70a54fb95b7b4149e2475f6a68d543.zip |
QA: revbump, convert to EAPI 5.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'net-analyzer/driftnet')
-rw-r--r-- | net-analyzer/driftnet/ChangeLog | 8 | ||||
-rw-r--r-- | net-analyzer/driftnet/driftnet-0.1.6-r5.ebuild | 68 |
2 files changed, 75 insertions, 1 deletions
diff --git a/net-analyzer/driftnet/ChangeLog b/net-analyzer/driftnet/ChangeLog index 03ff7df3b5b2..59c967aa875a 100644 --- a/net-analyzer/driftnet/ChangeLog +++ b/net-analyzer/driftnet/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/driftnet # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/driftnet/ChangeLog,v 1.45 2014/07/27 11:18:47 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/driftnet/ChangeLog,v 1.46 2014/08/22 14:30:54 creffett Exp $ + +*driftnet-0.1.6-r5 (22 Aug 2014) + + 22 Aug 2014; Christopher Reffett <2011creffett@gentoo.org> + +driftnet-0.1.6-r5.ebuild: + QA: revbump, convert to EAPI 5. 26 Jul 2014; Pawel Hajdan jr <phajdan.jr@gentoo.org> driftnet-0.1.6_p20090401.ebuild: diff --git a/net-analyzer/driftnet/driftnet-0.1.6-r5.ebuild b/net-analyzer/driftnet/driftnet-0.1.6-r5.ebuild new file mode 100644 index 000000000000..3a13bdb6780c --- /dev/null +++ b/net-analyzer/driftnet/driftnet-0.1.6-r5.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 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-r5.ebuild,v 1.1 2014/08/22 14:30:54 creffett Exp $ + +EAPI=5 +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="virtual/jpeg + media-libs/giflib + media-libs/libpng + net-libs/libpcap + gtk? ( x11-libs/gtk+:2 )" + +DEPEND="${RDEPEND} + >=x11-misc/makedepend-1.0.0 + virtual/pkgconfig" + +S="${WORKDIR}/${P}.orig" + +src_prepare() { + 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_configure() { + if use gtk; then + sed -i 's:^#\(.*gtk-config.*\)$:\1:g' Makefile || die "sed enable gtk failed" + else + append-flags -DNO_DISPLAY_WINDOW + fi +} + +src_compile() { + if use gtk; then + emake || die "gtk+ build failed" + mv driftnet driftnet-gtk + make clean || die + fi + + emake +} + +src_install () { + dobin driftnet + doman driftnet.1 + + use gtk && dobin driftnet-gtk + + dodoc CHANGES CREDITS README TODO + + 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" +} |