diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-09-25 16:11:48 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-09-25 16:14:07 +0200 |
commit | 37bf177bef033402eebf2c00061319191efb8806 (patch) | |
tree | c241c9583fc3ec636ce1b1501978a3fa908801c3 /net-analyzer/driftnet/driftnet-1.3.0.ebuild | |
parent | mail-client/neomutt: version bump to 2020-09-25 (diff) | |
download | gentoo-37bf177bef033402eebf2c00061319191efb8806.tar.gz gentoo-37bf177bef033402eebf2c00061319191efb8806.tar.bz2 gentoo-37bf177bef033402eebf2c00061319191efb8806.zip |
net-analyzer/driftnet: Version 1.3.0
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/driftnet/driftnet-1.3.0.ebuild')
-rw-r--r-- | net-analyzer/driftnet/driftnet-1.3.0.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/net-analyzer/driftnet/driftnet-1.3.0.ebuild b/net-analyzer/driftnet/driftnet-1.3.0.ebuild new file mode 100644 index 000000000000..7db19300b14b --- /dev/null +++ b/net-analyzer/driftnet/driftnet-1.3.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools fcaps toolchain-funcs + +DESCRIPTION="Watches network traffic and displays media from TCP streams observed" +HOMEPAGE="http://www.ex-parrot.com/~chris/driftnet/" +SRC_URI="https://github.com/deiv/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm64 -sparc ~x86" +SLOT="0" +IUSE="debug gtk suid test" + +RDEPEND=" + net-libs/libpcap + net-libs/libwebsockets:=[client,http-proxy,socks5] + gtk? ( + media-libs/giflib:= + media-libs/libpng:= + virtual/jpeg:0 + x11-libs/gtk+:2 + ) +" +BDEPEND=" + virtual/pkgconfig +" +DEPEND=" + ${RDEPEND} + test? ( dev-util/cmocka ) +" +DOCS=" + Changelog CREDITS README.md TODO +" +PATCHES=( + "${FILESDIR}"/${PN}-1.3.0-CFLAGS.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf $(use_enable gtk display) +} + +src_install() { + default + + gzip -d "${ED}"/usr/share/man/man1/${PN}.1.gz || die + + if use suid ; then + elog "marking the no-display driftnet as setuid root." + fowners root:wheel "/usr/bin/driftnet" + fperms 710 "/usr/bin/driftnet" + fperms u+s "/usr/bin/driftnet" + fi +} + +pkg_postinst() { + fcaps \ + cap_dac_read_search,cap_net_raw,cap_net_admin \ + "${EROOT}"/usr/bin/driftnet +} |