mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-25 17:44:06 +01:00
wireshark: bump
This commit is contained in:
parent
ba192aa535
commit
ea35aaa5a4
2 changed files with 259 additions and 0 deletions
|
|
@ -4,4 +4,6 @@ AUX wireshark-1.6.13-ldflags.patch 230 SHA256 bb56440fb9de9ed480b992d202feac93a5
|
|||
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.3.tar.bz2 29211228 SHA256 69950b9dcb1a630982b5f680554d73d27ee0dc856fc6aeef88c8d04eb5ac33ea SHA512 370ae828a638edac378242a996b0279747a2f54689387fe415f1f66e267a4b52c71a1a369755f3eaa6a2db0e970913dab0b5d3704af3461aa9d7d64abb3a49c6 WHIRLPOOL 4152abb29cc02236449844526207c404628c24a680e059cf8352a8ba8d50003dffca606fca8bf3a157b9970a1fba6943e0d06f51afaa847c4103ebbcbc4aeb44
|
||||
DIST wireshark-1.12.4.tar.bz2 29257016 SHA256 de804e98e252e4b795d28d6ac2d48d7f5aacd9b046ee44d44266983795ebc312 SHA512 ceeb6cb4489ce150a6065e586f83cfbcd0fd79cd05cf8ab5b0346baa03eaa5188503b18a1f228458447235d79f765c410e6b52b9aae77547f80b206429c77b24 WHIRLPOOL 31e3bce9d9003140f808b49e263727bb9386530a81a4ccd6e24cb6bc78f95cc5104da360be7edcd3a214de713b65931b4e77054cb1c3480d8e8c892fce57ed9a
|
||||
EBUILD wireshark-1.12.3.ebuild 6439 SHA256 c9afb805d1f281aefbc3b4ca83b81b073e6c768df613bfc2e50a341abeeb249e SHA512 2b9c5b10d9a64233d1ff3b77d2b4d86a465580b0ebd488fb018904a0232e79d8c85fd61c01632a95fda44c08dd8d361ca284a4e8b85437399fafdffe91028be7 WHIRLPOOL c0fffa9825493e7620808f042e4aae942a475096d165840386aad93f7354c059a570a0c7da8663f0da739051db2dc40b026a959a57ff51e4d777419a46c07cec
|
||||
EBUILD wireshark-1.12.4.ebuild 6438 SHA256 4db4dc3675698feccb2f63dc87c9ddd6ce9cf06eb120e5fa3c3075d0afaf9bbc SHA512 68dc5950742cae7623c9539174071538a03c795edc179bda9825016bf7c6b0e4bc7ad02de1deb1837299422c77975efd54c990cb378d9ea49eaf852c42ad4da7 WHIRLPOOL 3e77fb788b2c8ce2abf4d86a1d96738e121f026d3d85099fa795e0fbce13023a46776f664e2387e8b783c3b357282b4b4ebbc4cd3f93b7ee60adc13a6e83c1b1
|
||||
|
|
|
|||
257
net-analyzer/wireshark/wireshark-1.12.4.ebuild
Normal file
257
net-analyzer/wireshark/wireshark-1.12.4.ebuild
Normal file
|
|
@ -0,0 +1,257 @@
|
|||
# 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.4.ebuild,v 1.4 2015/03/06 09:55:37 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils fcaps multilib 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
|
||||
"
|
||||
|
||||
if use sap; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/CoreSecurity/SAP-Dissection-plug-in-for-Wireshark.git"
|
||||
EGIT_COMMIT="68cdc1141e32d0c45e184f04b231c2e236ab9f97"
|
||||
EGIT_SOURCEDIR="${S}/plugins/sap/"
|
||||
fi
|
||||
|
||||
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
|
||||
)
|
||||
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
|
||||
|
||||
use sap && epatch "${S}"/plugins/sap/wireshark.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 qt5 MOC=/usr/$(get_libdir)/qt5/bin/moc '') \
|
||||
$(usex qt5 UIC=/usr/$(get_libdir)/qt5/bin/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