1 |
commit: 27625d7c6a75d4ce816ad48f4d645087aeff0e6d |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 28 21:12:26 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 28 21:12:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27625d7c |
7 |
|
8 |
net-analyzer/wireshark: Old |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/wireshark/Manifest | 2 - |
14 |
net-analyzer/wireshark/wireshark-3.0.0_rc1.ebuild | 237 --------------------- |
15 |
net-analyzer/wireshark/wireshark-3.0.0_rc2.ebuild | 248 ---------------------- |
16 |
3 files changed, 487 deletions(-) |
17 |
|
18 |
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest |
19 |
index 4a1f85112ed..9e5bc3e93b8 100644 |
20 |
--- a/net-analyzer/wireshark/Manifest |
21 |
+++ b/net-analyzer/wireshark/Manifest |
22 |
@@ -3,5 +3,3 @@ DIST wireshark-2.6.3.tar.xz 28384004 BLAKE2B f275c73173fbaf3f819c58f28859362e9c5 |
23 |
DIST wireshark-2.6.6.tar.xz 28407404 BLAKE2B 5135789d345b675814a6394d5ba1469585b9eab917885730125b8a007aecd9cb48a510fc9e7479148cadf625807bac9017b854797e4bb2e562d7dc7f76140826 SHA512 b781c3b34dc76a3d8e60dc2b9b4e46a11994440b8df7b56134521ea9a77b27b0719a600db60d7f3d65f15972a5db2a7e85a8bf60d7217fce498fb5668de8fe56 |
24 |
DIST wireshark-2.6.7.tar.xz 28420060 BLAKE2B fda1fb2b9a8968916dd24c59c193854ab56dc13d5a69d2f589ae89b257f92794d092a3da75c2e20b1c83c902966db15527346dc4072a38d16a21ed095cde364e SHA512 bd0f87debd8bd8947f386aaec9fc843148e3cdfbffc28ba499526c4053732becea606061deae6799da0cf52458fba840ba0ff8e4a034a671fa876b8a0ff25677 |
25 |
DIST wireshark-3.0.0.tar.xz 30953760 BLAKE2B ee866966000cf902da6f330eb8a4b281d34a3ca88e9d92a7de1069172c8aeb86f9222e1467c5d3722ee055baf88d8ba0eb6fe27084d0b35f9639bdb9741d25e1 SHA512 917708b5edc25609536c7bd7cf4ae32a901fd99118302138dc0bf6f1ad092a8e5069a917cc8cf6cb77190f54e50623a4eba1ee10ffc225ee3051b50cf02a0963 |
26 |
-DIST wireshark-3.0.0rc1.tar.xz 30933416 BLAKE2B b9b421ecbcff8766d45f370a8ba6e0c03b02caaca09f5af90a5df0cd9a1a9093fab0b931c0cc001df31e0da86b53e022e70353a617a6b66d9defe79a44e0c8a3 SHA512 8cc34ee107f73cd19ca4bcfb05e0bfd237a53c7e0dcd07780200e423096566215cb55996e12cedbfdeaf31fc458c2a32b6d8038264060cdf677756148c404308 |
27 |
-DIST wireshark-3.0.0rc2.tar.xz 30942776 BLAKE2B 723c70291d586b2bc9a8bc1cc0eae03ed06fec3c8a60d34b4d8ed801eef0d3cd60c0a49f4b1b9dbd17dfd91fb07b91103a579d169250cadde523c0910f1b5406 SHA512 3d3203d5e690ec067bae112490fe4a1d5e43415c6845fa22085ed020666c6e99f7a4793a0c353b4dae694697953f50aa8a9638d66f8e705b6bd0559019cb6af2 |
28 |
|
29 |
diff --git a/net-analyzer/wireshark/wireshark-3.0.0_rc1.ebuild b/net-analyzer/wireshark/wireshark-3.0.0_rc1.ebuild |
30 |
deleted file mode 100644 |
31 |
index e7f6b3df2db..00000000000 |
32 |
--- a/net-analyzer/wireshark/wireshark-3.0.0_rc1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,237 +0,0 @@ |
35 |
-# Copyright 1999-2019 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=6 |
39 |
-PYTHON_COMPAT=( python3_{4,5,6,7} ) |
40 |
-inherit cmake-utils eutils fcaps flag-o-matic gnome2-utils ltprune multilib python-r1 qmake-utils user xdg-utils |
41 |
- |
42 |
-DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
43 |
-HOMEPAGE="https://www.wireshark.org/" |
44 |
-SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.xz" |
45 |
- |
46 |
-LICENSE="GPL-2" |
47 |
-SLOT="0/${PV}" |
48 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86" |
49 |
-IUSE=" |
50 |
- adns androiddump bcg729 +capinfos +captype ciscodump +dftest doc +dumpcap |
51 |
- +editcap kerberos libxml2 lua lz4 maxminddb +mergecap +netlink nghttp2 |
52 |
- +pcap +qt5 +randpkt +randpktdump +reordercap sbc selinux +sharkd smi snappy |
53 |
- spandsp sshdump ssl +text2pcap tfshark +tshark +udpdump zlib |
54 |
-" |
55 |
- |
56 |
-S=${WORKDIR}/${P/_/} |
57 |
- |
58 |
-CDEPEND=" |
59 |
- >=dev-libs/glib-2.32:2 |
60 |
- dev-libs/libgcrypt:0 |
61 |
- adns? ( >=net-dns/c-ares-1.5 ) |
62 |
- bcg729? ( media-libs/bcg729 ) |
63 |
- ciscodump? ( >=net-libs/libssh-0.6 ) |
64 |
- filecaps? ( sys-libs/libcap ) |
65 |
- kerberos? ( virtual/krb5 ) |
66 |
- libxml2? ( dev-libs/libxml2 ) |
67 |
- lua? ( >=dev-lang/lua-5.1:* ) |
68 |
- lz4? ( app-arch/lz4 ) |
69 |
- maxminddb? ( dev-libs/libmaxminddb ) |
70 |
- netlink? ( dev-libs/libnl:3 ) |
71 |
- nghttp2? ( net-libs/nghttp2 ) |
72 |
- pcap? ( net-libs/libpcap ) |
73 |
- qt5? ( |
74 |
- dev-qt/qtcore:5 |
75 |
- dev-qt/qtgui:5 |
76 |
- dev-qt/qtmultimedia:5 |
77 |
- dev-qt/qtprintsupport:5 |
78 |
- dev-qt/qtwidgets:5 |
79 |
- x11-misc/xdg-utils |
80 |
- ) |
81 |
- sbc? ( media-libs/sbc ) |
82 |
- smi? ( net-libs/libsmi ) |
83 |
- snappy? ( app-arch/snappy ) |
84 |
- spandsp? ( media-libs/spandsp ) |
85 |
- sshdump? ( >=net-libs/libssh-0.6 ) |
86 |
- ssl? ( net-libs/gnutls:= ) |
87 |
- zlib? ( sys-libs/zlib ) |
88 |
-" |
89 |
-# We need perl for `pod2html`. The rest of the perl stuff is to block older |
90 |
-# and broken installs. #455122 |
91 |
-DEPEND=" |
92 |
- ${CDEPEND} |
93 |
- ${PYTHON_DEPS} |
94 |
- !<perl-core/Pod-Simple-3.170 |
95 |
- !<virtual/perl-Pod-Simple-3.170 |
96 |
- dev-lang/perl |
97 |
- sys-devel/bison |
98 |
- sys-devel/flex |
99 |
- virtual/pkgconfig |
100 |
- doc? ( |
101 |
- app-doc/doxygen |
102 |
- dev-ruby/asciidoctor |
103 |
- ) |
104 |
- qt5? ( |
105 |
- dev-qt/linguist-tools:5 |
106 |
- ) |
107 |
-" |
108 |
-RDEPEND=" |
109 |
- ${CDEPEND} |
110 |
- qt5? ( virtual/freedesktop-icon-theme ) |
111 |
- selinux? ( sec-policy/selinux-wireshark ) |
112 |
-" |
113 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
114 |
-PATCHES=( |
115 |
- "${FILESDIR}"/${PN}-2.4-androiddump.patch |
116 |
- "${FILESDIR}"/${PN}-2.6.0-redhat.patch |
117 |
- "${FILESDIR}"/${PN}-2.9.0-tfshark-libm.patch |
118 |
- "${FILESDIR}"/${PN}-99999999-androiddump-wsutil.patch |
119 |
- "${FILESDIR}"/${PN}-99999999-qtsvg.patch |
120 |
- "${FILESDIR}"/${PN}-99999999-ui-needs-wiretap.patch |
121 |
-) |
122 |
- |
123 |
-pkg_setup() { |
124 |
- enewgroup wireshark |
125 |
-} |
126 |
- |
127 |
-src_configure() { |
128 |
- local mycmakeargs |
129 |
- |
130 |
- # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
131 |
- # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
132 |
- if use kerberos; then |
133 |
- case $(krb5-config --libs) in |
134 |
- *-lcrypto*) |
135 |
- ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
136 |
- ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
137 |
- ewarn "license and the GPL, so do your check before distributing such package." |
138 |
- mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) ) |
139 |
- ;; |
140 |
- esac |
141 |
- fi |
142 |
- |
143 |
- if use qt5; then |
144 |
- export QT_MIN_VERSION=5.3.0 |
145 |
- append-cxxflags -fPIC -DPIC |
146 |
- fi |
147 |
- |
148 |
- python_setup 'python3*' |
149 |
- |
150 |
- mycmakeargs+=( |
151 |
- $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes) |
152 |
- $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') |
153 |
- $(usex qt5 MOC=$(qt5_get_bindir)/moc '') |
154 |
- $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') |
155 |
- $(usex qt5 UIC=$(qt5_get_bindir)/uic '') |
156 |
- -DBUILD_androiddump=$(usex androiddump) |
157 |
- -DBUILD_capinfos=$(usex capinfos) |
158 |
- -DBUILD_captype=$(usex captype) |
159 |
- -DBUILD_ciscodump=$(usex ciscodump) |
160 |
- -DBUILD_dftest=$(usex dftest) |
161 |
- -DBUILD_dumpcap=$(usex dumpcap) |
162 |
- -DBUILD_editcap=$(usex editcap) |
163 |
- -DBUILD_mergecap=$(usex mergecap) |
164 |
- -DBUILD_mmdbresolve=$(usex maxminddb) |
165 |
- -DBUILD_randpkt=$(usex randpkt) |
166 |
- -DBUILD_randpktdump=$(usex randpktdump) |
167 |
- -DBUILD_reordercap=$(usex reordercap) |
168 |
- -DBUILD_sharkd=$(usex sharkd) |
169 |
- -DBUILD_sshdump=$(usex sshdump) |
170 |
- -DBUILD_text2pcap=$(usex text2pcap) |
171 |
- -DBUILD_tfshark=$(usex tfshark) |
172 |
- -DBUILD_tshark=$(usex tshark) |
173 |
- -DBUILD_udpdump=$(usex udpdump) |
174 |
- -DBUILD_wireshark=$(usex qt5) |
175 |
- -DDISABLE_WERROR=yes |
176 |
- -DENABLE_BCG729=$(usex bcg729) |
177 |
- -DENABLE_CAP=$(usex filecaps caps) |
178 |
- -DENABLE_CARES=$(usex adns) |
179 |
- -DENABLE_GNUTLS=$(usex ssl) |
180 |
- -DENABLE_KERBEROS=$(usex kerberos) |
181 |
- -DENABLE_LIBXML2=$(usex libxml2) |
182 |
- -DENABLE_LUA=$(usex lua) |
183 |
- -DENABLE_LZ4=$(usex lz4) |
184 |
- -DENABLE_NETLINK=$(usex netlink) |
185 |
- -DENABLE_NGHTTP2=$(usex nghttp2) |
186 |
- -DENABLE_PCAP=$(usex pcap) |
187 |
- -DENABLE_SBC=$(usex sbc) |
188 |
- -DENABLE_SMI=$(usex smi) |
189 |
- -DENABLE_SNAPPY=$(usex snappy) |
190 |
- -DENABLE_SPANDSP=$(usex spandsp) |
191 |
- -DENABLE_ZLIB=$(usex zlib) |
192 |
- ) |
193 |
- |
194 |
- cmake-utils_src_configure |
195 |
-} |
196 |
- |
197 |
-src_install() { |
198 |
- cmake-utils_src_install |
199 |
- |
200 |
- # FAQ is not required as is installed from help/faq.txt |
201 |
- dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README* |
202 |
- |
203 |
- # install headers |
204 |
- insinto /usr/include/wireshark |
205 |
- doins ws_diag_control.h ws_symbol_export.h \ |
206 |
- "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h |
207 |
- |
208 |
- local dir dirs=( |
209 |
- epan |
210 |
- epan/crypt |
211 |
- epan/dfilter |
212 |
- epan/dissectors |
213 |
- epan/ftypes |
214 |
- epan/wmem |
215 |
- wiretap |
216 |
- wsutil |
217 |
- ) |
218 |
- for dir in "${dirs[@]}" |
219 |
- do |
220 |
- insinto /usr/include/wireshark/${dir} |
221 |
- doins ${dir}/*.h |
222 |
- done |
223 |
- |
224 |
- #with the above this really shouldn't be needed, but things may be looking |
225 |
- # in wiretap/ instead of wireshark/wiretap/ |
226 |
- insinto /usr/include/wiretap |
227 |
- doins wiretap/wtap.h |
228 |
- |
229 |
- if use qt5; then |
230 |
- local s |
231 |
- for s in 16 32 48 64 128 256 512 1024; do |
232 |
- insinto /usr/share/icons/hicolor/${s}x${s}/apps |
233 |
- newins image/wsicon${s}.png wireshark.png |
234 |
- done |
235 |
- for s in 16 24 32 48 64 128 256 ; do |
236 |
- insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes |
237 |
- newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png |
238 |
- done |
239 |
- fi |
240 |
- |
241 |
- prune_libtool_files |
242 |
- |
243 |
- mv "${D}"/usr/share/doc/${PN}/* "${D}"/usr/share/doc/${PF}/ || die |
244 |
- rmdir "${D}"/usr/share/doc/${PN} || die |
245 |
-} |
246 |
- |
247 |
-pkg_postinst() { |
248 |
- gnome2_icon_cache_update |
249 |
- xdg_desktop_database_update |
250 |
- xdg_mimeinfo_database_update |
251 |
- |
252 |
- # Add group for users allowed to sniff. |
253 |
- enewgroup wireshark |
254 |
- chgrp wireshark "${EROOT}"/usr/bin/dumpcap |
255 |
- |
256 |
- if use dumpcap && use pcap; then |
257 |
- fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
258 |
- cap_dac_read_search,cap_net_raw,cap_net_admin \ |
259 |
- "${EROOT}"/usr/bin/dumpcap |
260 |
- fi |
261 |
- |
262 |
- ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
263 |
- ewarn "add yourself to the wireshark group. This security measure ensures" |
264 |
- ewarn "that only trusted users are allowed to sniff your traffic." |
265 |
-} |
266 |
- |
267 |
-pkg_postrm() { |
268 |
- gnome2_icon_cache_update |
269 |
- xdg_desktop_database_update |
270 |
- xdg_mimeinfo_database_update |
271 |
-} |
272 |
|
273 |
diff --git a/net-analyzer/wireshark/wireshark-3.0.0_rc2.ebuild b/net-analyzer/wireshark/wireshark-3.0.0_rc2.ebuild |
274 |
deleted file mode 100644 |
275 |
index 7824e565a93..00000000000 |
276 |
--- a/net-analyzer/wireshark/wireshark-3.0.0_rc2.ebuild |
277 |
+++ /dev/null |
278 |
@@ -1,248 +0,0 @@ |
279 |
-# Copyright 1999-2019 Gentoo Authors |
280 |
-# Distributed under the terms of the GNU General Public License v2 |
281 |
- |
282 |
-EAPI=6 |
283 |
-PYTHON_COMPAT=( python3_{4,5,6,7} ) |
284 |
-inherit cmake-utils eutils fcaps flag-o-matic gnome2-utils ltprune multilib python-r1 qmake-utils user xdg-utils |
285 |
- |
286 |
-DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
287 |
-HOMEPAGE="https://www.wireshark.org/" |
288 |
-SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.xz" |
289 |
- |
290 |
-LICENSE="GPL-2" |
291 |
-SLOT="0/${PV}" |
292 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86" |
293 |
-IUSE=" |
294 |
- adns androiddump bcg729 +capinfos +captype ciscodump +dftest doc dpauxmon |
295 |
- +dumpcap +editcap kerberos libxml2 lua lz4 maxminddb +mergecap +netlink |
296 |
- nghttp2 +pcap +qt5 +randpkt +randpktdump +reordercap sbc selinux +sharkd |
297 |
- smi snappy spandsp sshdump ssl sdjournal +text2pcap tfshark +tshark |
298 |
- +udpdump zlib |
299 |
-" |
300 |
- |
301 |
-S=${WORKDIR}/${P/_/} |
302 |
- |
303 |
-CDEPEND=" |
304 |
- >=dev-libs/glib-2.32:2 |
305 |
- dev-libs/libgcrypt:0 |
306 |
- adns? ( >=net-dns/c-ares-1.5 ) |
307 |
- bcg729? ( media-libs/bcg729 ) |
308 |
- ciscodump? ( >=net-libs/libssh-0.6 ) |
309 |
- filecaps? ( sys-libs/libcap ) |
310 |
- kerberos? ( virtual/krb5 ) |
311 |
- libxml2? ( dev-libs/libxml2 ) |
312 |
- lua? ( >=dev-lang/lua-5.1:* ) |
313 |
- lz4? ( app-arch/lz4 ) |
314 |
- maxminddb? ( dev-libs/libmaxminddb ) |
315 |
- netlink? ( dev-libs/libnl:3 ) |
316 |
- nghttp2? ( net-libs/nghttp2 ) |
317 |
- pcap? ( net-libs/libpcap ) |
318 |
- qt5? ( |
319 |
- dev-qt/qtcore:5 |
320 |
- dev-qt/qtgui:5 |
321 |
- dev-qt/qtmultimedia:5 |
322 |
- dev-qt/qtprintsupport:5 |
323 |
- dev-qt/qtwidgets:5 |
324 |
- x11-misc/xdg-utils |
325 |
- ) |
326 |
- sbc? ( media-libs/sbc ) |
327 |
- sdjournal? ( sys-apps/systemd ) |
328 |
- smi? ( net-libs/libsmi ) |
329 |
- snappy? ( app-arch/snappy ) |
330 |
- spandsp? ( media-libs/spandsp ) |
331 |
- sshdump? ( >=net-libs/libssh-0.6 ) |
332 |
- ssl? ( net-libs/gnutls:= ) |
333 |
- zlib? ( sys-libs/zlib ) |
334 |
-" |
335 |
-# We need perl for `pod2html`. The rest of the perl stuff is to block older |
336 |
-# and broken installs. #455122 |
337 |
-DEPEND=" |
338 |
- ${CDEPEND} |
339 |
- ${PYTHON_DEPS} |
340 |
- !<perl-core/Pod-Simple-3.170 |
341 |
- !<virtual/perl-Pod-Simple-3.170 |
342 |
- dev-lang/perl |
343 |
- sys-devel/bison |
344 |
- sys-devel/flex |
345 |
- virtual/pkgconfig |
346 |
- doc? ( |
347 |
- app-doc/doxygen |
348 |
- dev-ruby/asciidoctor |
349 |
- ) |
350 |
- qt5? ( |
351 |
- dev-qt/linguist-tools:5 |
352 |
- ) |
353 |
-" |
354 |
-RDEPEND=" |
355 |
- ${CDEPEND} |
356 |
- qt5? ( virtual/freedesktop-icon-theme ) |
357 |
- selinux? ( sec-policy/selinux-wireshark ) |
358 |
-" |
359 |
-REQUIRED_USE=" |
360 |
- ${PYTHON_REQUIRED_USE} |
361 |
-" |
362 |
-PATCHES=( |
363 |
- "${FILESDIR}"/${PN}-2.4-androiddump.patch |
364 |
- "${FILESDIR}"/${PN}-2.6.0-redhat.patch |
365 |
- "${FILESDIR}"/${PN}-2.9.0-tfshark-libm.patch |
366 |
- "${FILESDIR}"/${PN}-99999999-androiddump-wsutil.patch |
367 |
- "${FILESDIR}"/${PN}-99999999-qtsvg.patch |
368 |
- "${FILESDIR}"/${PN}-99999999-ui-needs-wiretap.patch |
369 |
-) |
370 |
- |
371 |
-pkg_setup() { |
372 |
- enewgroup wireshark |
373 |
-} |
374 |
- |
375 |
-src_configure() { |
376 |
- local mycmakeargs |
377 |
- |
378 |
- # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
379 |
- # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
380 |
- if use kerberos; then |
381 |
- case $(krb5-config --libs) in |
382 |
- *-lcrypto*) |
383 |
- ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
384 |
- ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
385 |
- ewarn "license and the GPL, so do your check before distributing such package." |
386 |
- mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) ) |
387 |
- ;; |
388 |
- esac |
389 |
- fi |
390 |
- |
391 |
- if use qt5; then |
392 |
- export QT_MIN_VERSION=5.3.0 |
393 |
- append-cxxflags -fPIC -DPIC |
394 |
- fi |
395 |
- |
396 |
- python_setup 'python3*' |
397 |
- |
398 |
- mycmakeargs+=( |
399 |
- $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes) |
400 |
- $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') |
401 |
- $(usex qt5 MOC=$(qt5_get_bindir)/moc '') |
402 |
- $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') |
403 |
- $(usex qt5 UIC=$(qt5_get_bindir)/uic '') |
404 |
- -DBUILD_androiddump=$(usex androiddump) |
405 |
- -DBUILD_capinfos=$(usex capinfos) |
406 |
- -DBUILD_captype=$(usex captype) |
407 |
- -DBUILD_ciscodump=$(usex ciscodump) |
408 |
- -DBUILD_dftest=$(usex dftest) |
409 |
- -DBUILD_dpauxmon=$(usex dpauxmon) |
410 |
- -DBUILD_dumpcap=$(usex dumpcap) |
411 |
- -DBUILD_editcap=$(usex editcap) |
412 |
- -DBUILD_mergecap=$(usex mergecap) |
413 |
- -DBUILD_mmdbresolve=$(usex maxminddb) |
414 |
- -DBUILD_randpkt=$(usex randpkt) |
415 |
- -DBUILD_randpktdump=$(usex randpktdump) |
416 |
- -DBUILD_reordercap=$(usex reordercap) |
417 |
- -DBUILD_sdjournal=$(usex sdjournal) |
418 |
- -DBUILD_sharkd=$(usex sharkd) |
419 |
- -DBUILD_sshdump=$(usex sshdump) |
420 |
- -DBUILD_text2pcap=$(usex text2pcap) |
421 |
- -DBUILD_tfshark=$(usex tfshark) |
422 |
- -DBUILD_tshark=$(usex tshark) |
423 |
- -DBUILD_udpdump=$(usex udpdump) |
424 |
- -DBUILD_wireshark=$(usex qt5) |
425 |
- -DDISABLE_WERROR=yes |
426 |
- -DENABLE_BCG729=$(usex bcg729) |
427 |
- -DENABLE_CAP=$(usex filecaps caps) |
428 |
- -DENABLE_CARES=$(usex adns) |
429 |
- -DENABLE_GNUTLS=$(usex ssl) |
430 |
- -DENABLE_KERBEROS=$(usex kerberos) |
431 |
- -DENABLE_LIBXML2=$(usex libxml2) |
432 |
- -DENABLE_LUA=$(usex lua) |
433 |
- -DENABLE_LZ4=$(usex lz4) |
434 |
- -DENABLE_NETLINK=$(usex netlink) |
435 |
- -DENABLE_NGHTTP2=$(usex nghttp2) |
436 |
- -DENABLE_PCAP=$(usex pcap) |
437 |
- -DENABLE_SBC=$(usex sbc) |
438 |
- -DENABLE_SMI=$(usex smi) |
439 |
- -DENABLE_SNAPPY=$(usex snappy) |
440 |
- -DENABLE_SPANDSP=$(usex spandsp) |
441 |
- -DENABLE_ZLIB=$(usex zlib) |
442 |
- ) |
443 |
- |
444 |
- cmake-utils_src_configure |
445 |
-} |
446 |
- |
447 |
-src_test() { |
448 |
- emake -C "${BUILD_DIR}" test-programs |
449 |
- emake -C "${BUILD_DIR}" test |
450 |
-} |
451 |
- |
452 |
-src_install() { |
453 |
- cmake-utils_src_install |
454 |
- |
455 |
- # FAQ is not required as is installed from help/faq.txt |
456 |
- dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README* |
457 |
- |
458 |
- # install headers |
459 |
- insinto /usr/include/wireshark |
460 |
- doins ws_diag_control.h ws_symbol_export.h \ |
461 |
- "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h |
462 |
- |
463 |
- local dir dirs=( |
464 |
- epan |
465 |
- epan/crypt |
466 |
- epan/dfilter |
467 |
- epan/dissectors |
468 |
- epan/ftypes |
469 |
- epan/wmem |
470 |
- wiretap |
471 |
- wsutil |
472 |
- ) |
473 |
- for dir in "${dirs[@]}" |
474 |
- do |
475 |
- insinto /usr/include/wireshark/${dir} |
476 |
- doins ${dir}/*.h |
477 |
- done |
478 |
- |
479 |
- #with the above this really shouldn't be needed, but things may be looking |
480 |
- # in wiretap/ instead of wireshark/wiretap/ |
481 |
- insinto /usr/include/wiretap |
482 |
- doins wiretap/wtap.h |
483 |
- |
484 |
- if use qt5; then |
485 |
- local s |
486 |
- for s in 16 32 48 64 128 256 512 1024; do |
487 |
- insinto /usr/share/icons/hicolor/${s}x${s}/apps |
488 |
- newins image/wsicon${s}.png wireshark.png |
489 |
- done |
490 |
- for s in 16 24 32 48 64 128 256 ; do |
491 |
- insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes |
492 |
- newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png |
493 |
- done |
494 |
- fi |
495 |
- |
496 |
- prune_libtool_files |
497 |
- |
498 |
- mv "${D}"/usr/share/doc/${PN}/* "${D}"/usr/share/doc/${PF}/ || die |
499 |
- rmdir "${D}"/usr/share/doc/${PN} || die |
500 |
-} |
501 |
- |
502 |
-pkg_postinst() { |
503 |
- gnome2_icon_cache_update |
504 |
- xdg_desktop_database_update |
505 |
- xdg_mimeinfo_database_update |
506 |
- |
507 |
- # Add group for users allowed to sniff. |
508 |
- enewgroup wireshark |
509 |
- chgrp wireshark "${EROOT}"/usr/bin/dumpcap |
510 |
- |
511 |
- if use dumpcap && use pcap; then |
512 |
- fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
513 |
- cap_dac_read_search,cap_net_raw,cap_net_admin \ |
514 |
- "${EROOT}"/usr/bin/dumpcap |
515 |
- fi |
516 |
- |
517 |
- ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
518 |
- ewarn "add yourself to the wireshark group. This security measure ensures" |
519 |
- ewarn "that only trusted users are allowed to sniff your traffic." |
520 |
-} |
521 |
- |
522 |
-pkg_postrm() { |
523 |
- gnome2_icon_cache_update |
524 |
- xdg_desktop_database_update |
525 |
- xdg_mimeinfo_database_update |
526 |
-} |