mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
95 lines
2.8 KiB
Bash
95 lines
2.8 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."
|
|
HOMEPAGE="http://www.wireshark.org"
|
|
SOURCE_URI="https://github.com/wireshark/wireshark/archive/wireshark-$portVersion.tar.gz"
|
|
SOURCE_DIR="wireshark-wireshark-$portVersion"
|
|
CHECKSUM_SHA256="5e01962638b7ecfce30d3970c909b9dcac4ef4299cdcd77a2bba0ebb85ef94e6"
|
|
LICENSE="GNU GPL v2"
|
|
COPYRIGHT="1998-2015 Gerald Combs"
|
|
REVISION="1"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
wireshark$secondaryArchSuffix = $portVersion
|
|
cmd:wireshark$secondaryArchSuffix
|
|
cmd:androiddump$secondaryArchSuffix
|
|
cmd:capinfos$secondaryArchSuffix
|
|
cmd:captype$secondaryArchSuffix
|
|
cmd:dftest$secondaryArchSuffix
|
|
cmd:editcap$secondaryArchSuffix
|
|
cmd:idl2wrs$secondaryArchSuffix
|
|
cmd:mergecap$secondaryArchSuffix
|
|
cmd:randpkt$secondaryArchSuffix
|
|
cmd:reordercap$secondaryArchSuffix
|
|
cmd:text2pcap$secondaryArchSuffix
|
|
cmd:tshark$secondaryArchSuffix
|
|
lib:libwireshark$secondaryArchSuffix
|
|
lib:libwiretap$secondaryArchSuffix
|
|
lib:libwsutil$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libglib_2.0${secondaryArchSuffix}
|
|
lib:libqt5$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
# lib:libpcap$secondaryArchSuffix
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libgpg_error$secondaryArchSuffix
|
|
devel:libgl$secondaryArchSuffix
|
|
devel:libglib_2.0${secondaryArchSuffix}
|
|
devel:libqt5$secondaryArchSuffix
|
|
devel:libpcap$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()
|
|
{
|
|
libtoolize --force --copy --install
|
|
aclocal
|
|
autoheader
|
|
automake --add-missing
|
|
autoconf
|
|
LIBS=-lnetwork runConfigure ./configure --without-gtk3 --with-pcap=no
|
|
make
|
|
}
|
|
|
|
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
|
|
|
|
addResourcesToBinaries $portDir/additional-files/wireshark.rdef $binDir/wireshark
|
|
}
|