2010-04-12 21:35:11 +00:00
|
|
|
# Template file for 'libpcap'
|
|
|
|
pkgname=libpcap
|
2014-09-09 20:12:05 +00:00
|
|
|
version=1.6.2
|
2014-09-23 15:06:02 +00:00
|
|
|
revision=2
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-09-09 20:12:05 +00:00
|
|
|
configure_args="--enable-ipv6 --with-libnl --with-pcap=linux
|
|
|
|
$(vopt_enable bluetooth) $(vopt_enable dbus) $(vopt_enable usb canusb)"
|
2013-12-03 12:14:21 +00:00
|
|
|
hostmakedepends="pkg-config flex libnl3-devel"
|
2014-09-09 20:12:05 +00:00
|
|
|
makedepends="libnl3-devel
|
|
|
|
$(vopt_if bluetooth libbluetooth-devel)
|
|
|
|
$(vopt_if dbus dbus-devel)
|
|
|
|
$(vopt_if usb libusb-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-09-09 20:12:05 +00:00
|
|
|
checksum=5db3e2998f1eeba2c76da55da5d474248fe19c44f49e15cac8a796a2c7e19690
|
2010-04-12 21:35:11 +00:00
|
|
|
|
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"
|
|
|
|
|
2014-09-09 20:12:05 +00:00
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
2014-09-23 15:06:02 +00:00
|
|
|
for f in ${DESTDIR}/usr/share/man/man3/*.3pcap; do
|
|
|
|
mv ${f} ${f%pcap}
|
|
|
|
done
|
2014-09-09 20:12:05 +00:00
|
|
|
}
|
2013-05-03 08:37:51 +00:00
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|