1 |
commit: 37bf177bef033402eebf2c00061319191efb8806 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 25 14:11:48 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 25 14:14:07 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37bf177b |
7 |
|
8 |
net-analyzer/driftnet: Version 1.3.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/driftnet/Manifest | 1 + |
14 |
net-analyzer/driftnet/driftnet-1.3.0.ebuild | 66 ++++++++++++++++++++++ |
15 |
.../driftnet/files/driftnet-1.3.0-CFLAGS.patch | 21 +++++++ |
16 |
3 files changed, 88 insertions(+) |
17 |
|
18 |
diff --git a/net-analyzer/driftnet/Manifest b/net-analyzer/driftnet/Manifest |
19 |
index bfbea558151..64dfbfd5032 100644 |
20 |
--- a/net-analyzer/driftnet/Manifest |
21 |
+++ b/net-analyzer/driftnet/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST driftnet-0.1.6_p20090401.tar.gz 43683 BLAKE2B a3f5c57c5f57247feca37815b84630422f9fdb9ec978791eadaaf0f0b51d1f744674931ea9bb1b9291fc9e556ec9758ff44210a442d219ceeabf71e0ea3a193f SHA512 93b2f7b644603bf2fea09163c3c8cc6eed7ed61f3ad7f6770a754e1a31afde5a75e27464c399261bfdafbe37729f201e6bbcb06bb6c59bf52ac0ede4393a15fa |
24 |
+DIST driftnet-1.3.0.tar.gz 4971618 BLAKE2B 1cf0a46caac2267c093bf21a0d8e150518dbfe0e76acbe21ef87cd760ccbe964313116ee24d25ad7759b3eeba19ef7925200caee4fd06bb28f9836217d889256 SHA512 45f1016a850cf9e5e294756e47e40eccb13f57a316ae7fa885eac2d5e53f68b9d9ef86868415eca76b108f7aa1f4080c550a91f789265edb0f6e3a55e05f5f0c |
25 |
|
26 |
diff --git a/net-analyzer/driftnet/driftnet-1.3.0.ebuild b/net-analyzer/driftnet/driftnet-1.3.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..7db19300b14 |
29 |
--- /dev/null |
30 |
+++ b/net-analyzer/driftnet/driftnet-1.3.0.ebuild |
31 |
@@ -0,0 +1,66 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+inherit autotools fcaps toolchain-funcs |
37 |
+ |
38 |
+DESCRIPTION="Watches network traffic and displays media from TCP streams observed" |
39 |
+HOMEPAGE="http://www.ex-parrot.com/~chris/driftnet/" |
40 |
+SRC_URI="https://github.com/deiv/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+KEYWORDS="~amd64 ~arm64 -sparc ~x86" |
44 |
+SLOT="0" |
45 |
+IUSE="debug gtk suid test" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ net-libs/libpcap |
49 |
+ net-libs/libwebsockets:=[client,http-proxy,socks5] |
50 |
+ gtk? ( |
51 |
+ media-libs/giflib:= |
52 |
+ media-libs/libpng:= |
53 |
+ virtual/jpeg:0 |
54 |
+ x11-libs/gtk+:2 |
55 |
+ ) |
56 |
+" |
57 |
+BDEPEND=" |
58 |
+ virtual/pkgconfig |
59 |
+" |
60 |
+DEPEND=" |
61 |
+ ${RDEPEND} |
62 |
+ test? ( dev-util/cmocka ) |
63 |
+" |
64 |
+DOCS=" |
65 |
+ Changelog CREDITS README.md TODO |
66 |
+" |
67 |
+PATCHES=( |
68 |
+ "${FILESDIR}"/${PN}-1.3.0-CFLAGS.patch |
69 |
+) |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
+ eautoreconf |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ econf $(use_enable gtk display) |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ default |
82 |
+ |
83 |
+ gzip -d "${ED}"/usr/share/man/man1/${PN}.1.gz || die |
84 |
+ |
85 |
+ if use suid ; then |
86 |
+ elog "marking the no-display driftnet as setuid root." |
87 |
+ fowners root:wheel "/usr/bin/driftnet" |
88 |
+ fperms 710 "/usr/bin/driftnet" |
89 |
+ fperms u+s "/usr/bin/driftnet" |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ fcaps \ |
95 |
+ cap_dac_read_search,cap_net_raw,cap_net_admin \ |
96 |
+ "${EROOT}"/usr/bin/driftnet |
97 |
+} |
98 |
|
99 |
diff --git a/net-analyzer/driftnet/files/driftnet-1.3.0-CFLAGS.patch b/net-analyzer/driftnet/files/driftnet-1.3.0-CFLAGS.patch |
100 |
new file mode 100644 |
101 |
index 00000000000..2b25ed45833 |
102 |
--- /dev/null |
103 |
+++ b/net-analyzer/driftnet/files/driftnet-1.3.0-CFLAGS.patch |
104 |
@@ -0,0 +1,21 @@ |
105 |
+--- a/configure.ac |
106 |
++++ b/configure.ac |
107 |
+@@ -68,12 +68,12 @@ |
108 |
+ , |
109 |
+ [enable_debug=yes]) |
110 |
+ |
111 |
+-if test "x$enable_debug" = xyes; then |
112 |
+- CFLAGS="-O2 -g -DDEBUG" |
113 |
+-else |
114 |
+- CFLAGS="-O2 -DNDEBUG" |
115 |
+-fi |
116 |
+-#AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes") |
117 |
++#if test "x$enable_debug" = xyes; then |
118 |
++# CFLAGS="-O2 -g -DDEBUG" |
119 |
++#else |
120 |
++# CFLAGS="-O2 -DNDEBUG" |
121 |
++#fi |
122 |
++AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes") |
123 |
+ |
124 |
+ # |
125 |
+ # Checks for programs. |