2010-04-12 21:35:11 +00:00
|
|
|
# Template file for 'libpcap'
|
|
|
|
pkgname=libpcap
|
2014-01-11 15:25:00 +00:00
|
|
|
version=1.5.2
|
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-03-13 20:44:37 +00:00
|
|
|
configure_args="--enable-ipv6 --with-libnl --with-pcap=linux"
|
2013-12-03 12:14:21 +00:00
|
|
|
hostmakedepends="pkg-config flex libnl3-devel"
|
2014-01-11 11:15:03 +00:00
|
|
|
makedepends="libfl-devel libnl3-devel"
|
2010-04-12 21:35:11 +00:00
|
|
|
short_desc="System-independent interface for user-level packet capture"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-06-26 07:54:37 +00:00
|
|
|
homepage="http://www.tcpdump.org/"
|
|
|
|
license="BSD"
|
|
|
|
distfiles="http://www.tcpdump.org/release/$pkgname-$version.tar.gz"
|
2014-01-11 15:25:00 +00:00
|
|
|
checksum=806d4ba23b126476d39a458ad1468f73dfe63c92f9586208f7e4e18c13e52ddd
|
2010-04-12 21:35:11 +00:00
|
|
|
|
2012-06-26 07:54:37 +00:00
|
|
|
post_install() {
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/$pkgname
|
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
2013-05-03 08:37:51 +00:00
|
|
|
# Package build options
|
2014-01-11 11:15:03 +00:00
|
|
|
build_options="bluetooth dbus usb"
|
2013-11-28 14:58:51 +00:00
|
|
|
build_options_default="usb"
|
|
|
|
|
2013-05-03 08:37:51 +00:00
|
|
|
desc_option_bluetooth="Enable support for bluetooth sniffing"
|
2014-01-11 11:15:03 +00:00
|
|
|
desc_option_dbus="Enable support for dbus"
|
2013-05-03 08:37:51 +00:00
|
|
|
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
|
|
|
|
|
2014-01-11 11:15:03 +00:00
|
|
|
if [ "$build_option_dbus" ]; then
|
|
|
|
configure_args+=" --enable-dbus"
|
|
|
|
makedepends+=" dbus-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-dbus"
|
|
|
|
fi
|
|
|
|
|
2013-05-03 08:37:51 +00:00
|
|
|
if [ "$build_option_usb" ]; then
|
|
|
|
configure_args+=" --enable-canusb"
|
|
|
|
makedepends+=" libusb-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-canusb"
|
|
|
|
fi
|
|
|
|
|
2013-04-13 08:15:49 +00:00
|
|
|
libpcap-devel_package() {
|
2013-12-03 12:10:55 +00:00
|
|
|
depends="libnl3-devel libpcap>=${version}_${revision}"
|
2013-05-03 08:37:51 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/share/man
|
|
|
|
vmove "usr/lib/*.a"
|
2013-11-28 14:58:51 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|