mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
85 lines
2.0 KiB
Bash
85 lines
2.0 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="https://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="1"
|
|
SOURCE_URI="http://www.tcpdump.org/release/libpcap-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="ec97d1206bdd19cb6bdd043eaa9f0037aa732262ec68e070fd7c7b5f834d5dfc"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libpcap$secondaryArchSuffix = $portVersion
|
|
lib:libpcap$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libpcap${secondaryArchSuffix}_devel = $portVersion
|
|
cmd:pcap_config
|
|
devel:libpcap$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
libpcap$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:bison
|
|
cmd:flex
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure --omit-dirs binDir ./configure --bindir=$prefix/bin
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove static library
|
|
rm -f $libDir/libpcap.a
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLib libpcap
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir \
|
|
$manDir \
|
|
$prefix/bin/pcap-config
|
|
}
|