Initial Commit
- initial default booting image
This commit is contained in:
52
package/wireshark/Config.in
Normal file
52
package/wireshark/Config.in
Normal file
@@ -0,0 +1,52 @@
|
||||
config BR2_PACKAGE_WIRESHARK
|
||||
bool "wireshark"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt -> libgpg-error
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_MMU # fork(), glib2
|
||||
depends on BR2_USE_WCHAR # glib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # glib2
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
select BR2_PACKAGE_C_ARES
|
||||
select BR2_PACKAGE_LIBPCAP
|
||||
select BR2_PACKAGE_LIBGCRYPT
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_PCRE2
|
||||
select BR2_PACKAGE_SPEEXDSP
|
||||
help
|
||||
Network traffic sniffer and protocol decoder.
|
||||
|
||||
https://www.wireshark.org
|
||||
|
||||
if BR2_PACKAGE_WIRESHARK
|
||||
|
||||
config BR2_PACKAGE_WIRESHARK_GUI
|
||||
bool "Qt5 GUI"
|
||||
default y
|
||||
depends on BR2_INSTALL_LIBSTDCPP # qt5
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5 # qt5
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # qt5
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # qt5
|
||||
depends on BR2_PACKAGE_HAS_UDEV # qt5 input
|
||||
select BR2_PACKAGE_QT5
|
||||
select BR2_PACKAGE_QT5BASE_FONTCONFIG # runtime
|
||||
select BR2_PACKAGE_QT5BASE_PNG # runtime
|
||||
select BR2_PACKAGE_QT5BASE_WIDGETS
|
||||
select BR2_PACKAGE_QT5MULTIMEDIA
|
||||
select BR2_PACKAGE_QT5SVG
|
||||
select BR2_PACKAGE_QT5TOOLS
|
||||
select BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS
|
||||
help
|
||||
Enable Qt5 GUI
|
||||
|
||||
comment "Qt5 GUI needs a udev /dev management and a toolchain w/ C++, NPTL, host gcc >= 5.0, gcc >= 5.0"
|
||||
depends on !BR2_PACKAGE_HAS_UDEV || !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
|
||||
!BR2_HOST_GCC_AT_LEAST_5
|
||||
|
||||
endif # BR2_PACKAGE_WIRESHARK
|
||||
|
||||
comment "wireshark needs a toolchain w/ wchar, threads, dynamic library, C++"
|
||||
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP
|
||||
7
package/wireshark/wireshark.hash
Normal file
7
package/wireshark/wireshark.hash
Normal file
@@ -0,0 +1,7 @@
|
||||
# From https://www.wireshark.org/download/src/all-versions/SIGNATURES-4.4.18.txt
|
||||
sha1 482fecbe21a876f53a26bf5beaa5b0ee0ad16e50 wireshark-4.4.18.tar.xz
|
||||
sha256 f77a7939983758383797fed0a34a491f785e541cca397a7a44e9cdd7c6f847c6 wireshark-4.4.18.tar.xz
|
||||
|
||||
# Locally calculated
|
||||
sha256 edaef632cbb643e4e7a221717a6c441a4c1a7c918e6e4d56debc3d8739b233f6 COPYING
|
||||
sha256 39887d884b6473f5897c915ae8e9497e5bc2c1f6decec2ce820d5fd716d763cc README.md
|
||||
214
package/wireshark/wireshark.mk
Normal file
214
package/wireshark/wireshark.mk
Normal file
@@ -0,0 +1,214 @@
|
||||
################################################################################
|
||||
#
|
||||
# wireshark
|
||||
#
|
||||
################################################################################
|
||||
|
||||
WIRESHARK_VERSION = 4.4.18
|
||||
WIRESHARK_SOURCE = wireshark-$(WIRESHARK_VERSION).tar.xz
|
||||
WIRESHARK_SITE = https://www.wireshark.org/download/src/all-versions
|
||||
WIRESHARK_LICENSE = wireshark license
|
||||
WIRESHARK_LICENSE_FILES = COPYING README.md
|
||||
WIRESHARK_CPE_ID_VENDOR = wireshark
|
||||
WIRESHARK_SELINUX_MODULES = wireshark
|
||||
WIRESHARK_DEPENDENCIES = \
|
||||
c-ares \
|
||||
host-pkgconf \
|
||||
host-python3 \
|
||||
libgcrypt \
|
||||
libglib2 \
|
||||
libpcap \
|
||||
pcre2 \
|
||||
speexdsp
|
||||
|
||||
WIRESHARK_CONF_OPTS = \
|
||||
-DENABLE_ILBC=OFF \
|
||||
-DENABLE_PCAP=ON \
|
||||
-DENABLE_SMI=OFF \
|
||||
-DENABLE_WERROR=OFF \
|
||||
-DHAVE_C99_VSNPRINTF=ON \
|
||||
-DLEMON_C_COMPILER=$(HOSTCC_NOCCACHE)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
WIRESHARK_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_ENABLE_LTO),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LTO=ON
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LTO=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WIRESHARK_GUI),y)
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_wireshark=ON -DUSE_qt6=OFF
|
||||
WIRESHARK_DEPENDENCIES += qt5base qt5multimedia qt5svg qt5tools
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_wireshark=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BCG729),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_BCG729=ON
|
||||
WIRESHARK_DEPENDENCIES += bcg729
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_BCG729=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BROTLI),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_BROTLI=ON
|
||||
WIRESHARK_DEPENDENCIES += brotli
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_BROTLI=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_GNUTLS=ON
|
||||
WIRESHARK_DEPENDENCIES += gnutls
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_GNUTLS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_CAP=ON
|
||||
WIRESHARK_DEPENDENCIES += libcap
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_CAP=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBKRB5),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_KERBEROS=ON
|
||||
WIRESHARK_DEPENDENCIES += libkrb5
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_KERBEROS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBMAXMINDDB),y)
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_mmdbresolve=ON
|
||||
WIRESHARK_DEPENDENCIES += libmaxminddb
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_mmdbresolve=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_NETLINK=ON
|
||||
WIRESHARK_DEPENDENCIES += libnl
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_NETLINK=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSSH),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LIBSSH=ON
|
||||
WIRESHARK_DEPENDENCIES += libssh
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LIBSSH=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LIBXML2=ON
|
||||
WIRESHARK_DEPENDENCIES += libxml2
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LIBXML2=OFF
|
||||
endif
|
||||
|
||||
# no support for lua53 yet
|
||||
ifeq ($(BR2_PACKAGE_LUA_5_1),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LUA=ON
|
||||
WIRESHARK_DEPENDENCIES += lua
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LUA=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LZ4),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LZ4=ON
|
||||
WIRESHARK_DEPENDENCIES += lz4
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_LZ4=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MINIZIP_ZLIB),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_MINIZIP=ON
|
||||
WIRESHARK_DEPENDENCIES += minizip-zlib
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_MINIZIP=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NGHTTP2),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_NGHTTP2=ON
|
||||
WIRESHARK_DEPENDENCIES += nghttp2
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_NGHTTP2=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPUS),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_OPUS=ON
|
||||
WIRESHARK_DEPENDENCIES += opus
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_OPUS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SBC),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SBC=ON
|
||||
WIRESHARK_DEPENDENCIES += sbc
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SBC=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SNAPPY),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SNAPPY=ON
|
||||
WIRESHARK_DEPENDENCIES += snappy
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SNAPPY=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SPANDSP),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SPANDSP=ON
|
||||
WIRESHARK_DEPENDENCIES += spandsp
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_SPANDSP=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_sdjournal=ON
|
||||
WIRESHARK_DEPENDENCIES += systemd
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DBUILD_sdjournal=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_ZLIB=ON
|
||||
WIRESHARK_DEPENDENCIES += zlib
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_ZLIB=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_ZSTD=ON
|
||||
WIRESHARK_DEPENDENCIES += zstd
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += -DENABLE_ZSTD=OFF
|
||||
endif
|
||||
|
||||
# Disable plugins as some of them (like l16mono) can't be built
|
||||
# statically. ENABLE_STATIC=ON actually means "disable shared library"
|
||||
# and ENABLE_STATIC=OFF means "enable shared library". So for the
|
||||
# BR2_SHARED_STATIC_LIBS=y case, we want ENABLE_STATIC=OFF even if
|
||||
# that sounds counter-intuitive.
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
WIRESHARK_CONF_OPTS += \
|
||||
-DENABLE_PLUGINS=OFF \
|
||||
-DENABLE_STATIC=ON \
|
||||
-DUSE_STATIC=ON
|
||||
else
|
||||
WIRESHARK_CONF_OPTS += \
|
||||
-DENABLE_PLUGINS=ON \
|
||||
-DENABLE_STATIC=OFF \
|
||||
-DUSE_STATIC=OFF
|
||||
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 $(cmake-package))
|
||||
Reference in New Issue
Block a user