Files
haikuports/net-analyzer/wireshark/wireshark-2.0.0.recipe
Michael Lotz a43c394c4d Explicitly reference all additional files.
Not referencing them caused them to be missing from the source packages.

This also moves all files that were in different dirs under the common
additional-files dir.
2015-12-20 20:05:05 +01:00

97 lines
2.9 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"
ADDITIONAL_FILES="wireshark.rdef"
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
}