2017-07-31 20:06:05 +00:00
|
|
|
SUMMARY="A network protocol analyzer formerly known as ethereal"
|
2018-12-26 14:09:46 +00:00
|
|
|
DESCRIPTION="Wireshark is a network traffic analyzer, or \"sniffer\", for Unix \
|
2017-07-31 20:06:05 +00:00
|
|
|
and Unix-like operating systems. It uses Qt, a graphical user interface \
|
|
|
|
library, and libpcap, a packet capture and filtering library.
|
|
|
|
|
|
|
|
The Wireshark distribution also comes with TShark, which is a \
|
|
|
|
line-oriented sniffer (similar to Sun's snoop, or tcpdump) that uses the \
|
|
|
|
same dissection, capture-file reading and writing, and packet filtering \
|
|
|
|
code as Wireshark, and with editcap, which is a program to read capture \
|
|
|
|
files and write the packets from that capture file, possibly in a \
|
|
|
|
different capture file format, and with some packets possibly removed \
|
|
|
|
from the capture."
|
2018-05-30 06:09:53 +00:00
|
|
|
HOMEPAGE="https://www.wireshark.org"
|
2018-08-10 06:05:41 +00:00
|
|
|
COPYRIGHT="1998-2018 Gerald Combs"
|
2018-08-03 12:18:12 +00:00
|
|
|
LICENSE="GNU GPL v2"
|
2019-04-01 19:19:38 +00:00
|
|
|
REVISION="4"
|
2017-07-31 20:06:05 +00:00
|
|
|
SOURCE_URI="https://github.com/wireshark/wireshark/archive/wireshark-$portVersion.tar.gz"
|
2018-12-26 14:09:46 +00:00
|
|
|
CHECKSUM_SHA256="47e15281b767f6fd09b72d8ddb9c392c1a56ca601b1b3483d9c9b6e479c7b997"
|
2017-07-31 20:06:05 +00:00
|
|
|
SOURCE_DIR="wireshark-wireshark-$portVersion"
|
|
|
|
ADDITIONAL_FILES="wireshark.rdef"
|
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2 ?x86"
|
2018-08-10 06:05:41 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
2017-07-31 20:06:05 +00:00
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
wireshark$secondaryArchSuffix = $portVersion
|
2019-02-27 20:38:25 +00:00
|
|
|
cmd:capinfos
|
|
|
|
cmd:captype
|
|
|
|
cmd:dumpcap
|
|
|
|
cmd:editcap
|
|
|
|
cmd:idl2wrs
|
|
|
|
cmd:mergecap
|
|
|
|
cmd:randpkt
|
|
|
|
cmd:rawshark
|
|
|
|
cmd:reordercap
|
|
|
|
cmd:sharkd
|
|
|
|
cmd:text2pcap
|
|
|
|
cmd:tshark
|
2018-08-10 06:05:41 +00:00
|
|
|
devel:libwireshark$secondaryArchSuffix = 10.1.2 compat >= 10
|
|
|
|
devel:libwiretap$secondaryArchSuffix = 8.0.2 compat >= 8
|
|
|
|
devel:libwscodecs$secondaryArchSuffix = 2.1.0 compat >= 2
|
|
|
|
devel:libwsutil$secondaryArchSuffix = 9.0.0 compat >= 9
|
|
|
|
lib:libwireshark$secondaryArchSuffix = 10.1.2 compat >= 10
|
|
|
|
lib:libwiretap$secondaryArchSuffix = 8.0.2 compat >= 8
|
|
|
|
lib:libwscodecs$secondaryArchSuffix = 2.1.0 compat >= 2
|
|
|
|
lib:libwsutil$secondaryArchSuffix = 9.0.0 compat >= 9
|
2017-07-31 20:06:05 +00:00
|
|
|
"
|
|
|
|
REQUIRES="
|
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
|
|
lib:libgmodule_2.0$secondaryArchSuffix
|
2018-08-09 08:34:39 +00:00
|
|
|
lib:libgpg_error$secondaryArchSuffix
|
2017-07-31 20:06:05 +00:00
|
|
|
lib:libgthread_2.0$secondaryArchSuffix
|
|
|
|
lib:libintl$secondaryArchSuffix
|
2018-08-09 08:34:39 +00:00
|
|
|
lib:libpcap$secondaryArchSuffix
|
2019-02-27 20:38:25 +00:00
|
|
|
lib:libz$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
PROVIDES_gui="
|
|
|
|
wireshark${secondaryArchSuffix}_gui = $portVersion
|
2020-06-10 19:50:53 +00:00
|
|
|
cmd:wireshark
|
|
|
|
app:Wireshark
|
2019-02-28 10:30:31 +00:00
|
|
|
"
|
2019-02-27 20:38:25 +00:00
|
|
|
REQUIRES_gui="
|
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
wireshark${secondaryArchSuffix} == $portVersion base
|
|
|
|
lib:libgmodule_2.0$secondaryArchSuffix
|
|
|
|
lib:libpcap$secondaryArchSuffix
|
2017-07-31 20:06:05 +00:00
|
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
|
|
lib:libQt5Multimedia$secondaryArchSuffix
|
|
|
|
lib:libQt5PrintSupport$secondaryArchSuffix
|
|
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
2018-08-09 08:34:39 +00:00
|
|
|
lib:libz$secondaryArchSuffix
|
2019-02-28 10:30:31 +00:00
|
|
|
"
|
2018-08-03 12:18:12 +00:00
|
|
|
|
2017-07-31 20:06:05 +00:00
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
|
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
|
|
devel:libgl$secondaryArchSuffix
|
|
|
|
devel:libglib_2.0$secondaryArchSuffix
|
2018-08-09 08:34:39 +00:00
|
|
|
devel:libgpg_error$secondaryArchSuffix
|
2017-07-31 20:06:05 +00:00
|
|
|
devel:libpcap$secondaryArchSuffix
|
|
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
|
|
devel:libQt5Multimedia$secondaryArchSuffix
|
|
|
|
devel:libQt5PrintSupport$secondaryArchSuffix
|
|
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
|
|
cmd:aclocal
|
|
|
|
cmd:autoconf
|
|
|
|
cmd:automake
|
|
|
|
cmd:bison
|
|
|
|
cmd:flex
|
|
|
|
cmd:gcc$secondaryArchSuffix
|
|
|
|
cmd:libtoolize
|
2019-02-26 21:21:26 +00:00
|
|
|
cmd:lrelease$secondaryArchSuffix >= 5
|
2017-07-31 20:06:05 +00:00
|
|
|
cmd:make
|
|
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
|
|
cmd:python
|
|
|
|
cmd:strip$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD()
|
|
|
|
{
|
|
|
|
autoreconf -fi
|
2018-12-26 14:09:46 +00:00
|
|
|
LIBS=-lnetwork CPPFLAGS="-D_BSD_SOURCE -fPIC" \
|
2019-02-27 20:38:25 +00:00
|
|
|
runConfigure ./configure --without-gtk3 --bindir=$prefix/bin
|
2017-07-31 20:06:05 +00:00
|
|
|
make $jobArgs
|
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
# disable install-data-local rule as it breaks the build
|
|
|
|
sed -i 's/install-data-am: install-data-local/install-data-am: /g' Makefile
|
|
|
|
|
|
|
|
make install-strip
|
|
|
|
find $libDir -name '*.la' -delete
|
|
|
|
|
|
|
|
prepareInstalledDevelLibs libwireshark libwiretap libwscodecs libwsutil
|
|
|
|
fixPkgconfig
|
|
|
|
|
2019-02-27 20:38:25 +00:00
|
|
|
mkdir -p $appsDir
|
2019-04-01 19:19:38 +00:00
|
|
|
ln -s $prefix/bin/wireshark $appsDir/Wireshark
|
2018-12-26 14:09:46 +00:00
|
|
|
|
2017-07-31 20:06:05 +00:00
|
|
|
addResourcesToBinaries $portDir/additional-files/wireshark.rdef \
|
2019-02-27 20:38:25 +00:00
|
|
|
$appsDir/Wireshark
|
|
|
|
|
|
|
|
addAppDeskbarSymlink $appsDir/Wireshark
|
2018-12-26 14:09:46 +00:00
|
|
|
|
2020-06-10 19:50:53 +00:00
|
|
|
packageEntries gui $appsDir $dataDir/deskbar $prefix/bin/wireshark
|
2017-07-31 20:06:05 +00:00
|
|
|
}
|