diff options
| author | Wang Mingyu <wangmy@cn.fujitsu.com> | 2020-01-07 05:23:10 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-01-07 17:54:00 -0800 |
| commit | 39b16f6ab979ef117f7c391127d41c45bfb8e959 (patch) | |
| tree | 8ddb8e55a3a645d53bee161439e1d777580cc85e /meta-networking/recipes-support/wireshark/wireshark_3.2.0.bb | |
| parent | 496f8ccbc5580fe44a55a08e7bbae844397405a1 (diff) | |
| download | meta-openembedded-39b16f6ab979ef117f7c391127d41c45bfb8e959.tar.gz | |
wireshark: upgrade 3.0.7 -> 3.2.0
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/wireshark/wireshark_3.2.0.bb')
| -rw-r--r-- | meta-networking/recipes-support/wireshark/wireshark_3.2.0.bb | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/wireshark/wireshark_3.2.0.bb b/meta-networking/recipes-support/wireshark/wireshark_3.2.0.bb new file mode 100644 index 0000000000..412d6d7d6c --- /dev/null +++ b/meta-networking/recipes-support/wireshark/wireshark_3.2.0.bb | |||
| @@ -0,0 +1,81 @@ | |||
| 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" | ||
| 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 | UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src" | ||
| 14 | |||
| 15 | SRC_URI[md5sum] = "259915adbbaded15de075afe7b4b03b6" | ||
| 16 | SRC_URI[sha256sum] = "4cfd33a19a454ff4002243e9d04d6afd64280a109a21ae652a192f2be2b1b66c" | ||
| 17 | |||
| 18 | PE = "1" | ||
| 19 | |||
| 20 | inherit cmake pkgconfig python3native perlnative upstream-version-is-even | ||
| 21 | |||
| 22 | PACKAGECONFIG ?= "libpcap gnutls libnl libcap sbc ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)}" | ||
| 23 | |||
| 24 | PACKAGECONFIG_class-native = "libpcap gnutls ssl libssh" | ||
| 25 | |||
| 26 | PACKAGECONFIG[libcap] = "-DENABLE_CAP=ON,-DENABLE_CAP=OFF -DENABLE_PCAP_NG_DEFAULT=ON, libcap" | ||
| 27 | PACKAGECONFIG[libpcap] = "-DENABLE_PCAP=ON,-DENABLE_PCAP=OFF -DENABLE_PCAP_NG_DEFAULT=ON , libpcap" | ||
| 28 | PACKAGECONFIG[libsmi] = "-DENABLE_SMI=ON,-DENABLE_SMI=OFF,libsmi" | ||
| 29 | PACKAGECONFIG[libnl] = ",,libnl" | ||
| 30 | PACKAGECONFIG[portaudio] = "-DENABLE_PORTAUDIO=ON,-DENABLE_PORTAUDIO=OFF, portaudio-v19" | ||
| 31 | PACKAGECONFIG[gnutls] = "-DENABLE_GNUTLS=ON,-DENABLE_GNUTLS=OFF, gnutls" | ||
| 32 | PACKAGECONFIG[ssl] = ",,openssl" | ||
| 33 | PACKAGECONFIG[krb5] = "-DENABLE_KRB5=ON,-DENABLE_KRB5=OFF, krb5" | ||
| 34 | PACKAGECONFIG[lua] = "-DENABLE_LUA=ON,-DENABLE_LUA=OFF, lua" | ||
| 35 | PACKAGECONFIG[zlib] = "-DENABLE_ZLIB=ON,-DENABLE_ZLIB=OFF, zlib" | ||
| 36 | PACKAGECONFIG[geoip] = ",, geoip" | ||
| 37 | PACKAGECONFIG[plugins] = "-DENABLE_PLUGINS=ON,-DENABLE_PLUGINS=OFF" | ||
| 38 | PACKAGECONFIG[sbc] = "-DENABLE_SBC=ON,-DENABLE_SBC=OFF, sbc" | ||
| 39 | PACKAGECONFIG[libssh] = ",,libssh2" | ||
| 40 | PACKAGECONFIG[lz4] = "-DENABLE_LZ4=ON,-DENABLE_LZ4=OFF, lz4" | ||
| 41 | |||
| 42 | # these next two options require addional layers | ||
| 43 | PACKAGECONFIG[c-ares] = "-DENABLE_CARES=ON,-DENABLE_CARES=OFF, c-ares" | ||
| 44 | PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON -DBUILD_wireshark=ON, -DENABLE_QT5=OFF -DBUILD_wireshark=OFF, qttools-native qtmultimedia qtsvg" | ||
| 45 | |||
| 46 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)} | ||
| 47 | |||
| 48 | EXTRA_OECMAKE += "-DENABLE_NETLINK=ON \ | ||
| 49 | -DBUILD_mmdbresolve=OFF \ | ||
| 50 | -DBUILD_randpktdump=OFF \ | ||
| 51 | -DBUILD_androiddump=OFF \ | ||
| 52 | -DBUILD_dcerpcidl2wrs=OFF \ | ||
| 53 | -DM_INCLUDE_DIR=${includedir} \ | ||
| 54 | -DM_LIBRARY=${libdir} \ | ||
| 55 | " | ||
| 56 | CFLAGS_append = " -lm" | ||
| 57 | |||
| 58 | do_install_append_class-native() { | ||
| 59 | install -d ${D}${bindir} | ||
| 60 | for f in lemon | ||
| 61 | do | ||
| 62 | install -m 0755 ${B}/run/$f ${D}${bindir} | ||
| 63 | done | ||
| 64 | } | ||
| 65 | |||
| 66 | do_install_append_class-target() { | ||
| 67 | for f in `find ${D}${libdir} ${D}${bindir} -type f -executable` | ||
| 68 | do | ||
| 69 | chrpath --delete $f | ||
| 70 | done | ||
| 71 | } | ||
| 72 | |||
| 73 | PACKAGE_BEFORE_PN += "tshark" | ||
| 74 | |||
| 75 | FILES_tshark = "${bindir}/tshark ${mandir}/man1/tshark.*" | ||
| 76 | |||
| 77 | FILES_${PN} += "${datadir}*" | ||
| 78 | |||
| 79 | RDEPENDS_tshark = "wireshark" | ||
| 80 | |||
| 81 | BBCLASSEXTEND = "native" | ||
