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