1 |
commit: 910f19ea289fb04ae1aadd257a264949a4106e1c |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 19 08:29:44 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 19 08:29:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=910f19ea |
7 |
|
8 |
net-analyzer/wireshark: Old. |
9 |
|
10 |
Package-Manager: Portage-2.3.11, Repoman-2.3.3 |
11 |
|
12 |
net-analyzer/wireshark/Manifest | 1 - |
13 |
net-analyzer/wireshark/wireshark-2.4.1-r3.ebuild | 289 ----------------------- |
14 |
2 files changed, 290 deletions(-) |
15 |
|
16 |
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest |
17 |
index 6f602cbb3e5..c15d386eaf9 100644 |
18 |
--- a/net-analyzer/wireshark/Manifest |
19 |
+++ b/net-analyzer/wireshark/Manifest |
20 |
@@ -1,3 +1,2 @@ |
21 |
DIST wireshark-2.2.7.tar.bz2 32309420 SHA256 689ddf62221b152779d8846ab5b2063cc7fd41ec1a9f04eefab09b5d5486dbb5 SHA512 417836810eb895b3f2a6ac1cfd138fb0275382ea2edc60fc5f5e5f8ce433b56b8120aa8b58b4f77296986630fdf49e4c5c3859b2c2c5e26b1ce0651393b7d716 WHIRLPOOL 0361821da9c113a8de1339cc48cae0291be84bcffb1ba34b1fc3f457b22525329e954a2060f7eef25bca550d0ccdaf4a9e9587d35394b0abd9b0d38bc6023e44 |
22 |
-DIST wireshark-2.4.1.tar.xz 28780384 SHA256 02ddbcf9b10f9dfa1e36eec00fe00cb5b5ce8e07203843baf056ac7909911fcd SHA512 66f3f9abecc00c4c153c61f42739522b091ba06cc68b6bd79fe45a1064192fbb88e38e96d4df6722255b06a3520f23d2db6c5fa5e4faf5e8641cf2f5dce10056 WHIRLPOOL 3cdf5b1a3fe95bfaf2416f1ea1310999dd6d34babd5c040797ae4b2ea5faee7b90797a6507fed9be77e6038e90acd052484982b2dc62d9da67ac1e2520ef94c2 |
23 |
DIST wireshark-2.4.2.tar.xz 28791712 SHA256 d1acb24735fd35e18e9b7a0555ec58277c2b87da45a19ebeb8087c3dda55f47d SHA512 212964482a1e45af490ef78b3f2465384f84c007a76c3a99e8de0e2c37d933fb34b0da5631f4a36ca12d2fa7cc4376d3d405cbe7f7113791ea09dba7e5915417 WHIRLPOOL 245454643e138c61ccb380ae236482fea702cf4c0507de1c1d3d6dc9f7312809533db7b0fba585f95b8caf5b76affa4da23ad263b8f95174dfbb9c2ee3300177 |
24 |
|
25 |
diff --git a/net-analyzer/wireshark/wireshark-2.4.1-r3.ebuild b/net-analyzer/wireshark/wireshark-2.4.1-r3.ebuild |
26 |
deleted file mode 100644 |
27 |
index 82628ef1cff..00000000000 |
28 |
--- a/net-analyzer/wireshark/wireshark-2.4.1-r3.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,289 +0,0 @@ |
31 |
-# Copyright 1999-2017 Gentoo Foundation |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=6 |
35 |
-inherit autotools eutils fcaps flag-o-matic gnome2-utils multilib qmake-utils user xdg-utils |
36 |
- |
37 |
-DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
38 |
-HOMEPAGE="https://www.wireshark.org/" |
39 |
-SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.xz" |
40 |
- |
41 |
-LICENSE="GPL-2" |
42 |
-SLOT="0/${PV}" |
43 |
-KEYWORDS="~amd64 ~arm ~arm64 hppa ~ppc ~ppc64 ~x86 ~x86-fbsd" |
44 |
-IUSE=" |
45 |
- adns androiddump +capinfos +caps +captype ciscodump cpu_flags_x86_sse4_2 |
46 |
- +dftest doc doc-pdf +dumpcap +editcap geoip gtk kerberos libssh libxml2 lua |
47 |
- +mergecap +netlink nghttp2 +pcap portaudio +qt5 +randpkt +randpktdump |
48 |
- +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl +text2pcap |
49 |
- tfshark +tshark +udpdump zlib |
50 |
-" |
51 |
-REQUIRED_USE=" |
52 |
- ciscodump? ( libssh ) |
53 |
- sshdump? ( libssh ) |
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 |
- caps? ( sys-libs/libcap ) |
64 |
- geoip? ( dev-libs/geoip ) |
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 |
- libssh? ( >=net-libs/libssh-0.6 ) |
73 |
- libxml2? ( dev-libs/libxml2 ) |
74 |
- lua? ( >=dev-lang/lua-5.1:* ) |
75 |
- nghttp2? ( net-libs/nghttp2 ) |
76 |
- pcap? ( net-libs/libpcap ) |
77 |
- portaudio? ( media-libs/portaudio ) |
78 |
- qt5? ( |
79 |
- dev-qt/qtcore:5 |
80 |
- dev-qt/qtgui:5 |
81 |
- dev-qt/qtmultimedia:5 |
82 |
- dev-qt/qtprintsupport:5 |
83 |
- dev-qt/qtwidgets:5 |
84 |
- media-libs/speex |
85 |
- x11-misc/xdg-utils |
86 |
- ) |
87 |
- sbc? ( media-libs/sbc ) |
88 |
- smi? ( net-libs/libsmi ) |
89 |
- snappy? ( app-arch/snappy ) |
90 |
- spandsp? ( media-libs/spandsp ) |
91 |
- ssl? ( net-libs/gnutls:= ) |
92 |
- zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 ) |
93 |
-" |
94 |
-# We need perl for `pod2html`. The rest of the perl stuff is to block older |
95 |
-# and broken installs. #455122 |
96 |
-DEPEND=" |
97 |
- ${CDEPEND} |
98 |
- dev-lang/perl |
99 |
- !<virtual/perl-Pod-Simple-3.170 |
100 |
- !<perl-core/Pod-Simple-3.170 |
101 |
- doc? ( |
102 |
- app-doc/doxygen |
103 |
- app-text/asciidoc |
104 |
- dev-libs/libxml2 |
105 |
- dev-libs/libxslt |
106 |
- doc-pdf? ( dev-java/fop ) |
107 |
- www-client/lynx |
108 |
- ) |
109 |
- qt5? ( |
110 |
- dev-qt/linguist-tools:5 |
111 |
- ) |
112 |
- sys-devel/bison |
113 |
- sys-devel/flex |
114 |
- virtual/pkgconfig |
115 |
-" |
116 |
-RDEPEND=" |
117 |
- ${CDEPEND} |
118 |
- gtk? ( virtual/freedesktop-icon-theme ) |
119 |
- qt5? ( virtual/freedesktop-icon-theme ) |
120 |
- selinux? ( sec-policy/selinux-wireshark ) |
121 |
-" |
122 |
-PATCHES=( |
123 |
- "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch |
124 |
- "${FILESDIR}"/${PN}-2.1.0-sse4_2-r1.patch |
125 |
- "${FILESDIR}"/${PN}-2.4-androiddump.patch |
126 |
- "${FILESDIR}"/${PN}-99999999-androiddump.patch |
127 |
-) |
128 |
- |
129 |
-pkg_setup() { |
130 |
- enewgroup wireshark |
131 |
-} |
132 |
- |
133 |
-src_prepare() { |
134 |
- default |
135 |
- |
136 |
- eautoreconf |
137 |
-} |
138 |
- |
139 |
-src_configure() { |
140 |
- local myconf |
141 |
- |
142 |
- # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
143 |
- # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
144 |
- if use kerberos; then |
145 |
- case $(krb5-config --libs) in |
146 |
- *-lcrypto*) |
147 |
- ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
148 |
- ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
149 |
- ewarn "license and the GPL, so do your check before distributing such package." |
150 |
- myconf+=( "--with-ssl" ) |
151 |
- ;; |
152 |
- esac |
153 |
- fi |
154 |
- |
155 |
- # Enable wireshark binary with any supported GUI toolkit (bug #473188) |
156 |
- if use gtk || use qt5; then |
157 |
- myconf+=( "--enable-wireshark" ) |
158 |
- else |
159 |
- myconf+=( "--disable-wireshark" ) |
160 |
- fi |
161 |
- |
162 |
- if ! use qt5; then |
163 |
- myconf+=( "--with-qt=no" ) |
164 |
- fi |
165 |
- |
166 |
- if use qt5; then |
167 |
- export QT_MIN_VERSION=5.3.0 |
168 |
- append-cxxflags -fPIC -DPIC |
169 |
- fi |
170 |
- |
171 |
- # Hack around inability to disable doxygen/fop doc generation |
172 |
- use doc || export ac_cv_prog_HAVE_DOXYGEN=false |
173 |
- use doc-pdf || export ac_cv_prog_HAVE_FOP=false |
174 |
- |
175 |
- # dumpcap requires libcap |
176 |
- # --disable-profile-build bugs #215806, #292991, #479602 |
177 |
- econf \ |
178 |
- $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \ |
179 |
- $(use dumpcap && use_with pcap dumpcap-group wireshark) \ |
180 |
- $(use_enable androiddump) \ |
181 |
- $(use_enable capinfos) \ |
182 |
- $(use_enable captype) \ |
183 |
- $(use_enable ciscodump) \ |
184 |
- $(use_enable dftest) \ |
185 |
- $(use_enable dumpcap) \ |
186 |
- $(use_enable editcap) \ |
187 |
- $(use_enable mergecap) \ |
188 |
- $(use_enable randpkt) \ |
189 |
- $(use_enable randpktdump) \ |
190 |
- $(use_enable reordercap) \ |
191 |
- $(use_enable sharkd) \ |
192 |
- $(use_enable sshdump) \ |
193 |
- $(use_enable text2pcap) \ |
194 |
- $(use_enable tfshark) \ |
195 |
- $(use_enable tshark) \ |
196 |
- $(use_enable udpdump) \ |
197 |
- $(use_with adns c-ares) \ |
198 |
- $(use_with caps libcap) \ |
199 |
- $(use_with geoip) \ |
200 |
- $(use_with gtk gtk 3) \ |
201 |
- $(use_with kerberos krb5) \ |
202 |
- $(use_with libssh ssh) \ |
203 |
- $(use_with libxml2) \ |
204 |
- $(use_with lua) \ |
205 |
- $(use_with nghttp2) \ |
206 |
- $(use_with pcap) \ |
207 |
- $(use_with portaudio) \ |
208 |
- $(use_with sbc) \ |
209 |
- $(use_with smi libsmi) \ |
210 |
- $(use_with snappy) \ |
211 |
- $(use_with spandsp) \ |
212 |
- $(use_with ssl gnutls) \ |
213 |
- $(use_with zlib) \ |
214 |
- $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \ |
215 |
- $(usex netlink --with-libnl=3 --without-libnl) \ |
216 |
- $(usex qt5 --with-qt=5 '') \ |
217 |
- $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') \ |
218 |
- $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \ |
219 |
- $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \ |
220 |
- $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \ |
221 |
- --disable-profile-build \ |
222 |
- --disable-warnings-as-errors \ |
223 |
- --sysconfdir="${EPREFIX}"/etc/wireshark \ |
224 |
- ${myconf[@]} |
225 |
-} |
226 |
- |
227 |
-src_compile() { |
228 |
- default |
229 |
- |
230 |
- if use doc; then |
231 |
- emake -j1 -C docbook |
232 |
- if use doc-pdf; then |
233 |
- addpredict "/root/.java" |
234 |
- emake -C docbook all-pdf |
235 |
- fi |
236 |
- fi |
237 |
-} |
238 |
- |
239 |
-src_install() { |
240 |
- default |
241 |
- |
242 |
- # FAQ is not required as is installed from help/faq.txt |
243 |
- dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \ |
244 |
- doc/{randpkt.txt,README*} |
245 |
- |
246 |
- if use doc; then |
247 |
- docinto /usr/share/doc/${PF}/html |
248 |
- dodoc -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}} |
249 |
- if use doc-pdf; then |
250 |
- docinto /usr/share/doc/${PF}/pdf/ |
251 |
- dodoc docbook/{developer,user}-guide-{a4,us}.pdf docbook/release-notes.pdf |
252 |
- fi |
253 |
- fi |
254 |
- |
255 |
- # install headers |
256 |
- local wsheader |
257 |
- for wsheader in \ |
258 |
- config.h \ |
259 |
- epan/*.h \ |
260 |
- epan/crypt/*.h \ |
261 |
- epan/dfilter/*.h \ |
262 |
- epan/dissectors/*.h \ |
263 |
- epan/ftypes/*.h \ |
264 |
- epan/wmem/*.h \ |
265 |
- register.h \ |
266 |
- wiretap/*.h \ |
267 |
- ws_diag_control.h \ |
268 |
- ws_symbol_export.h \ |
269 |
- wsutil/*.h |
270 |
- do |
271 |
- insinto /usr/include/wireshark/$( dirname ${wsheader} ) |
272 |
- doins ${wsheader} |
273 |
- done |
274 |
- |
275 |
- #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/ |
276 |
- insinto /usr/include/wiretap |
277 |
- doins wiretap/wtap.h |
278 |
- |
279 |
- if use gtk || use qt5; then |
280 |
- local c d |
281 |
- for c in hi lo; do |
282 |
- for d in 16 32 48; do |
283 |
- insinto /usr/share/icons/${c}color/${d}x${d}/apps |
284 |
- newins image/${c}${d}-app-wireshark.png wireshark.png |
285 |
- done |
286 |
- done |
287 |
- for d in 16 24 32 48 64 128 256 ; do |
288 |
- insinto /usr/share/icons/hicolor/${d}x${d}/mimetypes |
289 |
- newins image/WiresharkDoc-${d}.png application-vnd.tcpdump.pcap.png |
290 |
- done |
291 |
- fi |
292 |
- |
293 |
- prune_libtool_files |
294 |
-} |
295 |
- |
296 |
-pkg_postinst() { |
297 |
- gnome2_icon_cache_update |
298 |
- xdg_desktop_database_update |
299 |
- xdg_mimeinfo_database_update |
300 |
- |
301 |
- # Add group for users allowed to sniff. |
302 |
- enewgroup wireshark |
303 |
- |
304 |
- if use pcap; then |
305 |
- fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
306 |
- cap_dac_read_search,cap_net_raw,cap_net_admin \ |
307 |
- "${EROOT}"/usr/bin/dumpcap |
308 |
- fi |
309 |
- |
310 |
- ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
311 |
- ewarn "add yourself to the wireshark group. This security measure ensures" |
312 |
- ewarn "that only trusted users are allowed to sniff your traffic." |
313 |
-} |
314 |
- |
315 |
-pkg_postrm() { |
316 |
- gnome2_icon_cache_update |
317 |
- xdg_desktop_database_update |
318 |
- xdg_mimeinfo_database_update |
319 |
-} |