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: Wed, 18 Sep 2019 08:58:40
Message-Id: 1568797113.42b29ef07006b6ee16f65eb76adc68530760b49c.jer@gentoo
1 commit: 42b29ef07006b6ee16f65eb76adc68530760b49c
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 18 08:01:54 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 18 08:58:33 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42b29ef0
7
8 net-analyzer/wireshark: Old
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-analyzer/wireshark/Manifest | 1 -
14 net-analyzer/wireshark/wireshark-3.0.1.ebuild | 246 --------------------------
15 2 files changed, 247 deletions(-)
16
17 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
18 index 604f21503cb..e1e08d420c3 100644
19 --- a/net-analyzer/wireshark/Manifest
20 +++ b/net-analyzer/wireshark/Manifest
21 @@ -1,4 +1,3 @@
22 -DIST wireshark-3.0.1.tar.xz 30903792 BLAKE2B 583052691cc20e97511f2407a64fbdffae91c09275429c9c9a60dbafcfc91ce79270f09710e8fba7db053565f1afc9786caf22ef21e700dd0f97c2f38b139e31 SHA512 59c3f36e4e7a1a7ea8f926dbf8ca495f83346396e1df5edf6a1bb34823c84308f52a1b6d46be9675d3af9ce8718da4a574f63a4fb210d8fc52131f4534d8670d
23 DIST wireshark-3.0.3.tar.xz 30923980 BLAKE2B 05f29f55061d0bed9be284e145d260fca5e0051893c044b1389e1389f2c9865c7ec4c548ea040c6bd853d4fe1c482c5c86fdb23aa79d588ad34b91ed1901bcf0 SHA512 78d4aa68e47a72b641cb2a694028de743c195a41c42fb58f510402581a213c1239f63cad1f9163b13d64608fcedf64c7367a4888021b80613cb7e9a6ddbf8750
24 DIST wireshark-3.0.4.tar.xz 30938336 BLAKE2B ab97cbfd9999a4e326787639debb67f0d0b8509572fb85297385a461dbaf081691d59fc2cb16b4a69baee8ca0ef873503f85f0238bf0fbedfcb3e0755749d3df SHA512 eb9ddc8ba3d78bc6c1f2e1d277e81c00939638793ed21b98999310231d13a0fc8a6149dc5e78f58026778b8137e954ad7f67069f8cb80465078ca2d9795b25d1
25 DIST wireshark-3.1.0.tar.xz 31052040 BLAKE2B 96ede4dcbb3f5c4ecf1d935737bb26dcaecabe24e0767b34914febd31a1402d2428580e8b26c145bc98a71ef01fddcfca6e4f5709d9a8d90634ea6ed4789bb20 SHA512 df7ca131d0e0f00ec00ef0934cf070c7f6d06e55830777e5ab62f4b1c5588b57bfb45e69009f8ab0c3f405f9dd730bf35671d09f46a9a846a09154ec47caffc9
26
27 diff --git a/net-analyzer/wireshark/wireshark-3.0.1.ebuild b/net-analyzer/wireshark/wireshark-3.0.1.ebuild
28 deleted file mode 100644
29 index 32c6c317528..00000000000
30 --- a/net-analyzer/wireshark/wireshark-3.0.1.ebuild
31 +++ /dev/null
32 @@ -1,246 +0,0 @@
33 -# Copyright 1999-2019 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -PYTHON_COMPAT=( python3_{5,6,7} )
38 -inherit cmake-utils fcaps flag-o-matic ltprune multilib python-r1 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="arm"
47 -IUSE="
48 - adns androiddump bcg729 +capinfos +captype ciscodump +dftest doc dpauxmon
49 - +dumpcap +editcap kerberos libxml2 lua lz4 maxminddb +mergecap +netlink
50 - nghttp2 +pcap +qt5 +randpkt +randpktdump +reordercap sbc selinux +sharkd
51 - smi snappy spandsp sshdump ssl sdjournal +text2pcap tfshark +tshark
52 - +udpdump zlib
53 -"
54 -
55 -S=${WORKDIR}/${P/_/}
56 -
57 -CDEPEND="
58 - >=dev-libs/glib-2.32:2
59 - dev-libs/libgcrypt:0
60 - adns? ( >=net-dns/c-ares-1.5 )
61 - bcg729? ( media-libs/bcg729 )
62 - ciscodump? ( >=net-libs/libssh-0.6 )
63 - filecaps? ( sys-libs/libcap )
64 - kerberos? ( virtual/krb5 )
65 - libxml2? ( dev-libs/libxml2 )
66 - lua? ( >=dev-lang/lua-5.1:* )
67 - lz4? ( app-arch/lz4 )
68 - maxminddb? ( dev-libs/libmaxminddb )
69 - netlink? ( dev-libs/libnl:3 )
70 - nghttp2? ( net-libs/nghttp2 )
71 - pcap? ( net-libs/libpcap )
72 - qt5? (
73 - dev-qt/qtcore:5
74 - dev-qt/qtgui:5
75 - dev-qt/qtmultimedia:5
76 - dev-qt/qtprintsupport:5
77 - dev-qt/qtwidgets:5
78 - x11-misc/xdg-utils
79 - )
80 - sbc? ( media-libs/sbc )
81 - sdjournal? ( sys-apps/systemd )
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="
114 - ${PYTHON_REQUIRED_USE}
115 -"
116 -PATCHES=(
117 - "${FILESDIR}"/${PN}-2.4-androiddump.patch
118 - "${FILESDIR}"/${PN}-2.6.0-redhat.patch
119 - "${FILESDIR}"/${PN}-2.9.0-tfshark-libm.patch
120 - "${FILESDIR}"/${PN}-99999999-androiddump-wsutil.patch
121 - "${FILESDIR}"/${PN}-99999999-qtsvg.patch
122 - "${FILESDIR}"/${PN}-99999999-ui-needs-wiretap.patch
123 -)
124 -
125 -pkg_setup() {
126 - enewgroup wireshark
127 -}
128 -
129 -src_configure() {
130 - local mycmakeargs
131 -
132 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
133 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
134 - if use kerberos; then
135 - case $(krb5-config --libs) in
136 - *-lcrypto*)
137 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
138 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
139 - ewarn "license and the GPL, so do your check before distributing such package."
140 - mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) )
141 - ;;
142 - esac
143 - fi
144 -
145 - if use qt5; then
146 - export QT_MIN_VERSION=5.3.0
147 - append-cxxflags -fPIC -DPIC
148 - fi
149 -
150 - python_setup 'python3*'
151 -
152 - mycmakeargs+=(
153 - $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes)
154 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '')
155 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '')
156 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '')
157 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '')
158 - -DBUILD_androiddump=$(usex androiddump)
159 - -DBUILD_capinfos=$(usex capinfos)
160 - -DBUILD_captype=$(usex captype)
161 - -DBUILD_ciscodump=$(usex ciscodump)
162 - -DBUILD_dftest=$(usex dftest)
163 - -DBUILD_dpauxmon=$(usex dpauxmon)
164 - -DBUILD_dumpcap=$(usex dumpcap)
165 - -DBUILD_editcap=$(usex editcap)
166 - -DBUILD_mergecap=$(usex mergecap)
167 - -DBUILD_mmdbresolve=$(usex maxminddb)
168 - -DBUILD_randpkt=$(usex randpkt)
169 - -DBUILD_randpktdump=$(usex randpktdump)
170 - -DBUILD_reordercap=$(usex reordercap)
171 - -DBUILD_sdjournal=$(usex sdjournal)
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 - -DCMAKE_INSTALL_DOCDIR="/usr/share/doc/${PF}"
180 - -DDISABLE_WERROR=yes
181 - -DENABLE_BCG729=$(usex bcg729)
182 - -DENABLE_CAP=$(usex filecaps caps)
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_SBC=$(usex sbc)
193 - -DENABLE_SMI=$(usex smi)
194 - -DENABLE_SNAPPY=$(usex snappy)
195 - -DENABLE_SPANDSP=$(usex spandsp)
196 - -DENABLE_ZLIB=$(usex zlib)
197 - )
198 -
199 - cmake-utils_src_configure
200 -}
201 -
202 -src_test() {
203 - emake -C "${BUILD_DIR}" test-programs
204 - emake -C "${BUILD_DIR}" test
205 -}
206 -
207 -src_install() {
208 - cmake-utils_src_install
209 -
210 - # FAQ is not required as is installed from help/faq.txt
211 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
212 -
213 - # install headers
214 - insinto /usr/include/wireshark
215 - doins ws_diag_control.h ws_symbol_export.h \
216 - "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h
217 -
218 - local dir dirs=(
219 - epan
220 - epan/crypt
221 - epan/dfilter
222 - epan/dissectors
223 - epan/ftypes
224 - epan/wmem
225 - wiretap
226 - wsutil
227 - )
228 - for dir in "${dirs[@]}"
229 - do
230 - insinto /usr/include/wireshark/${dir}
231 - doins ${dir}/*.h
232 - done
233 -
234 - #with the above this really shouldn't be needed, but things may be looking
235 - # in wiretap/ instead of wireshark/wiretap/
236 - insinto /usr/include/wiretap
237 - doins wiretap/wtap.h
238 -
239 - if use qt5; then
240 - local s
241 - for s in 16 32 48 64 128 256 512 1024; do
242 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
243 - newins image/wsicon${s}.png wireshark.png
244 - done
245 - for s in 16 24 32 48 64 128 256 ; do
246 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
247 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
248 - done
249 - fi
250 -
251 - prune_libtool_files
252 -}
253 -
254 -pkg_postinst() {
255 - xdg_desktop_database_update
256 - xdg_icon_cache_update
257 - xdg_mimeinfo_database_update
258 -
259 - # Add group for users allowed to sniff.
260 - enewgroup wireshark
261 - chgrp wireshark "${EROOT}"/usr/bin/dumpcap
262 -
263 - if use dumpcap && use pcap; then
264 - fcaps -o 0 -g wireshark -m 4710 -M 0710 \
265 - cap_dac_read_search,cap_net_raw,cap_net_admin \
266 - "${EROOT}"/usr/bin/dumpcap
267 - fi
268 -
269 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
270 - ewarn "add yourself to the wireshark group. This security measure ensures"
271 - ewarn "that only trusted users are allowed to sniff your traffic."
272 -}
273 -
274 -pkg_postrm() {
275 - xdg_desktop_database_update
276 - xdg_icon_cache_update
277 - xdg_mimeinfo_database_update
278 -}