Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 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 | |
Brad Bishop | 2eeb525 | 2018-09-10 18:40:16 +0000 | [diff] [blame] | 9 | SRC_URI = "https://1.as.dl.wireshark.org/src/all-versions/${BP}.tar.xz" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 10 | SRC_URI += "file://libgcrypt.patch" |
| 11 | |
| 12 | UPSTREAM_CHECK_URI = "https://1.as.dl.wireshark.org/src" |
| 13 | |
Armin Kuster | 066be20 | 2018-07-08 14:58:53 -0700 | [diff] [blame] | 14 | SRC_URI[md5sum] = "25f93aa6a2b3fdd9d1f01a49f84d224f" |
| 15 | SRC_URI[sha256sum] = "db8ed7828c157e4ffb91fb8c41fa5a2f37fd44259175951a5c37848bf641f5e8" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 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}*" |