2010-04-12 23:35:11 +02:00
|
|
|
# Template file for 'libpcap'
|
|
|
|
pkgname=libpcap
|
2013-05-03 10:37:51 +02:00
|
|
|
version=1.4.0
|
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-03-13 21:44:37 +01:00
|
|
|
configure_args="--enable-ipv6 --with-libnl --with-pcap=linux"
|
2013-03-24 10:21:58 +01:00
|
|
|
hostmakedepends="automake pkg-config flex"
|
2013-04-13 10:15:49 +02:00
|
|
|
makedepends="libnl3-devel"
|
2010-04-12 23:35:11 +02:00
|
|
|
short_desc="System-independent interface for user-level packet capture"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-06-26 09:54:37 +02:00
|
|
|
homepage="http://www.tcpdump.org/"
|
|
|
|
license="BSD"
|
|
|
|
distfiles="http://www.tcpdump.org/release/$pkgname-$version.tar.gz"
|
2013-05-03 10:37:51 +02:00
|
|
|
checksum=7c6a2a4f71e8ab09804e6b4fb3aff998c5583108ac42c0e2967eee8e1dbc7406
|
2010-04-12 23:35:11 +02:00
|
|
|
long_desc="
|
|
|
|
This is libpcap, a system-independent interface for user-level packet
|
|
|
|
capture. libpcap provides a portable framework for low-level network
|
|
|
|
monitoring. Applications include network statistics collection,
|
|
|
|
security monitoring, network debugging, etc. Since almost every
|
|
|
|
system vendor provides a different interface for packet capture, and
|
|
|
|
since we've developed several tools that require this functionality,
|
|
|
|
we've created this system-independent API to ease in porting and to
|
|
|
|
alleviate the need for several system-dependent packet capture modules
|
|
|
|
in each application."
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
makedepends+=" libfl-devel"
|
|
|
|
fi
|
|
|
|
|
2013-03-13 21:44:37 +01:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2012-06-26 09:54:37 +02:00
|
|
|
post_install() {
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/$pkgname
|
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
2013-05-03 10:37:51 +02:00
|
|
|
# Package build options
|
|
|
|
build_options="bluetooth usb"
|
|
|
|
desc_option_bluetooth="Enable support for bluetooth sniffing"
|
|
|
|
desc_option_usb="Enable support for USB sniffing"
|
|
|
|
|
|
|
|
if [ "$build_option_bluetooth" ]; then
|
|
|
|
configure_args+=" --enable-bluetooth"
|
|
|
|
makedepends+=" libbluetooth-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-bluetooth"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_usb" ]; then
|
|
|
|
configure_args+=" --enable-canusb"
|
|
|
|
makedepends+=" libusb-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-canusb"
|
|
|
|
fi
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
libpcap-devel_package() {
|
|
|
|
depends="libnl3-devel libpcap>=$version"
|
2013-05-03 10:37:51 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share/man
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libpcap_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|