wok-next view libpcap/receipt @ rev 21627

updated enet (1.2.1 -> 1.3.15)
author Hans-G?nter Theisgen
date Thu Jun 25 16:07:08 2020 +0100 (2020-06-25)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libpcap"
4 VERSION="1.9.0"
5 CATEGORY="libdevel"
6 SHORT_DESC="Functions for user-level packet capture, used in low-level network \
7 monitoring"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="http://www.tcpdump.org/"
11 LFS="http://www.linuxfromscratch.org/blfs/view/svn/basicnet/libpcap.html"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="http://www.tcpdump.org/release/$TARBALL"
16 BUILD_DEPENDS="flex bison libnl-dev bluez-dev"
17 SPLIT="$PACKAGE-dev"
19 DEPENDS_std="libnl"
20 DEPENDS_dev="libnl-dev"
22 compile_rules() {
23 CFLAGS="$CFLAGS -I$src/include $(pkg-config libnl-genl-3.0 --cflags)" \
24 ./configure \
25 --enable-ipv6 \
26 --enable-bluetooth \
27 --with-libnl \
28 $CONFIGURE_ARGS &&
29 make || return 1
31 # disable static
32 sed -i '/INSTALL_DATA.*libpcap.a\|RANLIB.*libpcap.a/ s/^/#/' Makefile
34 make install || return 1
36 # backwards compatibility, programs often look for net/bpf.h
37 mkdir -p $install/usr/include/net
38 ln -s ../pcap-bpf.h $install/usr/include/net/bpf.h
39 }