diff options
Diffstat (limited to 'meta-networking/recipes-support/wireshark/wireshark_2.6.6.bb')
-rw-r--r-- | meta-networking/recipes-support/wireshark/wireshark_2.6.6.bb | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/wireshark/wireshark_2.6.6.bb b/meta-networking/recipes-support/wireshark/wireshark_2.6.6.bb new file mode 100644 index 000000000..4699f6798 --- /dev/null +++ b/meta-networking/recipes-support/wireshark/wireshark_2.6.6.bb | |||
@@ -0,0 +1,94 @@ | |||
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.as.dl.wireshark.org/src/all-versions/${BP}.tar.xz \ | ||
12 | file://0001-Add-libm-to-link-for-fmod-API.patch \ | ||
13 | " | ||
14 | |||
15 | UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src" | ||
16 | |||
17 | SRC_URI[md5sum] = "b30ba5b9b48ed2ff91c0ce357d33b46b" | ||
18 | SRC_URI[sha256sum] = "487933ea075bdbb25d8df06017d9c4f49fc20eb7f6ec80af086718ed5550e863" | ||
19 | |||
20 | PE = "1" | ||
21 | |||
22 | inherit cmake pkgconfig pythonnative perlnative upstream-version-is-even | ||
23 | |||
24 | ARM_INSTRUCTION_SET = "arm" | ||
25 | |||
26 | # Options: gtk+, gtk+3 and qt5 | ||
27 | GTK = "gtk+3" | ||
28 | |||
29 | PACKAGECONFIG ?= "libpcap gnutls libnl libcap sbc" | ||
30 | PACKAGECONFIG_append_class-target = " ${@bb.utils.contains("DISTRO_FEATURES", "x11", " ${GTK}", "", d)}" | ||
31 | |||
32 | PACKAGECONFIG_class-native = "libpcap gnutls ssl libssh" | ||
33 | |||
34 | PACKAGECONFIG[libcap] = "-DENABLE_CAP=ON,-DENABLE_CAP=OFF -DENABLE_PCAP_NG_DEFAULT=ON, libcap" | ||
35 | PACKAGECONFIG[libpcap] = "-DENABLE_PCAP=ON,-DENABLE_PCAP=OFF -DENABLE_PCAP_NG_DEFAULT=ON , libpcap" | ||
36 | PACKAGECONFIG[libsmi] = "-DENABLE_SMI=ON,-DENABLE_SMI=OFF,libsmi" | ||
37 | PACKAGECONFIG[libnl] = ",,libnl" | ||
38 | PACKAGECONFIG[portaudio] = "-DENABLE_PORTAUDIO=ON,-DENABLE_PORTAUDIO=OFF, portaudio-v19" | ||
39 | PACKAGECONFIG[gtk+] = "-DENABLE_GTK=ON -DBUILD_wireshark_gtk=ON, -DENABLE_GTK=OFF, gtk+" | ||
40 | PACKAGECONFIG[gtk+3] = "-DENABLE_GTK3=ON -DBUILD_wireshark_gtk=ON, -DENABLE_GTK3=OFF, gtk+3" | ||
41 | PACKAGECONFIG[gnutls] = "-DENABLE_GNUTLS=ON,-DENABLE_GNUTLS=OFF, gnutls" | ||
42 | PACKAGECONFIG[ssl] = ",,openssl" | ||
43 | PACKAGECONFIG[krb5] = "-DENABLE_KRB5=ON,-DENABLE_KRB5=OFF, krb5" | ||
44 | PACKAGECONFIG[lua] = "-DENABLE_LUA=ON,-DENABLE_LUA=OFF, lua" | ||
45 | PACKAGECONFIG[zlib] = "-DENABLE_ZLIB=ON,-DENABLE_ZLIB=OFF, zlib" | ||
46 | PACKAGECONFIG[geoip] = ",, geoip" | ||
47 | PACKAGECONFIG[plugins] = "-DENABLE_PLUGINS=ON,-DENABLE_PLUGINS=OFF" | ||
48 | PACKAGECONFIG[sbc] = "-DENABLE_SBC=ON,-DENABLE_SBC=OFF, sbc" | ||
49 | PACKAGECONFIG[libssh] = ",,libssh2" | ||
50 | PACKAGECONFIG[lz4] = "-DENABLE_LZ4=ON,-DENABLE_LZ4=OFF, lz4" | ||
51 | |||
52 | # these next two options require addional layers | ||
53 | PACKAGECONFIG[c-ares] = "-DENABLE_CARES=ON,-DENABLE_CARES=OFF, c-ares" | ||
54 | PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON -DBUILD_wireshark=ON, -DENABLE_QT5=OFF -DBUILD_wireshark=OFF, qtbase" | ||
55 | |||
56 | EXTRA_OECMAKE += "-DENABLE_NETLINK=ON \ | ||
57 | -DBUILD_mmdbresolve=OFF \ | ||
58 | -DBUILD_randpktdump=OFF \ | ||
59 | -DBUILD_androiddump=OFF \ | ||
60 | -DBUILD_dcerpcidl2wrs=OFF \ | ||
61 | -DM_INCLUDE_DIR=${includedir} \ | ||
62 | -DM_LIBRARY=${libdir} \ | ||
63 | " | ||
64 | CFLAGS_append = " -lm" | ||
65 | |||
66 | do_install_append_class-native() { | ||
67 | install -d ${D}${bindir} | ||
68 | for f in lemon | ||
69 | do | ||
70 | install -m 0755 ${B}/run/$f ${D}${bindir} | ||
71 | done | ||
72 | } | ||
73 | |||
74 | do_install_append_class-target() { | ||
75 | for f in `find ${D}${libdir} ${D}${bindir} -type f -executable` | ||
76 | do | ||
77 | chrpath --delete $f | ||
78 | done | ||
79 | } | ||
80 | |||
81 | PACKAGE_BEFORE_PN += "tshark" | ||
82 | PACKAGE_BEFORE_PN += "${PN}-gtk" | ||
83 | |||
84 | FILES_tshark = "${bindir}/tshark ${mandir}/man1/tshark.*" | ||
85 | FILES_${PN}-gtk = "${bindir}/wireshark-gtk ${datadir}/icons ${datadir}/appdata \ | ||
86 | ${datadir}/applications ${datadir}/wireshark ${datadir}/mime \ | ||
87 | ${mandir}/man1/wireshark.* " | ||
88 | |||
89 | FILES_${PN} += "${datadir}*" | ||
90 | |||
91 | RDEPENDS_tshark = "wireshark" | ||
92 | RDEPENDS_${PN}-gtk = "${@bb.utils.contains("DISTRO_FEATURES", "x11", "${GTK}", "", d)} wireshark" | ||
93 | |||
94 | BBCLASSEXTEND = "native" | ||