diff options
Diffstat (limited to 'meta-networking/recipes-support/tcpdump/tcpdump_4.9.3.bb')
-rw-r--r-- | meta-networking/recipes-support/tcpdump/tcpdump_4.9.3.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/tcpdump/tcpdump_4.9.3.bb b/meta-networking/recipes-support/tcpdump/tcpdump_4.9.3.bb new file mode 100644 index 000000000..3cd12aee7 --- /dev/null +++ b/meta-networking/recipes-support/tcpdump/tcpdump_4.9.3.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | SUMMARY = "A sophisticated network protocol analyzer" | ||
2 | HOMEPAGE = "http://www.tcpdump.org/" | ||
3 | SECTION = "net" | ||
4 | LICENSE = "BSD" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867" | ||
6 | |||
7 | DEPENDS = "libpcap" | ||
8 | |||
9 | RDEPENDS_${PN}-ptest += " make perl \ | ||
10 | perl-module-file-basename \ | ||
11 | perl-module-posix \ | ||
12 | perl-module-carp" | ||
13 | |||
14 | SRC_URI = " \ | ||
15 | http://www.tcpdump.org/release/${BP}.tar.gz \ | ||
16 | file://unnecessary-to-check-libpcap.patch \ | ||
17 | file://avoid-absolute-path-when-searching-for-libdlpi.patch \ | ||
18 | file://add-ptest.patch \ | ||
19 | file://run-ptest \ | ||
20 | " | ||
21 | |||
22 | SRC_URI[md5sum] = "a4ead41d371f91aa0a2287f589958bae" | ||
23 | SRC_URI[sha256sum] = "2cd47cb3d460b6ff75f4a9940f594317ad456cfbf2bd2c8e5151e16559db6410" | ||
24 | |||
25 | inherit autotools-brokensep ptest | ||
26 | |||
27 | PACKAGECONFIG ?= "openssl" | ||
28 | |||
29 | PACKAGECONFIG[libcap-ng] = "--with-cap-ng,--without-cap-ng,libcap-ng" | ||
30 | PACKAGECONFIG[openssl] = "--with-crypto,--without-openssl --without-crypto,openssl" | ||
31 | PACKAGECONFIG[smi] = "--with-smi,--without-smi,libsmi" | ||
32 | # Note: CVE-2018-10103 (SMB - partially fixed, but SMB printing disabled) | ||
33 | PACKAGECONFIG[smb] = "--enable-smb,--disable-smb" | ||
34 | |||
35 | EXTRA_AUTORECONF += "-I m4" | ||
36 | |||
37 | do_configure_prepend() { | ||
38 | mkdir -p ${S}/m4 | ||
39 | if [ -f aclocal.m4 ]; then | ||
40 | mv aclocal.m4 ${S}/m4 | ||
41 | fi | ||
42 | } | ||
43 | |||
44 | do_install_append() { | ||
45 | # make install installs an unneeded extra copy of the tcpdump binary | ||
46 | rm -f ${D}${sbindir}/tcpdump.${PV} | ||
47 | } | ||
48 | |||
49 | do_compile_ptest() { | ||
50 | oe_runmake buildtest-TESTS | ||
51 | } | ||