diff options
Diffstat (limited to 'meta-networking/recipes-support/tcpdump/tcpdump_4.7.4.bb')
| -rw-r--r-- | meta-networking/recipes-support/tcpdump/tcpdump_4.7.4.bb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump_4.7.4.bb b/meta-networking/recipes-support/tcpdump/tcpdump_4.7.4.bb new file mode 100644 index 0000000000..e01f5fb963 --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump_4.7.4.bb | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | SUMMARY = "A sophisticated network protocol analyzer" | ||
| 2 | HOMEPAGE = "http://www.tcpdump.org/" | ||
| 3 | LICENSE = "BSD" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867" | ||
| 5 | SECTION = "console/network" | ||
| 6 | DEPENDS = "libpcap" | ||
| 7 | |||
| 8 | SRC_URI = " \ | ||
| 9 | http://www.tcpdump.org/release/${BP}.tar.gz \ | ||
| 10 | file://unnecessary-to-check-libpcap.patch \ | ||
| 11 | file://tcpdump-configure-dlpi.patch \ | ||
| 12 | file://add-ptest.patch \ | ||
| 13 | file://run-ptest \ | ||
| 14 | " | ||
| 15 | SRC_URI[md5sum] = "58af728de36f499341918fc4b8e827c3" | ||
| 16 | SRC_URI[sha256sum] = "6be520269a89036f99c0b2126713a60965953eab921002b07608ccfc0c47d9af" | ||
| 17 | export LIBS=" -lpcap" | ||
| 18 | |||
| 19 | inherit autotools-brokensep ptest | ||
| 20 | CACHED_CONFIGUREVARS = "ac_cv_linux_vers=${ac_cv_linux_vers=2}" | ||
| 21 | |||
| 22 | PACKAGECONFIG ??= "openssl ipv6" | ||
| 23 | PACKAGECONFIG[openssl] = "--with-crypto=yes, --without-openssl --without-crypto, openssl" | ||
| 24 | PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6," | ||
| 25 | |||
| 26 | EXTRA_AUTORECONF += " -I m4" | ||
| 27 | |||
| 28 | do_configure_prepend() { | ||
| 29 | mkdir -p ${S}/m4 | ||
| 30 | if [ -f aclocal.m4 ]; then | ||
| 31 | mv aclocal.m4 ${S}/m4 | ||
| 32 | fi | ||
| 33 | # AC_CHECK_LIB(dlpi.. was looking to host /lib | ||
| 34 | sed -i 's:-L/lib::g' ./configure.in | ||
| 35 | } | ||
| 36 | do_configure_append() { | ||
| 37 | sed -i 's:-L/usr/lib::' ./Makefile | ||
| 38 | sed -i 's:-Wl,-rpath,${STAGING_LIBDIR}::' ./Makefile | ||
| 39 | sed -i 's:-I/usr/include::' ./Makefile | ||
| 40 | } | ||
| 41 | |||
| 42 | do_install_append() { | ||
| 43 | # tcpdump 4.0.0 installs a copy to /usr/sbin/tcpdump.4.0.0 | ||
| 44 | rm -f ${D}${sbindir}/tcpdump.${PV} | ||
| 45 | } | ||
| 46 | |||
| 47 | do_compile_ptest() { | ||
| 48 | oe_runmake buildtest-TESTS | ||
| 49 | } | ||
