mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 22:30:59 +02:00
wireshark: v1.12.6 with sap standalone plugin
This commit is contained in:
parent
1ba7af7cc9
commit
b9f2802462
3 changed files with 307 additions and 0 deletions
|
|
@ -1,7 +1,10 @@
|
|||
AUX wireshark-1.11.0-oldlibs.patch 776 SHA256 0b4b23ad3ce7022809187ce970733a4c6bdb9fed31099853b399498fde8dee66 SHA512 dde2cbfd839409c594562b71783204279c37697939d44ee56ce4966d7dd43d04ab5837bd51551c416ec789b56f8efd0016e6ecc2311af8b3109e987da301bef6 WHIRLPOOL 57fb7f67166440208c5fe023f8c7e62a4f860ae5fecf02df6e9b8b45fe31c999f7eeeee83914bbfc26c656c69bfceee75c94f9ac80c64ebd0c1d6db792b66665
|
||||
AUX wireshark-1.11.3-gtk-deprecated-warnings.patch 1068 SHA256 0211d3f345617554add63f3101a548a990e26219b31b28003e4dbf607d38de88 SHA512 9ea643e8f707d9f9fe3ce61b875ae1828c77cd81c636423fc5572420fd3b103042e078f89541c5145db49f133828d333c55d1c2c3b9a162f0756051ef9d946b9 WHIRLPOOL b04cad3b70bc37b9cbc833227bdf9c32c17e67ad067902d3fb35f467fb76520546ecd508de1805ef810b76ebe4f0b686e483817c790cb4ede75c229505596502
|
||||
AUX wireshark-1.12.5-cross-compile.patch 1569 SHA256 15a9f96e5041483f526cfb200549840ac369012a4fbc5ae35461d6095991eef0 SHA512 08a7a7ba8291fc0f948660929455b883de8efc639a4d9210d22ee7abb0e09551b42d7ba1ea87174283cc9a9f7384ec6f87b0c4caa46b55316baa093e50078e75 WHIRLPOOL 509e054471d17862e083401b306138c68c5c0785aef1b0927e4f16cc82dfc0ecec4d7dae29a63516bfc7fa7ab06419c817cf10c00ece30903052a1b02f1f341e
|
||||
AUX wireshark-1.6.13-ldflags.patch 230 SHA256 bb56440fb9de9ed480b992d202feac93a53003e9fa47869f54c6f2f30d315720 SHA512 c4a2c66e6ea9b523ca9f5a3e37411221f5aa630de07d7bf84633855ac44da60b3b493671e578dbfd67de94e87ab1c79203f9b80b57f9460f2a81ee39f58171b3 WHIRLPOOL ca20e190c7a8d7ca69c6d90cfb28f8f1c8896b6793b9a026567ec4df4f7080ca6424ab249d01754db1059891d32362444178272489b4425e895f3031a0e1e0f7
|
||||
AUX wireshark-1.99.0-qt5.patch 2757 SHA256 79621949e1b0d99229e1a033b58f7a2c18cfb1afa0e4868d1ae91b7f372ced8f SHA512 e3e660db8711985e2522bd2e1fea7833781ce8b7d5e00489d50141ea9c3a1ee41105d5cdd48750fbee4437a5607ec7161c1f5a6cf40ea938ef16975183b28078 WHIRLPOOL e40f53957c9cb2f54cb2f1abb768c75e73cc7d5e26dd41613c9d0519306bdbd669d4712f5e4006a6369f80e97da6e47355936dc4d3320eb02b6902952e19d97d
|
||||
AUX wireshark-1.99.1-sbc.patch 665 SHA256 c76afab0f03c59001df597948153bf76bbdc14da30a2de9e93831bed6dc6e898 SHA512 3e71c9ecfb07c96df8330b6a1fa959bde79bf7531f106b7f90acc59a82f3b1ec74ae1643b9b13cd6a642b25766996afa7083ac1daa2bada765134ae8846112a8 WHIRLPOOL 8b53a06ffa03579ed71a558cb475e05bb7152463123089cec80b3f00ae68bab02fcba2fa789471419175965be6af1604e8371b30b9dd04a5b967c995627a5517
|
||||
DIST wireshark-1.12.4.tar.bz2 29257016 SHA256 de804e98e252e4b795d28d6ac2d48d7f5aacd9b046ee44d44266983795ebc312 SHA512 ceeb6cb4489ce150a6065e586f83cfbcd0fd79cd05cf8ab5b0346baa03eaa5188503b18a1f228458447235d79f765c410e6b52b9aae77547f80b206429c77b24 WHIRLPOOL 31e3bce9d9003140f808b49e263727bb9386530a81a4ccd6e24cb6bc78f95cc5104da360be7edcd3a214de713b65931b4e77054cb1c3480d8e8c892fce57ed9a
|
||||
DIST wireshark-1.12.6.tar.bz2 29166493 SHA256 22ac0cc872f12cef9bb2cacfe0720eed8533dc5cea102d21de511620606cb3b6 SHA512 a8fb576e359d6534fc2df3372f23c1f338aed393749786cde21d8593f50ccec154d05c9298f7ddfcaa3a0dcee921975c6a40070a8d0b84f6fbb7f8df16b2b17b WHIRLPOOL d6c8cc268e46ab59da1d06d73dc5a7e7e16f9b07297f04a6e997fbf72a5a8ceb71847f892ab0fc281e843e3f23e8ed3bf85580b19e76e2103b0cb388c2bc9850
|
||||
EBUILD wireshark-1.12.4.ebuild 6437 SHA256 3a552893c575a981dbc2524f38695257693694f81258cc29db9e16b93beaba78 SHA512 ef7029733c771d14fdd3cb8c95cf3699029cdd21cd9bd798ffae3126452c7609550854d254e8f09e830350176c43ddacc21b772be89817507cbf30bde2878190 WHIRLPOOL 28578799e1ed0d2b1998b3a26e827f6a6facf6e89d80c9bea6313a71d17316b76f02020161eceb3a2600b382b88d4eaa7d7170b0c0c5fd7899cc59161c430626
|
||||
EBUILD wireshark-1.12.6.ebuild 6438 SHA256 cf6e405175a95f7c9278af1f94a09e8ace6588967a8e374ec4252d4a6d23c724 SHA512 39345e32a12382504fdf5dd218589cae8fc698b8b2c52101986b43614c72b4ded1a351a86ad38b5692409daa711db9ec3b30a616ce69237ed5fa188f36c858fa WHIRLPOOL 069f20a4676abad4866912e8e6960cd4436c10def4e6b9762405ba8e4267af53a05949ae9e3f1ecd97080e9e5cfc7f2ffe2b5d0c06c12f95fa7ba60d8df7fcfa
|
||||
|
|
|
|||
|
|
@ -0,0 +1,51 @@
|
|||
https://code.wireshark.org/review/8481
|
||||
|
||||
From edefd74591d8f7010024a31576c2cb51eb1526ad Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@chromium.org>
|
||||
Date: Sat, 16 May 2015 05:08:53 -0400
|
||||
Subject: [PATCH] switch to AC_PATH_TOOL
|
||||
|
||||
The TOOL variant will automatically search for host prefixed scripts
|
||||
(e.g. armv7a-unknown-linux-gnueabi-pcap-config) before falling back
|
||||
to the default (i.e. pcap-config). This makes cross-compiling a bit
|
||||
simpler.
|
||||
|
||||
Change-Id: Ia450839693b5550f798634a7e8b82c2a661b088c
|
||||
---
|
||||
acinclude.m4 | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/acinclude.m4 b/acinclude.m4
|
||||
index ffb1cac..c79c427 100644
|
||||
--- a/acinclude.m4
|
||||
+++ b/acinclude.m4
|
||||
@@ -380,7 +380,7 @@ AC_DEFUN([AC_WIRESHARK_PCAP_CHECK],
|
||||
# The user didn't specify a directory in which libpcap resides.
|
||||
# First, look for a pcap-config script.
|
||||
#
|
||||
- AC_PATH_PROG(PCAP_CONFIG, pcap-config)
|
||||
+ AC_PATH_TOOL(PCAP_CONFIG, pcap-config)
|
||||
|
||||
if test -n "$PCAP_CONFIG" ; then
|
||||
#
|
||||
@@ -1217,7 +1217,7 @@ AC_DEFUN([AC_WIRESHARK_KRB5_CHECK],
|
||||
AC_DEFINE(HAVE_MIT_KERBEROS, 1, [Define to use MIT kerberos])
|
||||
fi
|
||||
else
|
||||
- AC_PATH_PROG(KRB5_CONFIG, krb5-config)
|
||||
+ AC_PATH_TOOL(KRB5_CONFIG, krb5-config)
|
||||
if test -x "$KRB5_CONFIG"
|
||||
then
|
||||
KRB5_FLAGS=`"$KRB5_CONFIG" --cflags`
|
||||
@@ -2033,7 +2033,7 @@ AC_DEFUN([AC_WIRESHARK_QT_CHECK],
|
||||
[
|
||||
no_qt=""
|
||||
|
||||
- AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
||||
+ AC_PATH_TOOL(PKG_CONFIG, pkg-config, no)
|
||||
|
||||
if test x$PKG_CONFIG != xno ; then
|
||||
if pkg-config --atleast-pkgconfig-version 0.7 ; then
|
||||
--
|
||||
2.4.0
|
||||
|
||||
253
net-analyzer/wireshark/wireshark-1.12.6.ebuild
Normal file
253
net-analyzer/wireshark/wireshark-1.12.6.ebuild
Normal file
|
|
@ -0,0 +1,253 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.12.6.ebuild,v 1.5 2015/06/21 06:16:25 zlogene Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils fcaps multilib qmake-utils qt4-r2 user
|
||||
|
||||
DESCRIPTION="A network protocol analyzer formerly known as ethereal"
|
||||
HOMEPAGE="http://www.wireshark.org/"
|
||||
SRC_URI="${HOMEPAGE}download/src/all-versions/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ppc64 ~sparc x86 ~x86-fbsd"
|
||||
IUSE="
|
||||
adns +caps crypt doc doc-pdf geoip +gtk3 ipv6 kerberos lua +netlink +pcap
|
||||
portaudio +qt4 qt5 sap sbc selinux smi ssl zlib
|
||||
"
|
||||
REQUIRED_USE="
|
||||
ssl? ( crypt )
|
||||
?? ( qt4 qt5 )
|
||||
"
|
||||
|
||||
GTK_COMMON_DEPEND="
|
||||
x11-libs/gdk-pixbuf
|
||||
x11-libs/pango
|
||||
x11-misc/xdg-utils
|
||||
"
|
||||
CDEPEND="
|
||||
>=dev-libs/glib-2.14:2
|
||||
netlink? ( dev-libs/libnl:3 )
|
||||
adns? ( >=net-dns/c-ares-1.5 )
|
||||
crypt? ( dev-libs/libgcrypt:0 )
|
||||
caps? ( sys-libs/libcap )
|
||||
geoip? ( dev-libs/geoip )
|
||||
gtk3? (
|
||||
${GTK_COMMON_DEPEND}
|
||||
x11-libs/gtk+:3
|
||||
)
|
||||
kerberos? ( virtual/krb5 )
|
||||
lua? ( >=dev-lang/lua-5.1:* )
|
||||
pcap? ( net-libs/libpcap )
|
||||
portaudio? ( media-libs/portaudio )
|
||||
qt4? (
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4[accessibility]
|
||||
x11-misc/xdg-utils
|
||||
)
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5[accessibility]
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtwidgets:5
|
||||
x11-misc/xdg-utils
|
||||
)
|
||||
sap? ( net-misc/wireshark-sap-plugin )
|
||||
sbc? ( media-libs/sbc )
|
||||
smi? ( net-libs/libsmi )
|
||||
ssl? ( net-libs/gnutls )
|
||||
zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 )
|
||||
"
|
||||
# We need perl for `pod2html`. The rest of the perl stuff is to block older
|
||||
# and broken installs. #455122
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
dev-lang/perl
|
||||
!<virtual/perl-Pod-Simple-3.170
|
||||
!<perl-core/Pod-Simple-3.170
|
||||
doc? (
|
||||
app-doc/doxygen
|
||||
app-text/asciidoc
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
doc-pdf? ( dev-java/fop )
|
||||
www-client/lynx
|
||||
)
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
gtk3? ( virtual/freedesktop-icon-theme )
|
||||
qt4? ( virtual/freedesktop-icon-theme )
|
||||
qt5? ( virtual/freedesktop-icon-theme )
|
||||
selinux? ( sec-policy/selinux-wireshark )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup wireshark
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-1.6.13-ldflags.patch \
|
||||
"${FILESDIR}"/${PN}-1.11.0-oldlibs.patch \
|
||||
"${FILESDIR}"/${PN}-1.11.3-gtk-deprecated-warnings.patch \
|
||||
"${FILESDIR}"/${PN}-1.99.0-qt5.patch \
|
||||
"${FILESDIR}"/${PN}-1.99.1-sbc.patch \
|
||||
"${FILESDIR}"/${PN}-1.12.5-cross-compile.patch
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
# Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
|
||||
# --with-ssl to ./configure. (Mimics code from acinclude.m4).
|
||||
if use kerberos; then
|
||||
case $(krb5-config --libs) in
|
||||
*-lcrypto*)
|
||||
ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
|
||||
ewarn "Note there are annoying license incompatibilities between the OpenSSL"
|
||||
ewarn "license and the GPL, so do your check before distributing such package."
|
||||
myconf+=( "--with-ssl" )
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Enable wireshark binary with any supported GUI toolkit (bug #473188)
|
||||
if use gtk3 || use qt4 || use qt5; then
|
||||
myconf+=( "--enable-wireshark" )
|
||||
else
|
||||
myconf+=( "--disable-wireshark" )
|
||||
fi
|
||||
|
||||
use qt4 && export QT_MIN_VERSION=4.6.0
|
||||
use qt5 && export QT_MIN_VERSION=5.3.0
|
||||
|
||||
# Hack around inability to disable doxygen/fop doc generation
|
||||
use doc || export ac_cv_prog_HAVE_DOXYGEN=false
|
||||
use doc-pdf || export ac_cv_prog_HAVE_FOP=false
|
||||
|
||||
# dumpcap requires libcap
|
||||
# --disable-profile-build bugs #215806, #292991, #479602
|
||||
econf \
|
||||
$(use_enable ipv6) \
|
||||
$(use_with adns c-ares) \
|
||||
$(use_with caps libcap) \
|
||||
$(use_with crypt gcrypt) \
|
||||
$(use_with geoip) \
|
||||
$(use_with gtk3) \
|
||||
$(use_with kerberos krb5) \
|
||||
$(use_with lua) \
|
||||
$(use_with pcap dumpcap-group wireshark) \
|
||||
$(use_with pcap) \
|
||||
$(use_with portaudio) \
|
||||
$(use_with qt4) \
|
||||
$(use_with qt5) \
|
||||
$(usex qt4 MOC=$(qt4_get_bindir)/moc '') \
|
||||
$(usex qt4 RCC=$(qt4_get_bindir)/rcc '') \
|
||||
$(usex qt4 UIC=$(qt4_get_bindir)/uic '') \
|
||||
$(usex qt5 MOC=$(qt5_get_bindir)/moc '') \
|
||||
$(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \
|
||||
$(usex qt5 UIC=$(qt5_get_bindir)/uic '') \
|
||||
$(use_with sbc) \
|
||||
$(use_with smi libsmi) \
|
||||
$(use_with ssl gnutls) \
|
||||
$(use_with zlib) \
|
||||
$(usex netlink --with-libnl=3 --without-libnl) \
|
||||
--disable-profile-build \
|
||||
--disable-usr-local \
|
||||
--disable-warnings-as-errors \
|
||||
--sysconfdir="${EPREFIX}"/etc/wireshark \
|
||||
--without-adns \
|
||||
${myconf[@]}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
if use doc; then
|
||||
use doc-pdf && addpredict "/root/.java"
|
||||
emake -j1 -C docbook
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if use doc; then
|
||||
dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}}
|
||||
if use doc-pdf; then
|
||||
insinto /usr/share/doc/${PF}/pdf/
|
||||
doins docbook/{{developer,user}-guide,release-notes}-{a4,us}.pdf
|
||||
fi
|
||||
fi
|
||||
|
||||
# FAQ is not required as is installed from help/faq.txt
|
||||
dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \
|
||||
doc/{randpkt.txt,README*}
|
||||
|
||||
# install headers
|
||||
local wsheader
|
||||
for wsheader in \
|
||||
color.h \
|
||||
config.h \
|
||||
epan/*.h \
|
||||
epan/crypt/*.h \
|
||||
epan/dfilter/*.h \
|
||||
epan/dissectors/*.h \
|
||||
epan/ftypes/*.h \
|
||||
epan/wmem/*.h \
|
||||
register.h \
|
||||
wiretap/*.h \
|
||||
ws_symbol_export.h \
|
||||
wsutil/*.h
|
||||
do
|
||||
insinto /usr/include/wireshark/$( dirname ${wsheader} )
|
||||
doins ${wsheader}
|
||||
done
|
||||
|
||||
#with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/
|
||||
insinto /usr/include/wiretap
|
||||
doins wiretap/wtap.h
|
||||
|
||||
if use gtk3 || use qt4; then
|
||||
local c d
|
||||
for c in hi lo; do
|
||||
for d in 16 32 48; do
|
||||
insinto /usr/share/icons/${c}color/${d}x${d}/apps
|
||||
newins image/${c}${d}-app-wireshark.png wireshark.png
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
if use gtk3; then
|
||||
domenu wireshark.desktop
|
||||
fi
|
||||
|
||||
if use qt4; then
|
||||
sed -e '/Exec=/s|wireshark|&-qt|g' wireshark.desktop > wireshark-qt.desktop || die
|
||||
domenu wireshark-qt.desktop
|
||||
fi
|
||||
|
||||
prune_libtool_files
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Add group for users allowed to sniff.
|
||||
enewgroup wireshark
|
||||
|
||||
if use pcap; then
|
||||
fcaps -o 0 -g wireshark -m 4710 -M 0710 \
|
||||
cap_dac_read_search,cap_net_raw,cap_net_admin \
|
||||
"${EROOT}"/usr/bin/dumpcap
|
||||
fi
|
||||
|
||||
ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
|
||||
ewarn "add yourself to the wireshark group. This security measure ensures"
|
||||
ewarn "that only trusted users are allowed to sniff your traffic."
|
||||
}
|
||||
Loading…
Reference in a new issue