diff options
Diffstat (limited to 'meta-networking/recipes-support/wireshark/wireshark_3.4.4.bb')
| -rw-r--r-- | meta-networking/recipes-support/wireshark/wireshark_3.4.4.bb | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/wireshark/wireshark_3.4.4.bb b/meta-networking/recipes-support/wireshark/wireshark_3.4.4.bb new file mode 100644 index 0000000000..b75f41835b --- /dev/null +++ b/meta-networking/recipes-support/wireshark/wireshark_3.4.4.bb | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | DESCRIPTION = "wireshark - a popular network protocol analyzer" | ||
| 2 | HOMEPAGE = "http://www.wireshark.org" | ||
| 3 | SECTION = "net" | ||
| 4 | LICENSE = "GPL-2.0" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=6e271234ba1a13c6e512e76b94ac2f77" | ||
| 6 | |||
| 7 | DEPENDS = "pcre expat glib-2.0 glib-2.0-native libgcrypt libgpg-error libxml2 bison-native c-ares" | ||
| 8 | |||
| 9 | DEPENDS_append_class-target = " wireshark-native chrpath-replacement-native " | ||
| 10 | |||
| 11 | SRC_URI = "https://1.eu.dl.wireshark.org/src/all-versions/wireshark-${PV}.tar.xz" | ||
| 12 | |||
| 13 | SRC_URI += " \ | ||
| 14 | file://0001-wireshark-src-improve-reproducibility.patch \ | ||
| 15 | file://0002-flex-Remove-line-directives.patch \ | ||
| 16 | file://0003-bison-Remove-line-directives.patch \ | ||
| 17 | file://0004-lemon-Remove-line-directives.patch \ | ||
| 18 | " | ||
| 19 | |||
| 20 | UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src" | ||
| 21 | |||
| 22 | SRC_URI[sha256sum] = "729cd11e9715c600e5ad74ca472bacf8af32c20902192d5f2b271268511d4d29" | ||
| 23 | |||
| 24 | PE = "1" | ||
| 25 | |||
| 26 | inherit cmake pkgconfig python3native perlnative upstream-version-is-even mime mime-xdg | ||
| 27 | |||
| 28 | PACKAGECONFIG ?= "libpcap gnutls libnl libcap sbc" | ||
| 29 | |||
| 30 | PACKAGECONFIG_class-native = "libpcap gnutls ssl libssh" | ||
| 31 | |||
| 32 | PACKAGECONFIG[libcap] = "-DENABLE_CAP=ON,-DENABLE_CAP=OFF -DENABLE_PCAP_NG_DEFAULT=ON, libcap" | ||
| 33 | PACKAGECONFIG[libpcap] = "-DENABLE_PCAP=ON,-DENABLE_PCAP=OFF -DENABLE_PCAP_NG_DEFAULT=ON , libpcap" | ||
| 34 | PACKAGECONFIG[libsmi] = "-DENABLE_SMI=ON,-DENABLE_SMI=OFF,libsmi" | ||
| 35 | PACKAGECONFIG[libnl] = ",,libnl" | ||
| 36 | PACKAGECONFIG[portaudio] = "-DENABLE_PORTAUDIO=ON,-DENABLE_PORTAUDIO=OFF, portaudio-v19" | ||
| 37 | PACKAGECONFIG[gnutls] = "-DENABLE_GNUTLS=ON,-DENABLE_GNUTLS=OFF, gnutls" | ||
| 38 | PACKAGECONFIG[ssl] = ",,openssl" | ||
| 39 | PACKAGECONFIG[krb5] = "-DENABLE_KRB5=ON,-DENABLE_KRB5=OFF, krb5" | ||
| 40 | PACKAGECONFIG[lua] = "-DENABLE_LUA=ON,-DENABLE_LUA=OFF, lua" | ||
| 41 | PACKAGECONFIG[zlib] = "-DENABLE_ZLIB=ON,-DENABLE_ZLIB=OFF, zlib" | ||
| 42 | PACKAGECONFIG[geoip] = ",, geoip" | ||
| 43 | PACKAGECONFIG[plugins] = "-DENABLE_PLUGINS=ON,-DENABLE_PLUGINS=OFF" | ||
| 44 | PACKAGECONFIG[sbc] = "-DENABLE_SBC=ON,-DENABLE_SBC=OFF, sbc" | ||
| 45 | PACKAGECONFIG[libssh] = ",,libssh2" | ||
| 46 | PACKAGECONFIG[lz4] = "-DENABLE_LZ4=ON,-DENABLE_LZ4=OFF, lz4" | ||
| 47 | |||
| 48 | # these next two options require addional layers | ||
| 49 | PACKAGECONFIG[c-ares] = "-DENABLE_CARES=ON,-DENABLE_CARES=OFF, c-ares" | ||
| 50 | PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON -DBUILD_wireshark=ON, -DENABLE_QT5=OFF -DBUILD_wireshark=OFF, qttools-native qtmultimedia qtsvg" | ||
| 51 | |||
| 52 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)} | ||
| 53 | |||
| 54 | EXTRA_OECMAKE += "-DENABLE_NETLINK=ON \ | ||
| 55 | -DBUILD_mmdbresolve=OFF \ | ||
| 56 | -DBUILD_randpktdump=OFF \ | ||
| 57 | -DBUILD_androiddump=OFF \ | ||
| 58 | -DBUILD_dcerpcidl2wrs=OFF \ | ||
| 59 | -DM_INCLUDE_DIR=${includedir} \ | ||
| 60 | -DM_LIBRARY=${libdir} \ | ||
| 61 | " | ||
| 62 | CFLAGS_append = " -lm" | ||
| 63 | |||
| 64 | do_install_append_class-native() { | ||
| 65 | install -d ${D}${bindir} | ||
| 66 | for f in lemon | ||
| 67 | do | ||
| 68 | install -m 0755 ${B}/run/$f ${D}${bindir} | ||
| 69 | done | ||
| 70 | } | ||
| 71 | |||
| 72 | do_install_append_class-target() { | ||
| 73 | for f in `find ${D}${libdir} ${D}${bindir} -type f -executable` | ||
| 74 | do | ||
| 75 | chrpath --delete $f | ||
| 76 | done | ||
| 77 | } | ||
| 78 | |||
| 79 | PACKAGE_BEFORE_PN += "tshark" | ||
| 80 | |||
| 81 | FILES_tshark = "${bindir}/tshark ${mandir}/man1/tshark.*" | ||
| 82 | |||
| 83 | FILES_${PN} += "${datadir}*" | ||
| 84 | |||
| 85 | RDEPENDS_tshark = "wireshark" | ||
| 86 | |||
| 87 | BBCLASSEXTEND = "native" | ||
