mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
114 lines
3.7 KiB
Bash
114 lines
3.7 KiB
Bash
SUMMARY="A network protocol analyzer formerly known as ethereal"
|
|
DESCRIPTION="Wireshark is a network traffic analyzer, or "sniffer", for Unix \
|
|
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."
|
|
LICENSE="GNU GPL v2"
|
|
COPYRIGHT="1998-2015 Gerald Combs"
|
|
HOMEPAGE="http://www.wireshark.org"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/wireshark/wireshark/archive/wireshark-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="a5aa148eed84bd2c4227b50dada7ffa4f1c37d5db59adc53afc74d38bc4cbe07"
|
|
SOURCE_DIR="wireshark-wireshark-$portVersion"
|
|
ADDITIONAL_FILES="wireshark.rdef"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
wireshark$secondaryArchSuffix = $portVersion
|
|
cmd:wireshark$secondaryArchSuffix
|
|
cmd:capinfos$secondaryArchSuffix
|
|
cmd:captype$secondaryArchSuffix
|
|
cmd:dftest$secondaryArchSuffix
|
|
cmd:dumpcap$secondaryArchSuffix
|
|
cmd:editcap$secondaryArchSuffix
|
|
cmd:idl2wrs$secondaryArchSuffix
|
|
cmd:mergecap$secondaryArchSuffix
|
|
cmd:randpkt$secondaryArchSuffix
|
|
cmd:rawshark$secondaryArchSuffix
|
|
cmd:reordercap$secondaryArchSuffix
|
|
cmd:text2pcap$secondaryArchSuffix
|
|
cmd:tshark$secondaryArchSuffix
|
|
lib:libwireshark$secondaryArchSuffix =8.1.6 compat >= 8
|
|
lib:libwiretap$secondaryArchSuffix = 6.0.6 compat >= 6
|
|
lib:libwscodecs$secondaryArchSuffix = 1.0.0 compat >= 1
|
|
lib:libwsutil$secondaryArchSuffix = 7.0.0 compat >= 7
|
|
devel:libwireshark$secondaryArchSuffix =8.1.6 compat >= 8
|
|
devel:libwiretap$secondaryArchSuffix = 6.0.6 compat >= 6
|
|
devel:libwscodecs$secondaryArchSuffix = 1.0.0 compat >= 1
|
|
devel:libwsutil$secondaryArchSuffix = 7.0.0 compat >= 7
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgmodule_2.0$secondaryArchSuffix
|
|
lib:libgthread_2.0$secondaryArchSuffix
|
|
lib:libpcap$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Multimedia$secondaryArchSuffix
|
|
lib:libQt5PrintSupport$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libgpg_error$secondaryArchSuffix
|
|
devel:libgl$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
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
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python
|
|
cmd:strip$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
LIBS=-lnetwork CPPFLAGS="-D_BSD_SOURCE -fPIC" runConfigure ./configure \
|
|
--without-gtk3
|
|
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
|
|
|
|
addResourcesToBinaries $portDir/additional-files/wireshark.rdef \
|
|
$binDir/wireshark
|
|
}
|