libpcap: added dbus option (off by default).
This commit is contained in:
parent
7031a98db4
commit
18ae846bd3
1 changed files with 11 additions and 13 deletions
|
@ -1,37 +1,28 @@
|
|||
# Template file for 'libpcap'
|
||||
pkgname=libpcap
|
||||
version=1.5.1
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-ipv6 --with-libnl --with-pcap=linux"
|
||||
hostmakedepends="pkg-config flex libnl3-devel"
|
||||
makedepends="libfl-devel libnl3-devel dbus-devel"
|
||||
makedepends="libfl-devel libnl3-devel"
|
||||
short_desc="System-independent interface for user-level packet capture"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://www.tcpdump.org/"
|
||||
license="BSD"
|
||||
distfiles="http://www.tcpdump.org/release/$pkgname-$version.tar.gz"
|
||||
checksum=259db4fe1e9f0b6b9c43a057ec5916dec7d0a821b00d6d6c4dff7db2445fa7e4
|
||||
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."
|
||||
|
||||
post_install() {
|
||||
vinstall LICENSE 644 usr/share/licenses/$pkgname
|
||||
}
|
||||
|
||||
# Package build options
|
||||
build_options="bluetooth usb"
|
||||
build_options="bluetooth dbus usb"
|
||||
build_options_default="usb"
|
||||
|
||||
desc_option_bluetooth="Enable support for bluetooth sniffing"
|
||||
desc_option_dbus="Enable support for dbus"
|
||||
desc_option_usb="Enable support for USB sniffing"
|
||||
|
||||
if [ "$build_option_bluetooth" ]; then
|
||||
|
@ -41,6 +32,13 @@ else
|
|||
configure_args+=" --disable-bluetooth"
|
||||
fi
|
||||
|
||||
if [ "$build_option_dbus" ]; then
|
||||
configure_args+=" --enable-dbus"
|
||||
makedepends+=" dbus-devel"
|
||||
else
|
||||
configure_args+=" --disable-dbus"
|
||||
fi
|
||||
|
||||
if [ "$build_option_usb" ]; then
|
||||
configure_args+=" --enable-canusb"
|
||||
makedepends+=" libusb-devel"
|
||||
|
|
Loading…
Reference in a new issue