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