48 lines
1.4 KiB
Bash
48 lines
1.4 KiB
Bash
# Template file for 'libpcap'
|
|
pkgname=libpcap
|
|
version=1.10.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-ipv6 --with-libnl --with-pcap=linux
|
|
$(vopt_enable bluetooth) $(vopt_enable dbus) $(vopt_enable usb)"
|
|
hostmakedepends="pkg-config flex"
|
|
makedepends="libnl3-devel $(vopt_if bluetooth libbluetooth-devel)
|
|
$(vopt_if dbus dbus-devel) $(vopt_if usb libusb-devel)"
|
|
short_desc="System-independent interface for user-level packet capture"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.tcpdump.org/"
|
|
changelog="https://www.tcpdump.org/libpcap-changes.txt"
|
|
distfiles="https://www.tcpdump.org/release/${pkgname}-${version}.tar.gz"
|
|
checksum=2a8885c403516cf7b0933ed4b14d6caa30e02052489ebd414dc75ac52e7559e6
|
|
|
|
build_options="bluetooth dbus usb"
|
|
build_options_default="usb"
|
|
|
|
# for libnl
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libnl3"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
for f in ${DESTDIR}/usr/share/man/man3/*.3pcap; do
|
|
mv ${f} ${f%pcap}
|
|
done
|
|
}
|
|
|
|
libpcap-devel_package() {
|
|
depends="libnl3-devel libpcap>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/bin
|
|
vmove usr/share/man/man1
|
|
vmove usr/share/man/man3
|
|
vmove usr/share/man/man5
|
|
vmove usr/share/man/man7/pcap-linktype.7
|
|
vmove usr/share/man/man7/pcap-tstamp.7
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|