2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-02-17 21:18:11 +01:00
|
|
|
#
|
|
|
|
# wireshark
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-02-17 21:18:11 +01:00
|
|
|
|
2019-03-05 22:05:46 +01:00
|
|
|
WIRESHARK_VERSION = 2.6.7
|
2018-11-04 11:10:25 +01:00
|
|
|
WIRESHARK_SOURCE = wireshark-$(WIRESHARK_VERSION).tar.xz
|
2016-10-18 13:26:30 +02:00
|
|
|
WIRESHARK_SITE = https://www.wireshark.org/download/src/all-versions
|
2013-02-17 21:18:11 +01:00
|
|
|
WIRESHARK_LICENSE = wireshark license
|
|
|
|
WIRESHARK_LICENSE_FILES = COPYING
|
2018-11-04 11:10:25 +01:00
|
|
|
WIRESHARK_DEPENDENCIES = host-pkgconf libgcrypt libpcap libglib2
|
2014-12-30 08:36:23 +01:00
|
|
|
WIRESHARK_CONF_ENV = \
|
2018-11-04 11:10:25 +01:00
|
|
|
LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config \
|
2016-08-21 17:06:38 +02:00
|
|
|
PCAP_CONFIG=$(STAGING_DIR)/usr/bin/pcap-config
|
2013-02-17 21:18:11 +01:00
|
|
|
|
2014-12-30 08:36:23 +01:00
|
|
|
WIRESHARK_CONF_OPTS = \
|
2018-11-08 21:30:44 +01:00
|
|
|
--disable-guides \
|
2014-12-30 08:36:23 +01:00
|
|
|
--enable-static=no \
|
|
|
|
--with-libsmi=no \
|
2018-11-11 20:23:42 +01:00
|
|
|
--with-pcap=yes
|
2013-02-17 21:18:11 +01:00
|
|
|
|
2015-12-02 21:48:15 +01:00
|
|
|
# wireshark GUI options
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK3),y)
|
2016-09-08 12:22:34 +02:00
|
|
|
WIRESHARK_CONF_OPTS += --with-gtk=3
|
2015-12-02 21:48:15 +01:00
|
|
|
WIRESHARK_DEPENDENCIES += libgtk3
|
|
|
|
else ifeq ($(BR2_PACKAGE_LIBGTK2),y)
|
2016-09-08 12:22:34 +02:00
|
|
|
WIRESHARK_CONF_OPTS += --with-gtk=2
|
2016-10-18 20:05:39 +02:00
|
|
|
WIRESHARK_DEPENDENCIES += libgtk2
|
2015-12-02 21:48:15 +01:00
|
|
|
else
|
2016-09-08 12:22:34 +02:00
|
|
|
WIRESHARK_CONF_OPTS += --with-gtk=no
|
2015-12-02 21:48:15 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Qt4 needs accessibility, we don't support it
|
2016-10-20 18:28:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_WIRESHARK_QT),y)
|
2015-12-02 21:48:15 +01:00
|
|
|
WIRESHARK_CONF_OPTS += --with-qt=5
|
2016-10-18 13:26:32 +02:00
|
|
|
WIRESHARK_DEPENDENCIES += qt5base qt5tools
|
2016-10-18 13:26:31 +02:00
|
|
|
WIRESHARK_CONF_ENV += ac_cv_path_QTCHOOSER=""
|
2015-12-02 21:48:15 +01:00
|
|
|
# Seems it expects wrappers and passes a -qt=X parameter for version
|
|
|
|
WIRESHARK_MAKE_OPTS += \
|
2017-07-05 13:14:19 +02:00
|
|
|
MOC="$(HOST_DIR)/bin/moc" \
|
|
|
|
RCC="$(HOST_DIR)/bin/rcc" \
|
|
|
|
UIC="$(HOST_DIR)/bin/uic"
|
2015-12-02 21:48:15 +01:00
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --with-qt=no
|
|
|
|
endif
|
|
|
|
|
|
|
|
# No GUI at all
|
2016-10-20 18:28:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_WIRESHARK_GUI),)
|
2015-12-02 21:48:15 +01:00
|
|
|
WIRESHARK_CONF_OPTS += --disable-wireshark
|
|
|
|
endif
|
|
|
|
|
2018-11-04 11:10:28 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BCG729),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-bcg729=$(STAGING_DIR)/usr
|
|
|
|
WIRESHARK_DEPENDENCIES += bcg729
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --without-bcg729
|
|
|
|
endif
|
|
|
|
|
2015-12-02 21:48:17 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_C_ARES),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-c-ares=$(STAGING_DIR)/usr
|
|
|
|
WIRESHARK_DEPENDENCIES += c-ares
|
|
|
|
else
|
2016-08-21 09:31:30 +02:00
|
|
|
WIRESHARK_CONF_OPTS += --without-c-ares
|
2015-12-02 21:48:17 +01:00
|
|
|
endif
|
|
|
|
|
2015-12-02 21:48:19 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-gnutls=yes
|
|
|
|
WIRESHARK_DEPENDENCIES += gnutls
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --with-gnutls=no
|
|
|
|
endif
|
|
|
|
|
2018-11-03 15:08:10 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBKRB5),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-krb5=$(STAGING_DIR)/usr
|
|
|
|
WIRESHARK_DEPENDENCIES += libkrb5
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --without-krb5
|
|
|
|
endif
|
|
|
|
|
2018-11-04 11:10:25 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBMAXMINDDB),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-maxminddb=$(STAGING_DIR)/usr
|
|
|
|
WIRESHARK_DEPENDENCIES += libmaxminddb
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --without-maxminddb
|
|
|
|
endif
|
|
|
|
|
2015-12-02 21:48:16 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-libnl
|
|
|
|
WIRESHARK_DEPENDENCIES += libnl
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --without-libnl
|
|
|
|
endif
|
|
|
|
|
2018-10-31 23:56:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSSH),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-libssh=$(STAGING_DIR)/usr
|
|
|
|
WIRESHARK_DEPENDENCIES += libssh
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --without-libssh
|
|
|
|
endif
|
|
|
|
|
2018-11-04 11:10:26 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-libxml2
|
|
|
|
WIRESHARK_DEPENDENCIES += libxml2
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --without-libxml2
|
|
|
|
endif
|
|
|
|
|
2018-10-31 23:56:47 +01:00
|
|
|
# no support for lua53 yet
|
2018-12-02 11:25:06 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LUA_5_1),y)
|
2018-10-31 23:56:47 +01:00
|
|
|
WIRESHARK_CONF_OPTS += --with-lua
|
|
|
|
WIRESHARK_DEPENDENCIES += lua
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --without-lua
|
|
|
|
endif
|
|
|
|
|
2018-11-04 11:10:29 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LZ4),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-lz4=$(STAGING_DIR)/usr
|
|
|
|
WIRESHARK_DEPENDENCIES += lz4
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --without-lz4
|
|
|
|
endif
|
|
|
|
|
2018-11-04 11:10:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NGHTTP2),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-nghttp2=$(STAGING_DIR)/usr
|
|
|
|
WIRESHARK_DEPENDENCIES += nghttp2
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --without-nghttp2
|
|
|
|
endif
|
|
|
|
|
2015-12-02 21:48:21 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SBC),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-sbc=yes
|
|
|
|
WIRESHARK_DEPENDENCIES += sbc
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --with-sbc=no
|
|
|
|
endif
|
|
|
|
|
2018-11-04 11:10:30 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SNAPPY),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-snappy=$(STAGING_DIR)/usr
|
|
|
|
WIRESHARK_DEPENDENCIES += snappy
|
2018-11-13 23:14:24 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
WIRESHARK_CONF_ENV += LIBS=-lstdc++
|
|
|
|
endif
|
2018-11-04 11:10:30 +01:00
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --without-snappy
|
|
|
|
endif
|
|
|
|
|
2019-03-10 12:31:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SPANDSP),y)
|
|
|
|
WIRESHARK_CONF_OPTS += --with-spandsp
|
|
|
|
WIRESHARK_DEPENDENCIES += spandsp
|
|
|
|
else
|
|
|
|
WIRESHARK_CONF_OPTS += --without-spandsp
|
|
|
|
endif
|
|
|
|
|
2016-06-14 17:11:15 +02:00
|
|
|
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
|
|
|
|
|
2013-09-11 13:05:01 +02:00
|
|
|
$(eval $(autotools-package))
|