Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | SUMMARY = "A sophisticated network protocol analyzer" |
| 2 | HOMEPAGE = "http://www.tcpdump.org/" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 3 | SECTION = "net" |
Brad Bishop | 2d39a06 | 2019-10-28 08:33:36 -0400 | [diff] [blame^] | 4 | LICENSE = "BSD-3-Clause" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 6 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 7 | DEPENDS = "libpcap" |
| 8 | |
Brad Bishop | 63ae878 | 2019-10-09 09:56:13 -0400 | [diff] [blame] | 9 | RDEPENDS_${PN}-ptest += " make perl \ |
| 10 | perl-module-file-basename \ |
| 11 | perl-module-posix \ |
| 12 | perl-module-carp" |
| 13 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 14 | SRC_URI = " \ |
| 15 | http://www.tcpdump.org/release/${BP}.tar.gz \ |
| 16 | file://unnecessary-to-check-libpcap.patch \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 17 | file://avoid-absolute-path-when-searching-for-libdlpi.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 18 | file://add-ptest.patch \ |
| 19 | file://run-ptest \ |
| 20 | " |
| 21 | |
Brad Bishop | 63ae878 | 2019-10-09 09:56:13 -0400 | [diff] [blame] | 22 | SRC_URI[md5sum] = "a4ead41d371f91aa0a2287f589958bae" |
| 23 | SRC_URI[sha256sum] = "2cd47cb3d460b6ff75f4a9940f594317ad456cfbf2bd2c8e5151e16559db6410" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 24 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 25 | inherit autotools-brokensep ptest |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 26 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 27 | PACKAGECONFIG ?= "openssl" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 28 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 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" |
Brad Bishop | 63ae878 | 2019-10-09 09:56:13 -0400 | [diff] [blame] | 32 | # Note: CVE-2018-10103 (SMB - partially fixed, but SMB printing disabled) |
| 33 | PACKAGECONFIG[smb] = "--enable-smb,--disable-smb" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 34 | |
| 35 | EXTRA_AUTORECONF += "-I m4" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 36 | |
| 37 | do_configure_prepend() { |
| 38 | mkdir -p ${S}/m4 |
| 39 | if [ -f aclocal.m4 ]; then |
| 40 | mv aclocal.m4 ${S}/m4 |
| 41 | fi |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | do_install_append() { |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 45 | # make install installs an unneeded extra copy of the tcpdump binary |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 46 | rm -f ${D}${sbindir}/tcpdump.${PV} |
| 47 | } |
| 48 | |
| 49 | do_compile_ptest() { |
| 50 | oe_runmake buildtest-TESTS |
| 51 | } |