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