91 lines
2.1 KiB
Bash
91 lines
2.1 KiB
Bash
SUMMARY="A system-independent interface for user-level packet capture"
|
|
DESCRIPTION="Libpcap provides a portable framework for low-level network \
|
|
monitoring.
|
|
Since almost every system vendor provides a different interface for packet \
|
|
capture, this system-independent API was created to ease in porting and to \
|
|
alleviate the need for several system-dependent packet capture modules in \
|
|
each application.
|
|
|
|
Applications include network statistics collection, security monitoring, \
|
|
network debugging, etc."
|
|
HOMEPAGE="http://www.tcpdump.org"
|
|
COPYRIGHT="1988-1998 The Regents of the University of California
|
|
2006 Paolo Abeni
|
|
2007 Fulko Hew, SITA INC Canada, Inc
|
|
2011-2012 Jakub Zawadzki
|
|
2007, 2008 Johannes Berg
|
|
2007 Andy Lutomirski
|
|
2007 Mike Kershaw
|
|
2008 Gábor Stefanik
|
|
2000 Torsten Landschoff
|
|
2000 Sebastian Krahmer
|
|
2009 Felix Obenhuber
|
|
2014 Michal Labedzki for Tieto Corporation"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="4"
|
|
SOURCE_URI="http://www.tcpdump.org/release/libpcap-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="673dbc69fdc3f5a86fb5759ab19899039a8e5e6c631749e48dcd9c6f0c83541e"
|
|
PATCHES="libpcap-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libpcap$secondaryArchSuffix = $portVersion
|
|
lib:libpcap$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libpcap${secondaryArchSuffix}_devel = $portVersion
|
|
cmd:pcap_config$secondaryArchSuffix
|
|
devel:libpcap$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
libpcap$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:bison
|
|
cmd:flex
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
CFLAGS="-D_BSD_SOURCE" runConfigure ./configure \
|
|
--enable-shared
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLibs libpcap
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$binDir/pcap-config
|
|
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|