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: Sat, 23 Feb 2019 13:04:25
Message-Id: 1550927054.121c7b0845a6f17f8723acc29c1e17be3ab99d9b.jer@gentoo
1 commit: 121c7b0845a6f17f8723acc29c1e17be3ab99d9b
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 23 12:55:27 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 23 13:04:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=121c7b08
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 | 1 -
14 net-analyzer/wireshark/wireshark-2.6.4-r1.ebuild | 240 -----------------------
15 2 files changed, 241 deletions(-)
16
17 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
18 index 04705e80429..6894336f017 100644
19 --- a/net-analyzer/wireshark/Manifest
20 +++ b/net-analyzer/wireshark/Manifest
21 @@ -1,6 +1,5 @@
22 DIST wireshark-2.4.5.tar.xz 28836740 BLAKE2B 797540daca259a2d5d7dc6e637f2b504b6d14191af4040e6b344c95db6c776b7de80c25c59c98ab84d0337cc96c7313b42c13103a3c3944768a793130deae258 SHA512 2f2c201d6b8a37dcbe03bc9affbf97d632d8e40e4fe5b3a3e79cbd5cfbeb5b9111919850546ccae355fcb042def3456438eb1c4d73f7d56d373e7898311b42f3
23 DIST wireshark-2.6.3.tar.xz 28384004 BLAKE2B f275c73173fbaf3f819c58f28859362e9c53ae50cf2649ac42c8d172362241eb00d7f43d0aead184ec67cb8da34d405124be10c5bf31226c2cb4800b8a01955b SHA512 87e5335840baa401a1064ee83e3f0ee859c059dd37a09f63f19eb5d91ad273e84f1c0e7a8fdd63fe8a7076abff5e79593827544c5796d921cf7dc7682c7c3f80
24 -DIST wireshark-2.6.4.tar.xz 28218232 BLAKE2B d54d7661801667f78f0c3248f4099c77ef016222ae942dc7a5776af2c5c18f7b00305556ac84df6afd19cf3d2bd59e78365067dd9402f978ae0a7db76c1730ca SHA512 bc740548901b30f2e44c2b0933717288615fa38edc5e092607a8b12c60ecfacaa5aa7c59d7644cf29238d0d636fbe03d85559a0f2de81a3bf8ceac55fcf9ff07
25 DIST wireshark-2.6.6.tar.xz 28407404 BLAKE2B 5135789d345b675814a6394d5ba1469585b9eab917885730125b8a007aecd9cb48a510fc9e7479148cadf625807bac9017b854797e4bb2e562d7dc7f76140826 SHA512 b781c3b34dc76a3d8e60dc2b9b4e46a11994440b8df7b56134521ea9a77b27b0719a600db60d7f3d65f15972a5db2a7e85a8bf60d7217fce498fb5668de8fe56
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-2.6.4-r1.ebuild b/net-analyzer/wireshark/wireshark-2.6.4-r1.ebuild
30 deleted file mode 100644
31 index 9dafeca71f9..00000000000
32 --- a/net-analyzer/wireshark/wireshark-2.6.4-r1.ebuild
33 +++ /dev/null
34 @@ -1,240 +0,0 @@
35 -# Copyright 1999-2018 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=6
39 -inherit cmake-utils eutils fcaps flag-o-matic gnome2-utils ltprune multilib qmake-utils user xdg-utils
40 -
41 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
42 -HOMEPAGE="https://www.wireshark.org/"
43 -SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.xz"
44 -
45 -LICENSE="GPL-2"
46 -SLOT="0/${PV}"
47 -KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc64 x86"
48 -IUSE="
49 - adns androiddump bcg729 +capinfos +captype ciscodump +dftest doc
50 - +dumpcap +editcap gtk kerberos libxml2 lua lz4 maxminddb +mergecap +netlink
51 - nghttp2 +pcap portaudio +qt5 +randpkt +randpktdump +reordercap sbc selinux
52 - +sharkd smi snappy spandsp sshdump ssl +text2pcap tfshark +tshark +udpdump
53 - zlib
54 -"
55 -
56 -S=${WORKDIR}/${P/_/}
57 -
58 -CDEPEND="
59 - >=dev-libs/glib-2.14:2
60 - dev-libs/libgcrypt:0
61 - netlink? ( dev-libs/libnl:3 )
62 - adns? ( >=net-dns/c-ares-1.5 )
63 - bcg729? ( media-libs/bcg729 )
64 - filecaps? ( sys-libs/libcap )
65 - gtk? (
66 - x11-libs/gdk-pixbuf
67 - x11-libs/gtk+:3
68 - x11-libs/pango
69 - x11-misc/xdg-utils
70 - )
71 - kerberos? ( virtual/krb5 )
72 - sshdump? ( >=net-libs/libssh-0.6 )
73 - ciscodump? ( >=net-libs/libssh-0.6 )
74 - libxml2? ( dev-libs/libxml2 )
75 - lua? ( >=dev-lang/lua-5.1:* )
76 - lz4? ( app-arch/lz4 )
77 - maxminddb? ( dev-libs/libmaxminddb )
78 - nghttp2? ( net-libs/nghttp2 )
79 - pcap? ( net-libs/libpcap )
80 - portaudio? ( media-libs/portaudio )
81 - qt5? (
82 - dev-qt/qtcore:5
83 - dev-qt/qtgui:5
84 - dev-qt/qtmultimedia:5
85 - dev-qt/qtprintsupport:5
86 - dev-qt/qtwidgets:5
87 - x11-misc/xdg-utils
88 - )
89 - sbc? ( media-libs/sbc )
90 - smi? ( net-libs/libsmi )
91 - snappy? ( app-arch/snappy )
92 - spandsp? ( media-libs/spandsp )
93 - ssl? ( net-libs/gnutls:= )
94 - zlib? ( sys-libs/zlib )
95 -"
96 -# We need perl for `pod2html`. The rest of the perl stuff is to block older
97 -# and broken installs. #455122
98 -DEPEND="
99 - ${CDEPEND}
100 - dev-lang/perl
101 - !<virtual/perl-Pod-Simple-3.170
102 - !<perl-core/Pod-Simple-3.170
103 - doc? (
104 - app-doc/doxygen
105 - dev-ruby/asciidoctor
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.4-androiddump.patch
123 - "${FILESDIR}"/${PN}-2.6.0-androiddump-wsutil.patch
124 - "${FILESDIR}"/${PN}-2.6.0-redhat.patch
125 - "${FILESDIR}"/${PN}-2.6.2-qtsvg.patch
126 - "${FILESDIR}"/${PN}-99999999-androiddump.patch
127 -)
128 -
129 -pkg_setup() {
130 - enewgroup wireshark
131 -}
132 -
133 -src_configure() {
134 - local mycmakeargs
135 -
136 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
137 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
138 - if use kerberos; then
139 - case $(krb5-config --libs) in
140 - *-lcrypto*)
141 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
142 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
143 - ewarn "license and the GPL, so do your check before distributing such package."
144 - mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) )
145 - ;;
146 - esac
147 - fi
148 -
149 - if use qt5; then
150 - export QT_MIN_VERSION=5.3.0
151 - append-cxxflags -fPIC -DPIC
152 - fi
153 -
154 - mycmakeargs+=(
155 - $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes)
156 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '')
157 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '')
158 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '')
159 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '')
160 - -DBUILD_androiddump=$(usex androiddump)
161 - -DBUILD_capinfos=$(usex capinfos)
162 - -DBUILD_captype=$(usex captype)
163 - -DBUILD_ciscodump=$(usex ciscodump)
164 - -DBUILD_dftest=$(usex dftest)
165 - -DBUILD_dumpcap=$(usex dumpcap)
166 - -DBUILD_editcap=$(usex editcap)
167 - -DBUILD_mergecap=$(usex mergecap)
168 - -DBUILD_mmdbresolve=$(usex maxminddb)
169 - -DBUILD_randpkt=$(usex randpkt)
170 - -DBUILD_randpktdump=$(usex randpktdump)
171 - -DBUILD_reordercap=$(usex reordercap)
172 - -DBUILD_sharkd=$(usex sharkd)
173 - -DBUILD_sshdump=$(usex sshdump)
174 - -DBUILD_text2pcap=$(usex text2pcap)
175 - -DBUILD_tfshark=$(usex tfshark)
176 - -DBUILD_tshark=$(usex tshark)
177 - -DBUILD_udpdump=$(usex udpdump)
178 - -DBUILD_wireshark=$(usex qt5)
179 - -DBUILD_wireshark_gtk=$(usex gtk)
180 - -DDISABLE_WERROR=yes
181 - -DENABLE_BCG729=$(usex bcg729)
182 - -DENABLE_CAP=no
183 - -DENABLE_CARES=$(usex adns)
184 - -DENABLE_GNUTLS=$(usex ssl)
185 - -DENABLE_KERBEROS=$(usex kerberos)
186 - -DENABLE_LIBXML2=$(usex libxml2)
187 - -DENABLE_LUA=$(usex lua)
188 - -DENABLE_LZ4=$(usex lz4)
189 - -DENABLE_NETLINK=$(usex netlink)
190 - -DENABLE_NGHTTP2=$(usex nghttp2)
191 - -DENABLE_PCAP=$(usex pcap)
192 - -DENABLE_PORTAUDIO=$(usex portaudio)
193 - -DENABLE_SBC=$(usex sbc)
194 - -DENABLE_SMI=$(usex smi)
195 - -DENABLE_SNAPPY=$(usex snappy)
196 - -DENABLE_SPANDSP=$(usex spandsp)
197 - -DENABLE_ZLIB=$(usex zlib)
198 - )
199 -
200 - cmake-utils_src_configure
201 -}
202 -
203 -src_install() {
204 - cmake-utils_src_install
205 -
206 - # FAQ is not required as is installed from help/faq.txt
207 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
208 -
209 - # install headers
210 - insinto /usr/include/wireshark
211 - doins ws_diag_control.h ws_symbol_export.h \
212 - "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h
213 -
214 - local dir dirs=(
215 - epan
216 - epan/crypt
217 - epan/dfilter
218 - epan/dissectors
219 - epan/ftypes
220 - epan/wmem
221 - wiretap
222 - wsutil
223 - )
224 - for dir in "${dirs[@]}"
225 - do
226 - insinto /usr/include/wireshark/${dir}
227 - doins ${dir}/*.h
228 - done
229 -
230 - #with the above this really shouldn't be needed, but things may be looking
231 - # in wiretap/ instead of wireshark/wiretap/
232 - insinto /usr/include/wiretap
233 - doins wiretap/wtap.h
234 -
235 - if use gtk || use qt5; then
236 - local s
237 - for s in 16 32 48 64 128 256 512 1024; do
238 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
239 - newins image/wsicon${s}.png wireshark.png
240 - done
241 - for s in 16 24 32 48 64 128 256 ; do
242 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
243 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
244 - done
245 - fi
246 -
247 - prune_libtool_files
248 -}
249 -
250 -pkg_postinst() {
251 - gnome2_icon_cache_update
252 - xdg_desktop_database_update
253 - xdg_mimeinfo_database_update
254 -
255 - # Add group for users allowed to sniff.
256 - enewgroup wireshark
257 - chgrp wireshark "${EROOT}"/usr/bin/dumpcap
258 -
259 - if use dumpcap && use pcap; then
260 - fcaps -o 0 -g wireshark -m 4710 -M 0710 \
261 - cap_dac_read_search,cap_net_raw,cap_net_admin \
262 - "${EROOT}"/usr/bin/dumpcap
263 - fi
264 -
265 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
266 - ewarn "add yourself to the wireshark group. This security measure ensures"
267 - ewarn "that only trusted users are allowed to sniff your traffic."
268 -}
269 -
270 -pkg_postrm() {
271 - gnome2_icon_cache_update
272 - xdg_desktop_database_update
273 - xdg_mimeinfo_database_update
274 -}