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 | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 4 | LICENSE = "BSD" |
| 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 | |
| 9 | SRC_URI = " \ |
| 10 | http://www.tcpdump.org/release/${BP}.tar.gz \ |
| 11 | file://unnecessary-to-check-libpcap.patch \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 12 | file://avoid-absolute-path-when-searching-for-libdlpi.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 13 | file://add-ptest.patch \ |
| 14 | file://run-ptest \ |
| 15 | " |
| 16 | |
| 17 | SRC_URI[md5sum] = "9bbc1ee33dab61302411b02dd0515576" |
| 18 | SRC_URI[sha256sum] = "798b3536a29832ce0cbb07fafb1ce5097c95e308a6f592d14052e1ef1505fe79" |
| 19 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 20 | inherit autotools-brokensep ptest |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 22 | PACKAGECONFIG ?= "openssl" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 23 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 24 | PACKAGECONFIG[libcap-ng] = "--with-cap-ng,--without-cap-ng,libcap-ng" |
| 25 | PACKAGECONFIG[openssl] = "--with-crypto,--without-openssl --without-crypto,openssl" |
| 26 | PACKAGECONFIG[smi] = "--with-smi,--without-smi,libsmi" |
| 27 | |
| 28 | EXTRA_AUTORECONF += "-I m4" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 29 | |
| 30 | do_configure_prepend() { |
| 31 | mkdir -p ${S}/m4 |
| 32 | if [ -f aclocal.m4 ]; then |
| 33 | mv aclocal.m4 ${S}/m4 |
| 34 | fi |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | do_install_append() { |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 38 | # make install installs an unneeded extra copy of the tcpdump binary |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 39 | rm -f ${D}${sbindir}/tcpdump.${PV} |
| 40 | } |
| 41 | |
| 42 | do_compile_ptest() { |
| 43 | oe_runmake buildtest-TESTS |
| 44 | } |