c87443e65e
Security fixes: - wnpa-sec-2017-22 Bazaar dissector infinite loop (Bug 13599) CVE-2017-9352 - wnpa-sec-2017-23 DOF dissector read overflow (Bug 13608) CVE-2017-9348 - wnpa-sec-2017-24 DHCP dissector read overflow (Bug 13609, Bug 13628) CVE-2017-9351 - wnpa-sec-2017-25 SoulSeek dissector infinite loop (Bug 13631) CVE-2017-9346 - wnpa-sec-2017-26 DNS dissector infinite loop (Bug 13633) CVE-2017-9345 - wnpa-sec-2017-27 DICOM dissector infinite loop (Bug 13685) CVE-2017-9349 - wnpa-sec-2017-28 openSAFETY dissector memory exhaustion (Bug 13649) CVE-2017-9350 - wnpa-sec-2017-29 BT L2CAP dissector divide by zero (Bug 13701) CVE-2017-9344 - wnpa-sec-2017-30 MSNIP dissector crash (Bug 13725) CVE-2017-9343 - wnpa-sec-2017-31 ROS dissector crash (Bug 13637) CVE-2017-9347 - wnpa-sec-2017-32 RGMP dissector crash (Bug 13646) CVE-2017-9354 - wnpa-sec-2017-33 IPv6 dissector crash (Bug 13675) CVE-2017-9353 Full release notes: https://www.wireshark.org/docs/relnotes/wireshark-2.2.7.html Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
110 lines
2.9 KiB
Makefile
110 lines
2.9 KiB
Makefile
################################################################################
|
|
#
|
|
# wireshark
|
|
#
|
|
################################################################################
|
|
|
|
WIRESHARK_VERSION = 2.2.7
|
|
WIRESHARK_SOURCE = wireshark-$(WIRESHARK_VERSION).tar.bz2
|
|
WIRESHARK_SITE = https://www.wireshark.org/download/src/all-versions
|
|
WIRESHARK_LICENSE = wireshark license
|
|
WIRESHARK_LICENSE_FILES = COPYING
|
|
WIRESHARK_DEPENDENCIES = host-pkgconf libpcap libglib2
|
|
WIRESHARK_CONF_ENV = \
|
|
PCAP_CONFIG=$(STAGING_DIR)/usr/bin/pcap-config
|
|
|
|
# patch touching configure.ac
|
|
WIRESHARK_AUTORECONF = YES
|
|
|
|
# wireshark adds -I$includedir to CFLAGS, causing host/target headers mixup.
|
|
# Work around it by pointing includedir at staging
|
|
WIRESHARK_CONF_OPTS = \
|
|
--without-krb5 \
|
|
--enable-static=no \
|
|
--with-libsmi=no \
|
|
--with-lua=no \
|
|
--with-pcap=$(STAGING_DIR)/usr \
|
|
--includedir=$(STAGING_DIR)/usr/include
|
|
|
|
# wireshark GUI options
|
|
ifeq ($(BR2_PACKAGE_LIBGTK3),y)
|
|
WIRESHARK_CONF_OPTS += --with-gtk=3
|
|
WIRESHARK_DEPENDENCIES += libgtk3
|
|
else ifeq ($(BR2_PACKAGE_LIBGTK2),y)
|
|
WIRESHARK_CONF_OPTS += --with-gtk=2
|
|
WIRESHARK_DEPENDENCIES += libgtk2
|
|
else
|
|
WIRESHARK_CONF_OPTS += --with-gtk=no
|
|
endif
|
|
|
|
# Qt4 needs accessibility, we don't support it
|
|
ifeq ($(BR2_PACKAGE_WIRESHARK_QT),y)
|
|
WIRESHARK_CONF_OPTS += --with-qt=5
|
|
WIRESHARK_DEPENDENCIES += qt5base qt5tools
|
|
WIRESHARK_CONF_ENV += ac_cv_path_QTCHOOSER=""
|
|
# Seems it expects wrappers and passes a -qt=X parameter for version
|
|
WIRESHARK_MAKE_OPTS += \
|
|
MOC="$(HOST_DIR)/usr/bin/moc" \
|
|
RCC="$(HOST_DIR)/usr/bin/rcc" \
|
|
UIC="$(HOST_DIR)/usr/bin/uic"
|
|
else
|
|
WIRESHARK_CONF_OPTS += --with-qt=no
|
|
endif
|
|
|
|
# No GUI at all
|
|
ifeq ($(BR2_PACKAGE_WIRESHARK_GUI),)
|
|
WIRESHARK_CONF_OPTS += --disable-wireshark
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_C_ARES),y)
|
|
WIRESHARK_CONF_OPTS += --with-c-ares=$(STAGING_DIR)/usr
|
|
WIRESHARK_DEPENDENCIES += c-ares
|
|
else
|
|
WIRESHARK_CONF_OPTS += --without-c-ares
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GEOIP),y)
|
|
WIRESHARK_CONF_OPTS += --with-geoip=$(STAGING_DIR)/usr
|
|
WIRESHARK_DEPENDENCIES += geoip
|
|
else
|
|
WIRESHARK_CONF_OPTS += --without-geoip
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
WIRESHARK_CONF_OPTS += --with-gnutls=yes
|
|
WIRESHARK_DEPENDENCIES += gnutls
|
|
else
|
|
WIRESHARK_CONF_OPTS += --with-gnutls=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
WIRESHARK_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
|
|
WIRESHARK_CONF_OPTS += --with-gcrypt=yes
|
|
WIRESHARK_DEPENDENCIES += libgcrypt
|
|
else
|
|
WIRESHARK_CONF_OPTS += --with-gcrypt=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
|
WIRESHARK_CONF_OPTS += --with-libnl
|
|
WIRESHARK_DEPENDENCIES += libnl
|
|
else
|
|
WIRESHARK_CONF_OPTS += --without-libnl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SBC),y)
|
|
WIRESHARK_CONF_OPTS += --with-sbc=yes
|
|
WIRESHARK_DEPENDENCIES += sbc
|
|
else
|
|
WIRESHARK_CONF_OPTS += --with-sbc=no
|
|
endif
|
|
|
|
define WIRESHARK_REMOVE_DOCS
|
|
find $(TARGET_DIR)/usr/share/wireshark -name '*.txt' -print0 \
|
|
-o -name '*.html' -print0 | xargs -0 rm -f
|
|
endef
|
|
|
|
WIRESHARK_POST_INSTALL_TARGET_HOOKS += WIRESHARK_REMOVE_DOCS
|
|
|
|
$(eval $(autotools-package))
|