void-packages/srcpkgs/libpcap/template

57 lines
1.3 KiB
Plaintext
Raw Normal View History

# Template file for 'libpcap'
pkgname=libpcap
2014-07-31 08:12:47 +02:00
version=1.6.1
2014-01-11 16:25:00 +01:00
revision=1
build_style=gnu-configure
configure_args="--enable-ipv6 --with-libnl --with-pcap=linux"
2013-12-03 13:14:21 +01:00
hostmakedepends="pkg-config flex libnl3-devel"
2014-06-23 11:03:36 +02:00
makedepends="libnl3-devel"
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"
2014-07-31 08:12:47 +02:00
checksum=116cbb3ac9e96d5dd7b39638a2f894a67fa3dcf06d794e6dae2b9a942ad13476
2012-06-26 09:54:37 +02:00
post_install() {
2014-07-31 08:12:47 +02:00
vlicense LICENSE
2012-06-26 09:54:37 +02:00
}
# Package build options
build_options="bluetooth dbus usb"
build_options_default="usb"
if [ "$build_option_bluetooth" ]; then
configure_args+=" --enable-bluetooth"
makedepends+=" libbluetooth-devel"
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"
else
configure_args+=" --disable-canusb"
fi
libpcap-devel_package() {
2013-12-03 13:10:55 +01:00
depends="libnl3-devel libpcap>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/bin
vmove usr/share/man
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}