diff options
Diffstat (limited to 'meta/packages/libpcap/libpcap_0.9.3.bb')
-rw-r--r-- | meta/packages/libpcap/libpcap_0.9.3.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/packages/libpcap/libpcap_0.9.3.bb b/meta/packages/libpcap/libpcap_0.9.3.bb new file mode 100644 index 0000000000..5d66687482 --- /dev/null +++ b/meta/packages/libpcap/libpcap_0.9.3.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | DESCRIPTION = "Network Packet Capture Library" | ||
2 | HOMEPAGE = "http://www.tcpdump.org/" | ||
3 | LICENSE = "BSD" | ||
4 | SECTION = "libs/network" | ||
5 | PR = "r1" | ||
6 | |||
7 | SRC_URI = "http://www.tcpdump.org/release/libpcap-${PV}.tar.gz \ | ||
8 | file://shared.patch;patch=1" | ||
9 | |||
10 | inherit autotools | ||
11 | |||
12 | EXTRA_OECONF = "--with-pcap=linux" | ||
13 | |||
14 | CPPFLAGS_prepend = "-I${S} " | ||
15 | CFLAGS_prepend = "-I${S} " | ||
16 | CXXFLAGS_prepend = "-I${S} " | ||
17 | |||
18 | do_configure_prepend () { | ||
19 | if [ ! -e acinclude.m4 ]; then | ||
20 | cat aclocal.m4 > acinclude.m4 | ||
21 | fi | ||
22 | } | ||
23 | |||
24 | do_stage () { | ||
25 | install -m 0644 pcap.h ${STAGING_INCDIR}/pcap.h | ||
26 | install -m 0644 pcap-namedb.h ${STAGING_INCDIR}/pcap-namedb.h | ||
27 | install -m 0644 pcap-bpf.h ${STAGING_INCDIR}/pcap-bpf.h | ||
28 | oe_libinstall -a -so libpcap ${STAGING_LIBDIR} | ||
29 | install -d ${STAGING_INCDIR}/net | ||
30 | ln -sf ${STAGING_INCDIR}/pcap-bpf.h ${STAGING_INCDIR}/net/bpf.h | ||
31 | install -m 0644 acinclude.m4 ${STAGING_DATADIR}/aclocal/libpcap.m4 | ||
32 | } | ||