From 433e897529f5a41682189da5dba5a9f853c39456 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Wed, 2 May 2018 20:37:26 +0200 Subject: net-analyzer/wireshark: Switch to cmake (bug #545688). Package-Manager: Portage-2.3.32, Repoman-2.3.9 --- .../files/wireshark-2.6.0-androiddump-wsutil.patch | 26 +++ net-analyzer/wireshark/wireshark-2.6.0-r1.ebuild | 247 +++++++++++++++++++++ net-analyzer/wireshark/wireshark-99999999.ebuild | 190 ++++++---------- 3 files changed, 347 insertions(+), 116 deletions(-) create mode 100644 net-analyzer/wireshark/files/wireshark-2.6.0-androiddump-wsutil.patch create mode 100644 net-analyzer/wireshark/wireshark-2.6.0-r1.ebuild (limited to 'net-analyzer') diff --git a/net-analyzer/wireshark/files/wireshark-2.6.0-androiddump-wsutil.patch b/net-analyzer/wireshark/files/wireshark-2.6.0-androiddump-wsutil.patch new file mode 100644 index 000000000000..e28465e814a5 --- /dev/null +++ b/net-analyzer/wireshark/files/wireshark-2.6.0-androiddump-wsutil.patch @@ -0,0 +1,26 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -2841,6 +2841,7 @@ + if(HAVE_LIBPCAP) + set(androiddump_LIBS + ui ++ wsutil + ${GLIB2_LIBRARIES} + ${PCAP_LIBRARIES} + ) +@@ -2851,6 +2852,7 @@ + set(androiddump_LIBS + ui + wiretap ++ wsutil + ${GLIB2_LIBRARIES} + ${ZLIB_LIBRARIES} + ${CMAKE_DL_LIBS} +@@ -2862,7 +2864,6 @@ + ) + + add_executable(androiddump WIN32 ${androiddump_FILES}) +- # XXX Shouldn't we add wsutil to androiddump_LIBS instead? + set_extcap_executable_properties(androiddump) + target_link_libraries(androiddump ${androiddump_LIBS}) + install(TARGETS androiddump RUNTIME DESTINATION ${EXTCAP_DIR}) diff --git a/net-analyzer/wireshark/wireshark-2.6.0-r1.ebuild b/net-analyzer/wireshark/wireshark-2.6.0-r1.ebuild new file mode 100644 index 000000000000..1efad019372f --- /dev/null +++ b/net-analyzer/wireshark/wireshark-2.6.0-r1.ebuild @@ -0,0 +1,247 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils eutils fcaps flag-o-matic gnome2-utils ltprune multilib qmake-utils user xdg-utils + +DESCRIPTION="A network protocol analyzer formerly known as ethereal" +HOMEPAGE="https://www.wireshark.org/" +SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.xz" + +LICENSE="GPL-2" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86" +IUSE=" + adns androiddump bcg729 +capinfos +caps +captype ciscodump +dftest doc + +dumpcap +editcap gtk kerberos libxml2 lua lz4 maxminddb +mergecap +netlink + nghttp2 +pcap portaudio +qt5 +randpkt +randpktdump +reordercap sbc selinux + +sharkd smi snappy spandsp sshdump ssl +text2pcap tfshark +tshark +udpdump + zlib +" + +S=${WORKDIR}/${P/_/} + +CDEPEND=" + >=dev-libs/glib-2.14:2 + dev-libs/libgcrypt:0 + netlink? ( dev-libs/libnl:3 ) + adns? ( >=net-dns/c-ares-1.5 ) + bcg729? ( media-libs/bcg729 ) + caps? ( sys-libs/libcap ) + gtk? ( + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/pango + x11-misc/xdg-utils + ) + kerberos? ( virtual/krb5 ) + sshdump? ( >=net-libs/libssh-0.6 ) + ciscodump? ( >=net-libs/libssh-0.6 ) + libxml2? ( dev-libs/libxml2 ) + lua? ( >=dev-lang/lua-5.1:* ) + lz4? ( app-arch/lz4 ) + maxminddb? ( dev-libs/libmaxminddb ) + nghttp2? ( net-libs/nghttp2 ) + pcap? ( net-libs/libpcap ) + portaudio? ( media-libs/portaudio ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5 + dev-qt/qtprintsupport:5 + dev-qt/qtwidgets:5 + >=media-libs/speex-1.2.0 + media-libs/speexdsp + x11-misc/xdg-utils + ) + sbc? ( media-libs/sbc ) + smi? ( net-libs/libsmi ) + snappy? ( app-arch/snappy ) + spandsp? ( media-libs/spandsp ) + 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 + !=net-libs/libssh-0.6 ) + sshdump? ( >=net-libs/libssh-0.6 ) + ciscodump? ( >=net-libs/libssh-0.6 ) libxml2? ( dev-libs/libxml2 ) lua? ( >=dev-lang/lua-5.1:* ) lz4? ( app-arch/lz4 ) + maxminddb? ( dev-libs/libmaxminddb ) nghttp2? ( net-libs/nghttp2 ) pcap? ( net-libs/libpcap ) portaudio? ( media-libs/portaudio ) @@ -64,7 +61,7 @@ CDEPEND=" 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 +# We need perl for `pod2html`. The rest of the perl stuff is to block older # and broken installs. #455122 DEPEND=" ${CDEPEND} @@ -73,11 +70,7 @@ DEPEND=" !