wok-next view libpcap/receipt @ rev 21087
Updates...
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
Revert names: libsdl -> sdl, libsmpeg -> smpeg, libtdb -> tdb
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 28 05:11:49 2018 +0200 (2018-12-28) |
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 }