Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wireshark/
Date: Thu, 01 Oct 2020 21:10:36
Message-Id: 1601586616.a49ddce59403d3950d26cc87e36818b76b24ca95.dilfridge@gentoo
1 commit: a49ddce59403d3950d26cc87e36818b76b24ca95
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 1 21:09:11 2020 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 1 21:10:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a49ddce5
7
8 QA: Revert "net-analyzer/wireshark: Version 3.3.1"
9
10 GLEP 81
11
12 This reverts commit 6afadd93b76c3107bdeba136409277a2e5f920c0.
13
14 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
15
16 net-analyzer/wireshark/Manifest | 1 -
17 net-analyzer/wireshark/wireshark-3.3.1.ebuild | 260 --------------------------
18 2 files changed, 261 deletions(-)
19
20 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
21 index 112896602e5..2609271b4da 100644
22 --- a/net-analyzer/wireshark/Manifest
23 +++ b/net-analyzer/wireshark/Manifest
24 @@ -1,4 +1,3 @@
25 DIST wireshark-3.2.6.tar.xz 31635628 BLAKE2B 216623d4f357e755b9c032bef45b30c373bb0e2de773daabb78725491bd8eb0290d25a9016081dc62844c1be63e3afd273a8a6b8d16e70e589465fd837cc7442 SHA512 71905836370b916a92e7a76e4f93cb10a658374c7a95aa47b607b2b142abebdb0d1562f642782a5a946a167dfb28169572330a7603cf0d7ab6016ce7f12fac78
26 DIST wireshark-3.2.7.tar.xz 31659996 BLAKE2B 69ed148e5cc6403b3948f4851164033163d0817626feaeaa0abf09b749c9e37c036786ed91f04add1ceeb80b69b7d05316b648d339c8c86f0818e0ee0afdf4ad SHA512 c17913fe6c193ccc6b0dbf86932d625a1f3b670aef805296e5db2639118218e06d513910ad50ab3926204f94a0010425b0d498176f987516d64fdd6a52d2517b
27 DIST wireshark-3.3.0.tar.xz 32795500 BLAKE2B 1f5b7711e76464403a9ed11f2f72a858716e177334b036bf5f2b2aa9f41b197fded04ff18a3841f3d6fdab9acf331a5bc4dfee3adc8eca775c4eeedbbc163ece SHA512 1ca59d951b3b3c18f55f21023a775124639fbc99a0396e3b2ecf3569213659a039836c6bdaf82b802668b5108f455106a22e83ab26ee18ed882dfa564594df5a
28 -DIST wireshark-3.3.1.tar.xz 32876876 BLAKE2B d8973b9724bece1b9890ed468280bcef56f2ac4f1022882f520140db98dab1e81071f3621fda247a80a8e51ad18a77c606f077efbb3d0e13dea47f986a5300e5 SHA512 d6f50c14e79dff0fb902f5b06a2fb5a6975e5b17461205ab3275b05a53df606a5b1e488e8472cc644541b653df7d5f4a3c7009e38a2f75242af4ea2f59af061f
29
30 diff --git a/net-analyzer/wireshark/wireshark-3.3.1.ebuild b/net-analyzer/wireshark/wireshark-3.3.1.ebuild
31 deleted file mode 100644
32 index d2607c117e4..00000000000
33 --- a/net-analyzer/wireshark/wireshark-3.3.1.ebuild
34 +++ /dev/null
35 @@ -1,260 +0,0 @@
36 -# Copyright 1999-2020 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -PYTHON_COMPAT=( python3_{6,7,8} )
41 -inherit fcaps flag-o-matic multilib python-any-r1 qmake-utils user xdg-utils cmake
42 -
43 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
44 -HOMEPAGE="https://www.wireshark.org/"
45 -SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz"
46 -LICENSE="GPL-2"
47 -
48 -SLOT="0/${PV}"
49 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~x86"
50 -IUSE="
51 - androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon
52 - +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb
53 - +mergecap +minizip +netlink +plugins plugin-ifdemo +pcap +qt5 +randpkt
54 - +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl
55 - sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd
56 -"
57 -S=${WORKDIR}/${P/_/}
58 -
59 -CDEPEND="
60 - >=dev-libs/glib-2.32:2
61 - >=net-dns/c-ares-1.5
62 - dev-libs/libgcrypt:0
63 - bcg729? ( media-libs/bcg729 )
64 - brotli? ( app-arch/brotli )
65 - ciscodump? ( >=net-libs/libssh-0.6 )
66 - filecaps? ( sys-libs/libcap )
67 - http2? ( net-libs/nghttp2 )
68 - ilbc? ( media-libs/libilbc )
69 - kerberos? ( virtual/krb5 )
70 - libxml2? ( dev-libs/libxml2 )
71 - lua? ( >=dev-lang/lua-5.1:* )
72 - lz4? ( app-arch/lz4 )
73 - maxminddb? ( dev-libs/libmaxminddb )
74 - minizip? ( sys-libs/zlib[minizip] )
75 - netlink? ( dev-libs/libnl:3 )
76 - pcap? ( net-libs/libpcap )
77 - qt5? (
78 - dev-qt/qtcore:5
79 - dev-qt/qtgui:5
80 - dev-qt/qtmultimedia:5
81 - dev-qt/qtprintsupport:5
82 - dev-qt/qtwidgets:5
83 - x11-misc/xdg-utils
84 - )
85 - sbc? ( media-libs/sbc )
86 - sdjournal? ( sys-apps/systemd )
87 - smi? ( net-libs/libsmi )
88 - snappy? ( app-arch/snappy )
89 - spandsp? ( media-libs/spandsp )
90 - sshdump? ( >=net-libs/libssh-0.6 )
91 - ssl? ( net-libs/gnutls:= )
92 - zlib? ( sys-libs/zlib )
93 - zstd? ( app-arch/zstd )
94 -"
95 -# We need perl for `pod2html`. The rest of the perl stuff is to block older
96 -# and broken installs. #455122
97 -DEPEND="
98 - ${CDEPEND}
99 - ${PYTHON_DEPS}
100 -"
101 -BDEPEND="
102 - dev-lang/perl
103 - sys-devel/bison
104 - sys-devel/flex
105 - virtual/pkgconfig
106 - doc? (
107 - app-doc/doxygen
108 - dev-ruby/asciidoctor
109 - )
110 - qt5? (
111 - dev-qt/linguist-tools:5
112 - )
113 - test? (
114 - dev-python/pytest
115 - dev-python/pytest-xdist
116 - )
117 -"
118 -RDEPEND="
119 - ${CDEPEND}
120 - qt5? ( virtual/freedesktop-icon-theme )
121 - selinux? ( sec-policy/selinux-wireshark )
122 -"
123 -REQUIRED_USE="
124 - plugin-ifdemo? ( plugins )
125 -"
126 -RESTRICT="test"
127 -PATCHES=(
128 - "${FILESDIR}"/${PN}-2.6.0-redhat.patch
129 - "${FILESDIR}"/${PN}-99999999-ui-needs-wiretap.patch
130 -)
131 -
132 -pkg_setup() {
133 - enewgroup wireshark
134 -}
135 -
136 -src_configure() {
137 - local mycmakeargs
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 - mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) )
148 - ;;
149 - esac
150 - fi
151 -
152 - if use qt5; then
153 - export QT_MIN_VERSION=5.3.0
154 - append-cxxflags -fPIC -DPIC
155 - fi
156 -
157 - python_setup
158 -
159 - mycmakeargs+=(
160 - $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes)
161 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '')
162 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '')
163 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '')
164 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '')
165 - -DBUILD_androiddump=$(usex androiddump)
166 - -DBUILD_capinfos=$(usex capinfos)
167 - -DBUILD_captype=$(usex captype)
168 - -DBUILD_ciscodump=$(usex ciscodump)
169 - -DBUILD_dftest=$(usex dftest)
170 - -DBUILD_dpauxmon=$(usex dpauxmon)
171 - -DBUILD_dumpcap=$(usex dumpcap)
172 - -DBUILD_editcap=$(usex editcap)
173 - -DBUILD_mergecap=$(usex mergecap)
174 - -DBUILD_mmdbresolve=$(usex maxminddb)
175 - -DBUILD_randpkt=$(usex randpkt)
176 - -DBUILD_randpktdump=$(usex randpktdump)
177 - -DBUILD_reordercap=$(usex reordercap)
178 - -DBUILD_sdjournal=$(usex sdjournal)
179 - -DBUILD_sharkd=$(usex sharkd)
180 - -DBUILD_sshdump=$(usex sshdump)
181 - -DBUILD_text2pcap=$(usex text2pcap)
182 - -DBUILD_tfshark=$(usex tfshark)
183 - -DBUILD_tshark=$(usex tshark)
184 - -DBUILD_udpdump=$(usex udpdump)
185 - -DBUILD_wireshark=$(usex qt5)
186 - -DCMAKE_INSTALL_DOCDIR="${EROOT}/usr/share/doc/${PF}"
187 - -DDISABLE_WERROR=yes
188 - -DENABLE_BCG729=$(usex bcg729)
189 - -DENABLE_BROTLI=$(usex brotli)
190 - -DENABLE_CAP=$(usex filecaps caps)
191 - -DENABLE_GNUTLS=$(usex ssl)
192 - -DENABLE_ILBC=$(usex ilbc)
193 - -DENABLE_KERBEROS=$(usex kerberos)
194 - -DENABLE_LIBXML2=$(usex libxml2)
195 - -DENABLE_LTO=$(usex lto)
196 - -DENABLE_LUA=$(usex lua)
197 - -DENABLE_LZ4=$(usex lz4)
198 - -DENABLE_MINIZIP=$(usex minizip)
199 - -DENABLE_NETLINK=$(usex netlink)
200 - -DENABLE_NGHTTP2=$(usex http2)
201 - -DENABLE_PCAP=$(usex pcap)
202 - -DENABLE_PLUGINS=$(usex plugins)
203 - -DENABLE_PLUGIN_IFDEMO=$(usex plugin-ifdemo)
204 - -DENABLE_SBC=$(usex sbc)
205 - -DENABLE_SMI=$(usex smi)
206 - -DENABLE_SNAPPY=$(usex snappy)
207 - -DENABLE_SPANDSP=$(usex spandsp)
208 - -DENABLE_ZLIB=$(usex zlib)
209 - -DENABLE_ZSTD=$(usex zstd)
210 - )
211 -
212 - cmake_src_configure
213 -}
214 -
215 -src_test() {
216 - cmake_build test-programs
217 -
218 - myctestargs=( --disable-capture --skip-missing-programs=all --verbose )
219 - cmake_src_test
220 -}
221 -
222 -src_install() {
223 - cmake_src_install
224 -
225 - # FAQ is not required as is installed from help/faq.txt
226 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
227 -
228 - # install headers
229 - insinto /usr/include/wireshark
230 - doins ws_diag_control.h ws_symbol_export.h \
231 - "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h
232 -
233 - local dir dirs=(
234 - epan
235 - epan/crypt
236 - epan/dfilter
237 - epan/dissectors
238 - epan/ftypes
239 - epan/wmem
240 - wiretap
241 - wsutil
242 - )
243 - for dir in "${dirs[@]}"
244 - do
245 - insinto /usr/include/wireshark/${dir}
246 - doins ${dir}/*.h
247 - done
248 -
249 - #with the above this really shouldn't be needed, but things may be looking
250 - # in wiretap/ instead of wireshark/wiretap/
251 - insinto /usr/include/wiretap
252 - doins wiretap/wtap.h
253 -
254 - if use qt5; then
255 - local s
256 - for s in 16 32 48 64 128 256 512 1024; do
257 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
258 - newins image/wsicon${s}.png wireshark.png
259 - done
260 - for s in 16 24 32 48 64 128 256 ; do
261 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
262 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
263 - done
264 - fi
265 -
266 - if [[ -d "${D}"/usr/share/appdata ]]; then
267 - rm -r "${D}"/usr/share/appdata || die
268 - fi
269 -}
270 -
271 -pkg_postinst() {
272 - xdg_desktop_database_update
273 - xdg_icon_cache_update
274 - xdg_mimeinfo_database_update
275 -
276 - # Add group for users allowed to sniff.
277 - enewgroup wireshark
278 - chgrp wireshark "${EROOT}"/usr/bin/dumpcap
279 -
280 - if use dumpcap && use pcap; then
281 - fcaps -o 0 -g wireshark -m 4710 -M 0710 \
282 - cap_dac_read_search,cap_net_raw,cap_net_admin \
283 - "${EROOT}"/usr/bin/dumpcap
284 - fi
285 -
286 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
287 - ewarn "add yourself to the wireshark group. This security measure ensures"
288 - ewarn "that only trusted users are allowed to sniff your traffic."
289 -}
290 -
291 -pkg_postrm() {
292 - xdg_desktop_database_update
293 - xdg_icon_cache_update
294 - xdg_mimeinfo_database_update
295 -}