Gentoo Archives: gentoo-commits

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