diff options
Diffstat (limited to 'meta-networking/recipes-support/tcpdump/tcpdump_4.9.2.bb')
-rw-r--r-- | meta-networking/recipes-support/tcpdump/tcpdump_4.9.2.bb | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump_4.9.2.bb b/meta-networking/recipes-support/tcpdump/tcpdump_4.9.2.bb index d38540e34d..038c1617fc 100644 --- a/meta-networking/recipes-support/tcpdump/tcpdump_4.9.2.bb +++ b/meta-networking/recipes-support/tcpdump/tcpdump_4.9.2.bb | |||
@@ -1,13 +1,15 @@ | |||
1 | SUMMARY = "A sophisticated network protocol analyzer" | 1 | SUMMARY = "A sophisticated network protocol analyzer" |
2 | HOMEPAGE = "http://www.tcpdump.org/" | 2 | HOMEPAGE = "http://www.tcpdump.org/" |
3 | SECTION = "net" | ||
3 | LICENSE = "BSD" | 4 | LICENSE = "BSD" |
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867" |
5 | SECTION = "net" | 6 | |
6 | DEPENDS = "libpcap" | 7 | DEPENDS = "libpcap" |
7 | 8 | ||
8 | SRC_URI = " \ | 9 | SRC_URI = " \ |
9 | http://www.tcpdump.org/release/${BP}.tar.gz \ | 10 | http://www.tcpdump.org/release/${BP}.tar.gz \ |
10 | file://unnecessary-to-check-libpcap.patch \ | 11 | file://unnecessary-to-check-libpcap.patch \ |
12 | file://avoid-absolute-path-when-searching-for-libdlpi.patch \ | ||
11 | file://add-ptest.patch \ | 13 | file://add-ptest.patch \ |
12 | file://run-ptest \ | 14 | file://run-ptest \ |
13 | " | 15 | " |
@@ -15,34 +17,25 @@ SRC_URI = " \ | |||
15 | SRC_URI[md5sum] = "9bbc1ee33dab61302411b02dd0515576" | 17 | SRC_URI[md5sum] = "9bbc1ee33dab61302411b02dd0515576" |
16 | SRC_URI[sha256sum] = "798b3536a29832ce0cbb07fafb1ce5097c95e308a6f592d14052e1ef1505fe79" | 18 | SRC_URI[sha256sum] = "798b3536a29832ce0cbb07fafb1ce5097c95e308a6f592d14052e1ef1505fe79" |
17 | 19 | ||
18 | export LIBS=" -lpcap" | ||
19 | |||
20 | inherit autotools-brokensep ptest | 20 | inherit autotools-brokensep ptest |
21 | CACHED_CONFIGUREVARS = "ac_cv_linux_vers=${ac_cv_linux_vers=2}" | ||
22 | 21 | ||
23 | PACKAGECONFIG ??= "openssl" | 22 | PACKAGECONFIG ?= "openssl" |
24 | PACKAGECONFIG[openssl] = "--with-crypto=yes, --without-openssl --without-crypto, openssl" | 23 | |
25 | PACKAGECONFIG[smi] = "--with-smi, --without-smi,libsmi" | 24 | PACKAGECONFIG[libcap-ng] = "--with-cap-ng,--without-cap-ng,libcap-ng" |
26 | PACKAGECONFIG[libcap-ng] = "--with-cap-ng=yes,--with-cap-ng=no,libcap-ng" | 25 | PACKAGECONFIG[openssl] = "--with-crypto,--without-openssl --without-crypto,openssl" |
26 | PACKAGECONFIG[smi] = "--with-smi,--without-smi,libsmi" | ||
27 | 27 | ||
28 | EXTRA_AUTORECONF += " -I m4" | 28 | EXTRA_AUTORECONF += "-I m4" |
29 | 29 | ||
30 | do_configure_prepend() { | 30 | do_configure_prepend() { |
31 | mkdir -p ${S}/m4 | 31 | mkdir -p ${S}/m4 |
32 | if [ -f aclocal.m4 ]; then | 32 | if [ -f aclocal.m4 ]; then |
33 | mv aclocal.m4 ${S}/m4 | 33 | mv aclocal.m4 ${S}/m4 |
34 | fi | 34 | fi |
35 | # AC_CHECK_LIB(dlpi.. was looking to host /lib | ||
36 | sed -i 's:-L/lib::g' ./configure.in | ||
37 | } | ||
38 | do_configure_append() { | ||
39 | sed -i 's:-L/usr/lib::' ./Makefile | ||
40 | sed -i 's:-Wl,-rpath,${STAGING_LIBDIR}::' ./Makefile | ||
41 | sed -i 's:-I/usr/include::' ./Makefile | ||
42 | } | 35 | } |
43 | 36 | ||
44 | do_install_append() { | 37 | do_install_append() { |
45 | # tcpdump 4.0.0 installs a copy to /usr/sbin/tcpdump.4.0.0 | 38 | # make install installs an unneeded extra copy of the tcpdump binary |
46 | rm -f ${D}${sbindir}/tcpdump.${PV} | 39 | rm -f ${D}${sbindir}/tcpdump.${PV} |
47 | } | 40 | } |
48 | 41 | ||