diff options
Diffstat (limited to 'meta-networking/recipes-support/wireshark/wireshark_2.4.9.bb')
-rw-r--r-- | meta-networking/recipes-support/wireshark/wireshark_2.4.9.bb | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/wireshark/wireshark_2.4.9.bb b/meta-networking/recipes-support/wireshark/wireshark_2.4.9.bb new file mode 100644 index 000000000..1ec60b620 --- /dev/null +++ b/meta-networking/recipes-support/wireshark/wireshark_2.4.9.bb | |||
@@ -0,0 +1,73 @@ | |||
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" | ||
8 | |||
9 | SRC_URI = "https://1.as.dl.wireshark.org/src/all-versions/${BP}.tar.xz" | ||
10 | SRC_URI += "file://libgcrypt.patch" | ||
11 | |||
12 | UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src" | ||
13 | |||
14 | SRC_URI[md5sum] = "55caea0f5f334c96977d54b0d1e52dae" | ||
15 | SRC_URI[sha256sum] = "63c4f24665269536f0e2ec321d394336fef6ba12466241a0e2433e936ac633e3" | ||
16 | |||
17 | PE = "1" | ||
18 | |||
19 | inherit autotools pkgconfig perlnative upstream-version-is-even | ||
20 | |||
21 | ARM_INSTRUCTION_SET = "arm" | ||
22 | |||
23 | PACKAGECONFIG ?= "libpcap gnutls libnl libcap sbc" | ||
24 | PACKAGECONFIG += " ${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk2 graphics", "", d)}" | ||
25 | |||
26 | PACKAGECONFIG[libcap] = "--with-libcap=${STAGING_DIR_HOST}/usr, --with-libcap=no --enable-pcap-ng-default , libcap" | ||
27 | PACKAGECONFIG[libpcap] = "--with-pcap=${STAGING_DIR_HOST}/usr --with-pcap-remote, --with-pcap=no --enable-pcap-ng-default , libpcap" | ||
28 | PACKAGECONFIG[libsmi] = "--with-libsmi=yes, --with-libsmi=no, libsmi" | ||
29 | PACKAGECONFIG[libnl] = "--with-libnl=yes, --with-libnl=no, libnl" | ||
30 | PACKAGECONFIG[portaudio] = "--with-portaudio=yes, --with-portaudio=no, portaudio-v19" | ||
31 | PACKAGECONFIG[gtk2] = "--with-gtk=2, , gtk+" | ||
32 | PACKAGECONFIG[gtk3] = "--with-gtk=3, , gtk+3" | ||
33 | PACKAGECONFIG[graphics] = "--enable-wireshark, --with-gtk=no --disable-wireshark," | ||
34 | PACKAGECONFIG[gnutls] = "--with-gnutls=yes, --with-gnutls=no, gnutls" | ||
35 | PACKAGECONFIG[ssl] = "--with-ssl=yes, --with-ssl=no, openssl" | ||
36 | PACKAGECONFIG[krb5] = "--with-krb5=yes, --with-krb5=no, krb5" | ||
37 | PACKAGECONFIG[lua] = "--with-lua=yes, --with-lua=no, lua" | ||
38 | PACKAGECONFIG[zlib] = "--with-zlib=yes, --with-zlib=no, zlib" | ||
39 | PACKAGECONFIG[geoip] = "--with-geoip=yes, --with-geoip=no, geoip" | ||
40 | PACKAGECONFIG[plugins] = "--with-plugins=yes, --with-plugins=no" | ||
41 | PACKAGECONFIG[sbc] = "--with-sbc=yes, --with-sbc=no, sbc" | ||
42 | PACKAGECONFIG[libssh] = "--with-libssh=${STAGING_DIR_HOST}/usr, --with-libssh=no, libssh2" | ||
43 | PACKAGECONFIG[lz4] = "--with-lz4=${STAGING_DIR_HOST}/usr, --with-lz4=no, lz4" | ||
44 | |||
45 | # these next two options require addional layers | ||
46 | PACKAGECONFIG[c-ares] = "--with-c-ares=yes, --with-c-ares=no, c-ares" | ||
47 | |||
48 | EXTRA_OECONF += "--with-libgcrypt-prefix=${PKG_CONFIG_DIR} --with-qt=no --enable-tshark --enable-rawshark" | ||
49 | |||
50 | LDFLAGS_append = " -lgpg-error" | ||
51 | |||
52 | # Currently wireshark does not install header files | ||
53 | do_install_append () { | ||
54 | |||
55 | install -d ${D}/${includedir}/${BPN} | ||
56 | install -d ${D}/${includedir}/${BPN}/epan | ||
57 | install -d ${D}/${includedir}/${BPN}/epan/crypt | ||
58 | install -d ${D}/${includedir}/${BPN}/epan/dfilter | ||
59 | install -d ${D}/${includedir}/${BPN}/epan/dissectors | ||
60 | install -d ${D}/${includedir}/${BPN}/epan/ftypes | ||
61 | install -d ${D}/${includedir}/${BPN}/epan/wmem | ||
62 | |||
63 | install config.h ${D}/${includedir}/${BPN} | ||
64 | install ${S}/register.h ${D}/${includedir}/${BPN} | ||
65 | install -D ${S}/epan/*.h ${D}/${includedir}/${BPN}/epan | ||
66 | install -D ${S}/epan/crypt/*.h ${D}/${includedir}/${BPN}/epan/crypt | ||
67 | install -D ${S}/epan/dfilter/*.h ${D}/${includedir}/${BPN}/epan/dfilter | ||
68 | install -D ${S}/epan/dissectors/*.h ${D}/${includedir}/${BPN}/epan/dissectors | ||
69 | install -D ${S}/epan/ftypes/*.h ${D}/${includedir}/${BPN}/epan/ftypes | ||
70 | install -D ${S}/epan/wmem/*.h ${D}/${includedir}/${BPN}/epan/wmem | ||
71 | } | ||
72 | |||
73 | FILES_${PN} += "${datadir}*" | ||