summaryrefslogtreecommitdiffstats
path: root/meta/packages/libpcap/libpcap_0.9.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/libpcap/libpcap_0.9.3.bb')
-rw-r--r--meta/packages/libpcap/libpcap_0.9.3.bb32
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 @@
1DESCRIPTION = "Network Packet Capture Library"
2HOMEPAGE = "http://www.tcpdump.org/"
3LICENSE = "BSD"
4SECTION = "libs/network"
5PR = "r1"
6
7SRC_URI = "http://www.tcpdump.org/release/libpcap-${PV}.tar.gz \
8 file://shared.patch;patch=1"
9
10inherit autotools
11
12EXTRA_OECONF = "--with-pcap=linux"
13
14CPPFLAGS_prepend = "-I${S} "
15CFLAGS_prepend = "-I${S} "
16CXXFLAGS_prepend = "-I${S} "
17
18do_configure_prepend () {
19 if [ ! -e acinclude.m4 ]; then
20 cat aclocal.m4 > acinclude.m4
21 fi
22}
23
24do_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}