1 |
commit: f478e5eb60f5b20029d664066df35b8f60f83720 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 26 16:07:13 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 26 16:17:53 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f478e5eb |
7 |
|
8 |
net-analyzer/wireshark: Old. |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
net-analyzer/wireshark/Manifest | 2 - |
13 |
net-analyzer/wireshark/wireshark-2.5.0.ebuild | 285 -------------------------- |
14 |
net-analyzer/wireshark/wireshark-2.5.1.ebuild | 261 ----------------------- |
15 |
3 files changed, 548 deletions(-) |
16 |
|
17 |
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest |
18 |
index 3c55088753b..521ca884622 100644 |
19 |
--- a/net-analyzer/wireshark/Manifest |
20 |
+++ b/net-analyzer/wireshark/Manifest |
21 |
@@ -1,5 +1,3 @@ |
22 |
DIST wireshark-2.4.5.tar.xz 28836740 BLAKE2B 797540daca259a2d5d7dc6e637f2b504b6d14191af4040e6b344c95db6c776b7de80c25c59c98ab84d0337cc96c7313b42c13103a3c3944768a793130deae258 SHA512 2f2c201d6b8a37dcbe03bc9affbf97d632d8e40e4fe5b3a3e79cbd5cfbeb5b9111919850546ccae355fcb042def3456438eb1c4d73f7d56d373e7898311b42f3 |
23 |
DIST wireshark-2.4.6.tar.xz 28851192 BLAKE2B 19a69d077b794ab07fbfb22b7cf9e61ff54ded5dcd0396ba97d1cbd99addaeb9670d5a870f5e83c39384230def04c078d676580bded81746753716cb392ee05a SHA512 171047fa36a6cb29d1edb8e28086e24075f8b77581d9f3142fa39af8ae3d6dfe0c2e41a9335ca5d9851578b54ac9e6e74ff5bd92a96af262a5cc7a73857b8b81 |
24 |
-DIST wireshark-2.5.0.tar.xz 28197388 BLAKE2B 5d50d3752078a71d1d83f48a85ee564d14950efab39d5679430a61a266f9b93749278cd19d155036326753fbab86f83c5edb764adec5d68325730dbba19a920f SHA512 963c03dd363850cd0ad8a32a3e8c85410f2b23fadc081f00e4e3a2ad3a324a5f35626fbb7e490ec01c61260500363fef93c52bf7796b917e9490fff4044ee67f |
25 |
-DIST wireshark-2.5.1.tar.xz 28229472 BLAKE2B ac832e3d8727a20754153949d7dfba9cfbc359955e55c06a9181ecbd3c9d9ddac269a745a430c47907b3e205d1b593241e0908b5b6c232613cbd4d23c96c4f61 SHA512 c3e1abb1c8b6a035640d655c59bfb8a9a846c88f49035b8086ae81a6e74cb296419f15bc4969489208fdce6578d279663c6fbc8d6eebff1b6097d1dbd0e71b75 |
26 |
DIST wireshark-2.6.0.tar.xz 28314868 BLAKE2B 2121a667115474ac4b1fe05d50ffc02383bf7a8057ea072480455562c62a75d18f3c6b6886ca1e7345101d15057a67a250a3d2a2050777ff5bb1654279b1ac87 SHA512 a419ed32caeb9f25fc26e345c7baf7d847fee35730c64efad66870a786b26b9f8d5a8665b8b99be88f9cf504f6d9e640584d9849558ff09efc83400588dc6da8 |
27 |
|
28 |
diff --git a/net-analyzer/wireshark/wireshark-2.5.0.ebuild b/net-analyzer/wireshark/wireshark-2.5.0.ebuild |
29 |
deleted file mode 100644 |
30 |
index 48af1f01605..00000000000 |
31 |
--- a/net-analyzer/wireshark/wireshark-2.5.0.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,285 +0,0 @@ |
34 |
-# Copyright 1999-2018 Gentoo Foundation |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=6 |
38 |
-inherit autotools eutils fcaps flag-o-matic gnome2-utils multilib qmake-utils user xdg-utils |
39 |
- |
40 |
-DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
41 |
-HOMEPAGE="https://www.wireshark.org/" |
42 |
-SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.xz" |
43 |
- |
44 |
-LICENSE="GPL-2" |
45 |
-SLOT="0/${PV}" |
46 |
-KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86" |
47 |
-IUSE=" |
48 |
- adns androiddump bcg729 +capinfos +caps +captype ciscodump |
49 |
- cpu_flags_x86_sse4_2 +dftest doc doc-pdf +dumpcap +editcap geoip gtk |
50 |
- kerberos libssh libxml2 lua lz4 +mergecap +netlink nghttp2 +pcap portaudio |
51 |
- +qt5 +randpkt +randpktdump +reordercap sbc selinux +sharkd smi snappy |
52 |
- spandsp sshdump ssl +text2pcap tfshark +tshark +udpdump zlib |
53 |
-" |
54 |
-REQUIRED_USE=" |
55 |
- ciscodump? ( libssh ) |
56 |
- sshdump? ( libssh ) |
57 |
-" |
58 |
- |
59 |
-S=${WORKDIR}/${P/_/} |
60 |
- |
61 |
-CDEPEND=" |
62 |
- >=dev-libs/glib-2.14:2 |
63 |
- dev-libs/libgcrypt:0 |
64 |
- netlink? ( dev-libs/libnl:3 ) |
65 |
- adns? ( >=net-dns/c-ares-1.5 ) |
66 |
- bcg729? ( media-libs/bcg729 ) |
67 |
- caps? ( sys-libs/libcap ) |
68 |
- geoip? ( dev-libs/geoip ) |
69 |
- gtk? ( |
70 |
- x11-libs/gdk-pixbuf |
71 |
- x11-libs/gtk+:3 |
72 |
- x11-libs/pango |
73 |
- x11-misc/xdg-utils |
74 |
- ) |
75 |
- kerberos? ( virtual/krb5 ) |
76 |
- libssh? ( >=net-libs/libssh-0.6 ) |
77 |
- libxml2? ( dev-libs/libxml2 ) |
78 |
- lua? ( >=dev-lang/lua-5.1:* ) |
79 |
- lz4? ( app-arch/lz4 ) |
80 |
- nghttp2? ( net-libs/nghttp2 ) |
81 |
- pcap? ( net-libs/libpcap ) |
82 |
- portaudio? ( media-libs/portaudio ) |
83 |
- qt5? ( |
84 |
- dev-qt/qtcore:5 |
85 |
- dev-qt/qtgui:5 |
86 |
- dev-qt/qtmultimedia:5 |
87 |
- dev-qt/qtprintsupport:5 |
88 |
- dev-qt/qtwidgets:5 |
89 |
- || ( |
90 |
- media-libs/speexdsp |
91 |
- <media-libs/speex-1.2.0 |
92 |
- ) |
93 |
- x11-misc/xdg-utils |
94 |
- ) |
95 |
- sbc? ( media-libs/sbc ) |
96 |
- smi? ( net-libs/libsmi ) |
97 |
- snappy? ( app-arch/snappy ) |
98 |
- spandsp? ( media-libs/spandsp ) |
99 |
- ssl? ( net-libs/gnutls:= ) |
100 |
- zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 ) |
101 |
-" |
102 |
-# We need perl for `pod2html`. The rest of the perl stuff is to block older |
103 |
-# and broken installs. #455122 |
104 |
-DEPEND=" |
105 |
- ${CDEPEND} |
106 |
- dev-lang/perl |
107 |
- !<virtual/perl-Pod-Simple-3.170 |
108 |
- !<perl-core/Pod-Simple-3.170 |
109 |
- doc? ( |
110 |
- app-doc/doxygen |
111 |
- app-text/asciidoc |
112 |
- dev-libs/libxml2 |
113 |
- dev-libs/libxslt |
114 |
- doc-pdf? ( dev-java/fop ) |
115 |
- www-client/lynx |
116 |
- ) |
117 |
- qt5? ( |
118 |
- dev-qt/linguist-tools:5 |
119 |
- ) |
120 |
- sys-devel/bison |
121 |
- sys-devel/flex |
122 |
- virtual/pkgconfig |
123 |
-" |
124 |
-RDEPEND=" |
125 |
- ${CDEPEND} |
126 |
- gtk? ( virtual/freedesktop-icon-theme ) |
127 |
- qt5? ( virtual/freedesktop-icon-theme ) |
128 |
- selinux? ( sec-policy/selinux-wireshark ) |
129 |
-" |
130 |
-PATCHES=( |
131 |
- "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch |
132 |
- "${FILESDIR}"/${PN}-2.1.0-sse4_2-r1.patch |
133 |
- "${FILESDIR}"/${PN}-2.4-androiddump.patch |
134 |
- "${FILESDIR}"/${PN}-99999999-androiddump.patch |
135 |
-) |
136 |
- |
137 |
-pkg_setup() { |
138 |
- enewgroup wireshark |
139 |
-} |
140 |
- |
141 |
-src_prepare() { |
142 |
- default |
143 |
- |
144 |
- eautoreconf |
145 |
-} |
146 |
- |
147 |
-src_configure() { |
148 |
- local myconf |
149 |
- |
150 |
- # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
151 |
- # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
152 |
- if use kerberos; then |
153 |
- case $(krb5-config --libs) in |
154 |
- *-lcrypto*) |
155 |
- ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
156 |
- ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
157 |
- ewarn "license and the GPL, so do your check before distributing such package." |
158 |
- myconf+=( "--with-ssl" ) |
159 |
- ;; |
160 |
- esac |
161 |
- fi |
162 |
- |
163 |
- # Enable wireshark binary with any supported GUI toolkit (bug #473188) |
164 |
- if use gtk || use qt5; then |
165 |
- myconf+=( "--enable-wireshark" ) |
166 |
- else |
167 |
- myconf+=( "--disable-wireshark" ) |
168 |
- fi |
169 |
- |
170 |
- if ! use qt5; then |
171 |
- myconf+=( "--with-qt=no" ) |
172 |
- fi |
173 |
- |
174 |
- if use qt5; then |
175 |
- export QT_MIN_VERSION=5.3.0 |
176 |
- append-cxxflags -fPIC -DPIC |
177 |
- fi |
178 |
- |
179 |
- # Hack around inability to disable doxygen/fop doc generation |
180 |
- use doc || export ac_cv_prog_HAVE_DOXYGEN=false |
181 |
- use doc-pdf || export ac_cv_prog_HAVE_FOP=false |
182 |
- |
183 |
- econf \ |
184 |
- $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \ |
185 |
- $(use dumpcap && use_with pcap dumpcap-group wireshark) \ |
186 |
- $(use_enable androiddump) \ |
187 |
- $(use_enable capinfos) \ |
188 |
- $(use_enable captype) \ |
189 |
- $(use_enable ciscodump) \ |
190 |
- $(use_enable dftest) \ |
191 |
- $(use_enable dumpcap) \ |
192 |
- $(use_enable editcap) \ |
193 |
- $(use_enable mergecap) \ |
194 |
- $(use_enable randpkt) \ |
195 |
- $(use_enable randpktdump) \ |
196 |
- $(use_enable reordercap) \ |
197 |
- $(use_enable sharkd) \ |
198 |
- $(use_enable sshdump) \ |
199 |
- $(use_enable text2pcap) \ |
200 |
- $(use_enable tfshark) \ |
201 |
- $(use_enable tshark) \ |
202 |
- $(use_enable udpdump) \ |
203 |
- $(use_with adns c-ares) \ |
204 |
- $(use_with bcg729) \ |
205 |
- $(use_with caps libcap) \ |
206 |
- $(use_with geoip) \ |
207 |
- $(use_with gtk gtk 3) \ |
208 |
- $(use_with kerberos krb5) \ |
209 |
- $(use_with libssh) \ |
210 |
- $(use_with libxml2) \ |
211 |
- $(use_with lua) \ |
212 |
- $(use_with lz4) \ |
213 |
- $(use_with nghttp2) \ |
214 |
- $(use_with pcap) \ |
215 |
- $(use_with portaudio) \ |
216 |
- $(use_with sbc) \ |
217 |
- $(use_with smi libsmi) \ |
218 |
- $(use_with snappy) \ |
219 |
- $(use_with spandsp) \ |
220 |
- $(use_with ssl gnutls) \ |
221 |
- $(use_with zlib) \ |
222 |
- $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \ |
223 |
- $(usex netlink --with-libnl=3 --without-libnl) \ |
224 |
- $(usex qt5 --with-qt=5 '') \ |
225 |
- $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') \ |
226 |
- $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \ |
227 |
- $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \ |
228 |
- $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \ |
229 |
- --disable-warnings-as-errors \ |
230 |
- --sysconfdir="${EPREFIX}"/etc/wireshark \ |
231 |
- ${myconf[@]} |
232 |
-} |
233 |
- |
234 |
-src_compile() { |
235 |
- default |
236 |
- |
237 |
- if use doc; then |
238 |
- emake -j1 -C docbook |
239 |
- if use doc-pdf; then |
240 |
- addpredict "/root/.java" |
241 |
- emake -C docbook all-pdf |
242 |
- fi |
243 |
- fi |
244 |
-} |
245 |
- |
246 |
-src_install() { |
247 |
- default |
248 |
- |
249 |
- # FAQ is not required as is installed from help/faq.txt |
250 |
- dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README* |
251 |
- |
252 |
- if use doc-pdf; then |
253 |
- docinto /usr/share/doc/${PF}/pdf/ |
254 |
- dodoc docbook/{developer,user}-guide.pdf |
255 |
- fi |
256 |
- |
257 |
- # install headers |
258 |
- local wsheader |
259 |
- for wsheader in \ |
260 |
- config.h \ |
261 |
- epan/*.h \ |
262 |
- epan/crypt/*.h \ |
263 |
- epan/dfilter/*.h \ |
264 |
- epan/dissectors/*.h \ |
265 |
- epan/ftypes/*.h \ |
266 |
- epan/wmem/*.h \ |
267 |
- wiretap/*.h \ |
268 |
- ws_diag_control.h \ |
269 |
- ws_symbol_export.h \ |
270 |
- wsutil/*.h |
271 |
- do |
272 |
- insinto /usr/include/wireshark/$( dirname ${wsheader} ) |
273 |
- doins ${wsheader} |
274 |
- done |
275 |
- |
276 |
- #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/ |
277 |
- insinto /usr/include/wiretap |
278 |
- doins wiretap/wtap.h |
279 |
- |
280 |
- if use gtk || use qt5; then |
281 |
- local s |
282 |
- for s in 16 32 48 64 128 256 512 1024; do |
283 |
- insinto /usr/share/icons/hicolor/${s}x${s}/apps |
284 |
- newins image/wsicon${s}.png wireshark.png |
285 |
- done |
286 |
- for s in 16 24 32 48 64 128 256 ; do |
287 |
- insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes |
288 |
- newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png |
289 |
- done |
290 |
- fi |
291 |
- |
292 |
- prune_libtool_files |
293 |
-} |
294 |
- |
295 |
-pkg_postinst() { |
296 |
- gnome2_icon_cache_update |
297 |
- xdg_desktop_database_update |
298 |
- xdg_mimeinfo_database_update |
299 |
- |
300 |
- # Add group for users allowed to sniff. |
301 |
- enewgroup wireshark |
302 |
- |
303 |
- if use dumpcap && use pcap; then |
304 |
- fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
305 |
- cap_dac_read_search,cap_net_raw,cap_net_admin \ |
306 |
- "${EROOT}"/usr/bin/dumpcap |
307 |
- fi |
308 |
- |
309 |
- ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
310 |
- ewarn "add yourself to the wireshark group. This security measure ensures" |
311 |
- ewarn "that only trusted users are allowed to sniff your traffic." |
312 |
-} |
313 |
- |
314 |
-pkg_postrm() { |
315 |
- gnome2_icon_cache_update |
316 |
- xdg_desktop_database_update |
317 |
- xdg_mimeinfo_database_update |
318 |
-} |
319 |
|
320 |
diff --git a/net-analyzer/wireshark/wireshark-2.5.1.ebuild b/net-analyzer/wireshark/wireshark-2.5.1.ebuild |
321 |
deleted file mode 100644 |
322 |
index 75b779a4898..00000000000 |
323 |
--- a/net-analyzer/wireshark/wireshark-2.5.1.ebuild |
324 |
+++ /dev/null |
325 |
@@ -1,261 +0,0 @@ |
326 |
-# Copyright 1999-2018 Gentoo Foundation |
327 |
-# Distributed under the terms of the GNU General Public License v2 |
328 |
- |
329 |
-EAPI=6 |
330 |
-inherit autotools eutils fcaps flag-o-matic gnome2-utils multilib qmake-utils user xdg-utils |
331 |
- |
332 |
-DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
333 |
-HOMEPAGE="https://www.wireshark.org/" |
334 |
-SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.xz" |
335 |
- |
336 |
-LICENSE="GPL-2" |
337 |
-SLOT="0/${PV}" |
338 |
-KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86" |
339 |
-IUSE=" |
340 |
- adns androiddump bcg729 +capinfos +caps +captype ciscodump |
341 |
- cpu_flags_x86_sse4_2 +dftest doc +dumpcap +editcap gtk kerberos libssh |
342 |
- libxml2 lua lz4 maxminddb +mergecap +netlink nghttp2 +pcap portaudio +qt5 |
343 |
- +randpkt +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp |
344 |
- sshdump ssl +text2pcap tfshark +tshark +udpdump zlib |
345 |
-" |
346 |
-REQUIRED_USE=" |
347 |
- ciscodump? ( libssh ) |
348 |
- sshdump? ( libssh ) |
349 |
-" |
350 |
- |
351 |
-S=${WORKDIR}/${P/_/} |
352 |
- |
353 |
-CDEPEND=" |
354 |
- >=dev-libs/glib-2.14:2 |
355 |
- dev-libs/libgcrypt:0 |
356 |
- netlink? ( dev-libs/libnl:3 ) |
357 |
- adns? ( >=net-dns/c-ares-1.5 ) |
358 |
- bcg729? ( media-libs/bcg729 ) |
359 |
- caps? ( sys-libs/libcap ) |
360 |
- gtk? ( |
361 |
- x11-libs/gdk-pixbuf |
362 |
- x11-libs/gtk+:3 |
363 |
- x11-libs/pango |
364 |
- x11-misc/xdg-utils |
365 |
- ) |
366 |
- kerberos? ( virtual/krb5 ) |
367 |
- libssh? ( >=net-libs/libssh-0.6 ) |
368 |
- libxml2? ( dev-libs/libxml2 ) |
369 |
- lua? ( >=dev-lang/lua-5.1:* ) |
370 |
- lz4? ( app-arch/lz4 ) |
371 |
- maxminddb? ( dev-libs/libmaxminddb ) |
372 |
- nghttp2? ( net-libs/nghttp2 ) |
373 |
- pcap? ( net-libs/libpcap ) |
374 |
- portaudio? ( media-libs/portaudio ) |
375 |
- qt5? ( |
376 |
- dev-qt/qtcore:5 |
377 |
- dev-qt/qtgui:5 |
378 |
- dev-qt/qtmultimedia:5 |
379 |
- dev-qt/qtprintsupport:5 |
380 |
- dev-qt/qtwidgets:5 |
381 |
- || ( |
382 |
- media-libs/speexdsp |
383 |
- <media-libs/speex-1.2.0 |
384 |
- ) |
385 |
- x11-misc/xdg-utils |
386 |
- ) |
387 |
- sbc? ( media-libs/sbc ) |
388 |
- smi? ( net-libs/libsmi ) |
389 |
- snappy? ( app-arch/snappy ) |
390 |
- spandsp? ( media-libs/spandsp ) |
391 |
- ssl? ( net-libs/gnutls:= ) |
392 |
- zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 ) |
393 |
-" |
394 |
-# We need perl for `pod2html`. The rest of the perl stuff is to block older |
395 |
-# and broken installs. #455122 |
396 |
-DEPEND=" |
397 |
- ${CDEPEND} |
398 |
- dev-lang/perl |
399 |
- !<virtual/perl-Pod-Simple-3.170 |
400 |
- !<perl-core/Pod-Simple-3.170 |
401 |
- doc? ( |
402 |
- app-doc/doxygen |
403 |
- dev-ruby/asciidoctor |
404 |
- ) |
405 |
- qt5? ( |
406 |
- dev-qt/linguist-tools:5 |
407 |
- ) |
408 |
- sys-devel/bison |
409 |
- sys-devel/flex |
410 |
- virtual/pkgconfig |
411 |
-" |
412 |
-RDEPEND=" |
413 |
- ${CDEPEND} |
414 |
- gtk? ( virtual/freedesktop-icon-theme ) |
415 |
- qt5? ( virtual/freedesktop-icon-theme ) |
416 |
- selinux? ( sec-policy/selinux-wireshark ) |
417 |
-" |
418 |
-PATCHES=( |
419 |
- "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch |
420 |
- "${FILESDIR}"/${PN}-2.1.0-sse4_2-r1.patch |
421 |
- "${FILESDIR}"/${PN}-2.4-androiddump.patch |
422 |
- "${FILESDIR}"/${PN}-99999999-androiddump.patch |
423 |
-) |
424 |
- |
425 |
-pkg_setup() { |
426 |
- enewgroup wireshark |
427 |
-} |
428 |
- |
429 |
-src_prepare() { |
430 |
- default |
431 |
- |
432 |
- eautoreconf |
433 |
-} |
434 |
- |
435 |
-src_configure() { |
436 |
- local myconf |
437 |
- |
438 |
- # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
439 |
- # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
440 |
- if use kerberos; then |
441 |
- case $(krb5-config --libs) in |
442 |
- *-lcrypto*) |
443 |
- ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
444 |
- ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
445 |
- ewarn "license and the GPL, so do your check before distributing such package." |
446 |
- myconf+=( "--with-ssl" ) |
447 |
- ;; |
448 |
- esac |
449 |
- fi |
450 |
- |
451 |
- # Enable wireshark binary with any supported GUI toolkit (bug #473188) |
452 |
- if use gtk || use qt5; then |
453 |
- myconf+=( "--enable-wireshark" ) |
454 |
- else |
455 |
- myconf+=( "--disable-wireshark" ) |
456 |
- fi |
457 |
- |
458 |
- if ! use qt5; then |
459 |
- myconf+=( "--with-qt=no" ) |
460 |
- fi |
461 |
- |
462 |
- if use qt5; then |
463 |
- export QT_MIN_VERSION=5.3.0 |
464 |
- append-cxxflags -fPIC -DPIC |
465 |
- fi |
466 |
- |
467 |
- econf \ |
468 |
- $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \ |
469 |
- $(use dumpcap && use_with pcap dumpcap-group wireshark) \ |
470 |
- $(use_enable androiddump) \ |
471 |
- $(use_enable capinfos) \ |
472 |
- $(use_enable captype) \ |
473 |
- $(use_enable ciscodump) \ |
474 |
- $(use_enable dftest) \ |
475 |
- $(use_enable doc guides) \ |
476 |
- $(use_enable dumpcap) \ |
477 |
- $(use_enable editcap) \ |
478 |
- $(use_enable mergecap) \ |
479 |
- $(use_enable randpkt) \ |
480 |
- $(use_enable randpktdump) \ |
481 |
- $(use_enable reordercap) \ |
482 |
- $(use_enable sharkd) \ |
483 |
- $(use_enable sshdump) \ |
484 |
- $(use_enable text2pcap) \ |
485 |
- $(use_enable tfshark) \ |
486 |
- $(use_enable tshark) \ |
487 |
- $(use_enable udpdump) \ |
488 |
- $(use_with adns c-ares) \ |
489 |
- $(use_with bcg729) \ |
490 |
- $(use_with caps libcap) \ |
491 |
- $(use_with gtk gtk 3) \ |
492 |
- $(use_with kerberos krb5) \ |
493 |
- $(use_with libssh) \ |
494 |
- $(use_with libxml2) \ |
495 |
- $(use_with lua) \ |
496 |
- $(use_with lz4) \ |
497 |
- $(use_with maxminddb) \ |
498 |
- $(use_with nghttp2) \ |
499 |
- $(use_with pcap) \ |
500 |
- $(use_with portaudio) \ |
501 |
- $(use_with sbc) \ |
502 |
- $(use_with smi libsmi) \ |
503 |
- $(use_with snappy) \ |
504 |
- $(use_with spandsp) \ |
505 |
- $(use_with ssl gnutls) \ |
506 |
- $(use_with zlib) \ |
507 |
- $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \ |
508 |
- $(usex netlink --with-libnl=3 --without-libnl) \ |
509 |
- $(usex qt5 --with-qt=5 '') \ |
510 |
- $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') \ |
511 |
- $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \ |
512 |
- $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \ |
513 |
- $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \ |
514 |
- --disable-warnings-as-errors \ |
515 |
- --sysconfdir="${EPREFIX}"/etc/wireshark \ |
516 |
- ${myconf[@]} |
517 |
-} |
518 |
- |
519 |
-src_install() { |
520 |
- default |
521 |
- |
522 |
- # FAQ is not required as is installed from help/faq.txt |
523 |
- dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README* |
524 |
- |
525 |
- # install headers |
526 |
- local wsheader |
527 |
- for wsheader in \ |
528 |
- config.h \ |
529 |
- epan/*.h \ |
530 |
- epan/crypt/*.h \ |
531 |
- epan/dfilter/*.h \ |
532 |
- epan/dissectors/*.h \ |
533 |
- epan/ftypes/*.h \ |
534 |
- epan/wmem/*.h \ |
535 |
- wiretap/*.h \ |
536 |
- ws_diag_control.h \ |
537 |
- ws_symbol_export.h \ |
538 |
- wsutil/*.h |
539 |
- do |
540 |
- insinto /usr/include/wireshark/$( dirname ${wsheader} ) |
541 |
- doins ${wsheader} |
542 |
- done |
543 |
- |
544 |
- #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/ |
545 |
- insinto /usr/include/wiretap |
546 |
- doins wiretap/wtap.h |
547 |
- |
548 |
- if use gtk || use qt5; then |
549 |
- local s |
550 |
- for s in 16 32 48 64 128 256 512 1024; do |
551 |
- insinto /usr/share/icons/hicolor/${s}x${s}/apps |
552 |
- newins image/wsicon${s}.png wireshark.png |
553 |
- done |
554 |
- for s in 16 24 32 48 64 128 256 ; do |
555 |
- insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes |
556 |
- newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png |
557 |
- done |
558 |
- fi |
559 |
- |
560 |
- prune_libtool_files |
561 |
-} |
562 |
- |
563 |
-pkg_postinst() { |
564 |
- gnome2_icon_cache_update |
565 |
- xdg_desktop_database_update |
566 |
- xdg_mimeinfo_database_update |
567 |
- |
568 |
- # Add group for users allowed to sniff. |
569 |
- enewgroup wireshark |
570 |
- |
571 |
- if use dumpcap && use pcap; then |
572 |
- fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
573 |
- cap_dac_read_search,cap_net_raw,cap_net_admin \ |
574 |
- "${EROOT}"/usr/bin/dumpcap |
575 |
- fi |
576 |
- |
577 |
- ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
578 |
- ewarn "add yourself to the wireshark group. This security measure ensures" |
579 |
- ewarn "that only trusted users are allowed to sniff your traffic." |
580 |
-} |
581 |
- |
582 |
-pkg_postrm() { |
583 |
- gnome2_icon_cache_update |
584 |
- xdg_desktop_database_update |
585 |
- xdg_mimeinfo_database_update |
586 |
-} |