1 |
commit: 6e96fc7ddfff8abf609d6c78ddeaf95cf371559a |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 14 13:36:39 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 14 13:36:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e96fc7d |
7 |
|
8 |
net-analyzer/wireshark: Old. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
net-analyzer/wireshark/Manifest | 1 - |
13 |
net-analyzer/wireshark/metadata.xml | 1 - |
14 |
net-analyzer/wireshark/wireshark-2.2.2.ebuild | 274 -------------------------- |
15 |
3 files changed, 276 deletions(-) |
16 |
|
17 |
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest |
18 |
index cdc323c22e..f2e9ebdf50 100644 |
19 |
--- a/net-analyzer/wireshark/Manifest |
20 |
+++ b/net-analyzer/wireshark/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST wireshark-2.2.2.tar.bz2 32230208 SHA256 f9acef5e9a9021a400b4244fafc06969f41ec594ec57fd7f0ff63bafca0055b3 SHA512 7db446438ee4dbcc5d5764d09eee0ed641d3a26063d6dd9dd863e26fc974c8eafcc8220ba918c1545594cf2f954cf0b08e3fd9db6d20f3aeb7da68b3a68c97e0 WHIRLPOOL 52e81a2529a49f0f206e96c48e67fd235a6a3e7ab654cdf44107b90af269863b4c10f34ed4473966082bc025102eed18d690613fbdd2231fc7d177f5e77030a3 |
23 |
DIST wireshark-2.2.4.tar.bz2 32336156 SHA256 42a7fb35eed5a32478153e24601a284bb50148b7ba919c3e8452652f4c2a3911 SHA512 f3ff6979fdd1c7cf6abe386ec476fee12045ae6df3c8162568d521532045d5eb6ad689262c38b1766c75c9fc1068f480fcd64f0aa077b3a0ceea7c16dbdabc65 WHIRLPOOL 826f88d9df625809309728c2a60cc90e52d4586b9b933548c9594e9521b8aefb619deac00320f09b2180f97816dd4856aa4439322eb64982adc28c71614fe164 |
24 |
|
25 |
diff --git a/net-analyzer/wireshark/metadata.xml b/net-analyzer/wireshark/metadata.xml |
26 |
index b72cb57da0..286f7d28ad 100644 |
27 |
--- a/net-analyzer/wireshark/metadata.xml |
28 |
+++ b/net-analyzer/wireshark/metadata.xml |
29 |
@@ -36,7 +36,6 @@ |
30 |
<flag name="libssh">Use <pkg>net-libs/libssh</pkg> (for sshdump)</flag> |
31 |
<flag name="netlink">Use <pkg>dev-libs/libnl</pkg></flag> |
32 |
<flag name="pcap">Use <pkg>net-libs/libpcap</pkg> for network packet capturing (build dumpcap, rawshark)</flag> |
33 |
- <flag name="qt4">Build the wireshark executable with an experimental Qt UI instead of GTK+.</flag> |
34 |
<flag name="randpkt">Install randpkt, a utility for creating pcap trace files full of random packets</flag> |
35 |
<flag name="randpktdump">Install randpktdump, an extcap interface to provide access to the random packet generator (randpkt)</flag> |
36 |
<flag name="sbc">Use <pkg>media-libs/sbc</pkg> for playing back SBC encoded packets</flag> |
37 |
|
38 |
diff --git a/net-analyzer/wireshark/wireshark-2.2.2.ebuild b/net-analyzer/wireshark/wireshark-2.2.2.ebuild |
39 |
deleted file mode 100644 |
40 |
index 9bfec9229e..0000000000 |
41 |
--- a/net-analyzer/wireshark/wireshark-2.2.2.ebuild |
42 |
+++ /dev/null |
43 |
@@ -1,274 +0,0 @@ |
44 |
-# Copyright 1999-2016 Gentoo Foundation |
45 |
-# Distributed under the terms of the GNU General Public License v2 |
46 |
-# $Id$ |
47 |
- |
48 |
-EAPI=5 |
49 |
-inherit autotools eutils fcaps flag-o-matic multilib qmake-utils qt4-r2 user |
50 |
- |
51 |
-DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
52 |
-HOMEPAGE="http://www.wireshark.org/" |
53 |
-SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.bz2" |
54 |
- |
55 |
-LICENSE="GPL-2" |
56 |
-SLOT="0/${PV}" |
57 |
-KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" |
58 |
-IUSE=" |
59 |
- adns androiddump +caps ciscodump cpu_flags_x86_sse4_2 crypt doc doc-pdf |
60 |
- geoip +gtk kerberos lua +netlink +pcap portaudio +qt4 qt5 sbc selinux smi |
61 |
- libssh randpkt randpktdump sshdump ssl tfshark zlib |
62 |
-" |
63 |
-REQUIRED_USE=" |
64 |
- ?? ( qt4 qt5 ) |
65 |
- ciscodump? ( libssh ) |
66 |
- sshdump? ( libssh ) |
67 |
- ssl? ( crypt ) |
68 |
-" |
69 |
- |
70 |
-S=${WORKDIR}/${P/_/} |
71 |
- |
72 |
-CDEPEND=" |
73 |
- >=dev-libs/glib-2.14:2 |
74 |
- netlink? ( dev-libs/libnl:3 ) |
75 |
- adns? ( >=net-dns/c-ares-1.5 ) |
76 |
- crypt? ( dev-libs/libgcrypt:0 ) |
77 |
- caps? ( sys-libs/libcap ) |
78 |
- geoip? ( dev-libs/geoip ) |
79 |
- gtk? ( |
80 |
- x11-libs/gdk-pixbuf |
81 |
- x11-libs/gtk+:3 |
82 |
- x11-libs/pango |
83 |
- x11-misc/xdg-utils |
84 |
- ) |
85 |
- kerberos? ( virtual/krb5 ) |
86 |
- libssh? ( >=net-libs/libssh-0.6 ) |
87 |
- lua? ( >=dev-lang/lua-5.1:* ) |
88 |
- pcap? ( net-libs/libpcap ) |
89 |
- portaudio? ( media-libs/portaudio ) |
90 |
- qt4? ( |
91 |
- dev-qt/qtcore:4 |
92 |
- dev-qt/qtgui:4[accessibility] |
93 |
- x11-misc/xdg-utils |
94 |
- ) |
95 |
- qt5? ( |
96 |
- dev-qt/qtcore:5 |
97 |
- dev-qt/qtgui:5 |
98 |
- dev-qt/qtmultimedia:5 |
99 |
- dev-qt/qtprintsupport:5 |
100 |
- dev-qt/qtwidgets:5 |
101 |
- x11-misc/xdg-utils |
102 |
- ) |
103 |
- sbc? ( media-libs/sbc ) |
104 |
- smi? ( net-libs/libsmi ) |
105 |
- ssl? ( net-libs/gnutls:= ) |
106 |
- zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 ) |
107 |
-" |
108 |
-# We need perl for `pod2html`. The rest of the perl stuff is to block older |
109 |
-# and broken installs. #455122 |
110 |
-DEPEND=" |
111 |
- ${CDEPEND} |
112 |
- dev-lang/perl |
113 |
- !<virtual/perl-Pod-Simple-3.170 |
114 |
- !<perl-core/Pod-Simple-3.170 |
115 |
- doc? ( |
116 |
- app-doc/doxygen |
117 |
- app-text/asciidoc |
118 |
- dev-libs/libxml2 |
119 |
- dev-libs/libxslt |
120 |
- doc-pdf? ( dev-java/fop ) |
121 |
- www-client/lynx |
122 |
- ) |
123 |
- qt5? ( |
124 |
- dev-qt/linguist-tools:5 |
125 |
- ) |
126 |
- sys-devel/bison |
127 |
- sys-devel/flex |
128 |
- virtual/pkgconfig |
129 |
-" |
130 |
-RDEPEND=" |
131 |
- ${CDEPEND} |
132 |
- gtk? ( virtual/freedesktop-icon-theme ) |
133 |
- qt4? ( virtual/freedesktop-icon-theme ) |
134 |
- qt5? ( virtual/freedesktop-icon-theme ) |
135 |
- selinux? ( sec-policy/selinux-wireshark ) |
136 |
-" |
137 |
- |
138 |
-pkg_setup() { |
139 |
- enewgroup wireshark |
140 |
-} |
141 |
- |
142 |
-src_prepare() { |
143 |
- epatch \ |
144 |
- "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch \ |
145 |
- "${FILESDIR}"/${PN}-2.1.0-sse4_2-r1.patch \ |
146 |
- "${FILESDIR}"/${PN}-99999999-androiddump.patch |
147 |
- |
148 |
- epatch_user |
149 |
- |
150 |
- eautoreconf |
151 |
-} |
152 |
- |
153 |
-src_configure() { |
154 |
- local myconf |
155 |
- |
156 |
- # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
157 |
- # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
158 |
- if use kerberos; then |
159 |
- case $(krb5-config --libs) in |
160 |
- *-lcrypto*) |
161 |
- ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
162 |
- ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
163 |
- ewarn "license and the GPL, so do your check before distributing such package." |
164 |
- myconf+=( "--with-ssl" ) |
165 |
- ;; |
166 |
- esac |
167 |
- fi |
168 |
- |
169 |
- # Enable wireshark binary with any supported GUI toolkit (bug #473188) |
170 |
- if use gtk || use qt4 || use qt5; then |
171 |
- myconf+=( "--enable-wireshark" ) |
172 |
- else |
173 |
- myconf+=( "--disable-wireshark" ) |
174 |
- fi |
175 |
- |
176 |
- if ! use qt4 && ! use qt5; then |
177 |
- myconf+=( "--with-qt=no" ) |
178 |
- fi |
179 |
- |
180 |
- if use qt4; then |
181 |
- export QT_MIN_VERSION=4.6.0 |
182 |
- fi |
183 |
- |
184 |
- if use qt5; then |
185 |
- export QT_MIN_VERSION=5.3.0 |
186 |
- append-cxxflags -fPIC -DPIC |
187 |
- fi |
188 |
- |
189 |
- # Hack around inability to disable doxygen/fop doc generation |
190 |
- use doc || export ac_cv_prog_HAVE_DOXYGEN=false |
191 |
- use doc-pdf || export ac_cv_prog_HAVE_FOP=false |
192 |
- |
193 |
- # dumpcap requires libcap |
194 |
- # --disable-profile-build bugs #215806, #292991, #479602 |
195 |
- econf \ |
196 |
- $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \ |
197 |
- $(use_enable androiddump) \ |
198 |
- $(use_enable ciscodump) \ |
199 |
- $(use_enable randpkt) \ |
200 |
- $(use_enable randpktdump) \ |
201 |
- $(use_enable sshdump) \ |
202 |
- $(use_enable tfshark) \ |
203 |
- $(use_with adns c-ares) \ |
204 |
- $(use_with caps libcap) \ |
205 |
- $(use_with crypt gcrypt) \ |
206 |
- $(use_with geoip) \ |
207 |
- $(use_with gtk gtk 3) \ |
208 |
- $(use_with kerberos krb5) \ |
209 |
- $(use_with libssh ssh) \ |
210 |
- $(use_with lua) \ |
211 |
- $(use_with pcap dumpcap-group wireshark) \ |
212 |
- $(use_with pcap) \ |
213 |
- $(use_with portaudio) \ |
214 |
- $(use_with sbc) \ |
215 |
- $(use_with smi libsmi) \ |
216 |
- $(use_with ssl gnutls) \ |
217 |
- $(use_with zlib) \ |
218 |
- $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \ |
219 |
- $(usex netlink --with-libnl=3 --without-libnl) \ |
220 |
- $(usex qt4 --with-qt=4 '') \ |
221 |
- $(usex qt4 LRELEASE=$(qt4_get_bindir)/lrelease '') \ |
222 |
- $(usex qt4 MOC=$(qt4_get_bindir)/moc '') \ |
223 |
- $(usex qt4 RCC=$(qt4_get_bindir)/rcc '') \ |
224 |
- $(usex qt4 UIC=$(qt4_get_bindir)/uic '') \ |
225 |
- $(usex qt5 --with-qt=5 '') \ |
226 |
- $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') \ |
227 |
- $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \ |
228 |
- $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \ |
229 |
- $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \ |
230 |
- --disable-profile-build \ |
231 |
- --disable-warnings-as-errors \ |
232 |
- --sysconfdir="${EPREFIX}"/etc/wireshark \ |
233 |
- ${myconf[@]} |
234 |
-} |
235 |
- |
236 |
-src_compile() { |
237 |
- default |
238 |
- |
239 |
- if use doc; then |
240 |
- emake -j1 -C docbook |
241 |
- if use doc-pdf; then |
242 |
- addpredict "/root/.java" |
243 |
- emake -C docbook all-pdf |
244 |
- fi |
245 |
- fi |
246 |
-} |
247 |
- |
248 |
-src_install() { |
249 |
- default |
250 |
- |
251 |
- if use doc; then |
252 |
- dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}} |
253 |
- if use doc-pdf; then |
254 |
- insinto /usr/share/doc/${PF}/pdf/ |
255 |
- doins docbook/{developer,user}-guide-{a4,us}.pdf docbook/release-notes.pdf |
256 |
- fi |
257 |
- fi |
258 |
- |
259 |
- # FAQ is not required as is installed from help/faq.txt |
260 |
- dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \ |
261 |
- doc/{randpkt.txt,README*} |
262 |
- |
263 |
- # install headers |
264 |
- local wsheader |
265 |
- for wsheader in \ |
266 |
- config.h \ |
267 |
- epan/*.h \ |
268 |
- epan/crypt/*.h \ |
269 |
- epan/dfilter/*.h \ |
270 |
- epan/dissectors/*.h \ |
271 |
- epan/ftypes/*.h \ |
272 |
- epan/wmem/*.h \ |
273 |
- register.h \ |
274 |
- wiretap/*.h \ |
275 |
- ws_diag_control.h \ |
276 |
- ws_symbol_export.h \ |
277 |
- wsutil/*.h |
278 |
- do |
279 |
- insinto /usr/include/wireshark/$( dirname ${wsheader} ) |
280 |
- doins ${wsheader} |
281 |
- done |
282 |
- |
283 |
- #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/ |
284 |
- insinto /usr/include/wiretap |
285 |
- doins wiretap/wtap.h |
286 |
- |
287 |
- if use gtk || use qt4 || use qt5; then |
288 |
- local c d |
289 |
- for c in hi lo; do |
290 |
- for d in 16 32 48; do |
291 |
- insinto /usr/share/icons/${c}color/${d}x${d}/apps |
292 |
- newins image/${c}${d}-app-wireshark.png wireshark.png |
293 |
- done |
294 |
- done |
295 |
- for d in 16 24 32 48 64 128 256 ; do |
296 |
- insinto /usr/share/icons/hicolor/${d}x${d}/mimetypes |
297 |
- newins image/WiresharkDoc-${d}.png application-vnd.tcpdump.pcap.png |
298 |
- done |
299 |
- fi |
300 |
- |
301 |
- prune_libtool_files |
302 |
-} |
303 |
- |
304 |
-pkg_postinst() { |
305 |
- # Add group for users allowed to sniff. |
306 |
- enewgroup wireshark |
307 |
- |
308 |
- if use pcap; then |
309 |
- fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
310 |
- cap_dac_read_search,cap_net_raw,cap_net_admin \ |
311 |
- "${EROOT}"/usr/bin/dumpcap |
312 |
- fi |
313 |
- |
314 |
- ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
315 |
- ewarn "add yourself to the wireshark group. This security measure ensures" |
316 |
- ewarn "that only trusted users are allowed to sniff your traffic." |
317 |
-} |