libpcap: update to 1.4.0; added bluetooth/usb pkg options (disabled).
This commit is contained in:
parent
7814cd00d9
commit
375d71ef43
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libpcap'
|
# Template file for 'libpcap'
|
||||||
pkgname=libpcap
|
pkgname=libpcap
|
||||||
version=1.3.0
|
version=1.4.0
|
||||||
revision=4
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-ipv6 --with-libnl --with-pcap=linux"
|
configure_args="--enable-ipv6 --with-libnl --with-pcap=linux"
|
||||||
hostmakedepends="automake pkg-config flex"
|
hostmakedepends="automake pkg-config flex"
|
||||||
|
@ -11,7 +11,7 @@ maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.tcpdump.org/"
|
homepage="http://www.tcpdump.org/"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
distfiles="http://www.tcpdump.org/release/$pkgname-$version.tar.gz"
|
distfiles="http://www.tcpdump.org/release/$pkgname-$version.tar.gz"
|
||||||
checksum=41cbd9ed68383afd9f1fda279cb78427d36879d9e34ee707e31a16a1afd872b9
|
checksum=7c6a2a4f71e8ab09804e6b4fb3aff998c5583108ac42c0e2967eee8e1dbc7406
|
||||||
long_desc="
|
long_desc="
|
||||||
This is libpcap, a system-independent interface for user-level packet
|
This is libpcap, a system-independent interface for user-level packet
|
||||||
capture. libpcap provides a portable framework for low-level network
|
capture. libpcap provides a portable framework for low-level network
|
||||||
|
@ -35,9 +35,28 @@ post_install() {
|
||||||
vinstall LICENSE 644 usr/share/licenses/$pkgname
|
vinstall LICENSE 644 usr/share/licenses/$pkgname
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
libpcap-devel_package() {
|
libpcap-devel_package() {
|
||||||
depends="libnl3-devel libpcap>=$version"
|
depends="libnl3-devel libpcap>=$version"
|
||||||
short_desc="${short_desc} -- development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/bin
|
vmove usr/bin
|
||||||
|
|
Loading…
Reference in New Issue