Commit Graph

1536 Commits

Author SHA1 Message Date
Gerald Combs ecbfda08c4 macOS: Update our extra package versions.
Track our extra package versions using CMake variables and bump each
version.
2023-02-09 17:52:55 +00:00
Gerald Combs 3e07c0dc01 macOS: Forget our ChmodBPF package when uninstalling
Add `pkgutil --forget org.wireshark.ChmodBPF.pkg` to the "Uninstall
ChmodBPF" postinstall script. The `pkgutil` man page says

    --forget package-id
        Discard all receipt data about package-id, but do not touch the
        installed files.  DO NOT use this command from an installer package
        script to fix broken package design.

but Homebrew's Wireshark cask does this, and it should help to work
around issue #18734.

Add `pkgutil --forget org.wireshark.path_helper.pkg` to the "Remove
Wireshark from the system path" postinstall script.
2023-02-07 21:24:34 +00:00
Gerald Combs e1db561aa2 macOS: Fixup our signature identifiers
Pass a prefix to `codesign` so that our signature identifier is
"org.wireshark.foo" instead of "foo" for our command line utilities,
libraries, and ChmodBPF.
2023-02-07 01:43:13 +00:00
João Valverde 80a35f632e GitHub: Build MSYS2 commit SHA
The PKGBUILD always builds the tip of the master branch. Try to
allow selecting a commit using $PKG_COMMIT.
2023-01-29 22:07:43 +00:00
Gerald Combs 75742c81b6 macOS: Copy our top-level .pkgs instead of symlinking them
Make copies of our top-level packages instead of symlinking them. Blind
attempt at fixing #18830.

Switch to UDZO for our application disk images as recommended in
https://developer.apple.com/forums/thread/128166

[skip ci]
2023-01-29 18:54:50 +00:00
João Valverde 60f3e33849 MSYS2: Remove packages that were upstreamed
Remove dependency packages that are now upstream.

Update PKGBUILD dependencies and README.
2023-01-28 15:39:52 +00:00
Tomasz Moń e7d5c49fe1
epan: Use hash table for dependent frames
Dependent frames list order does not matter and thus significantly
faster data structure can be used. Replace the list with hash table to
avoid excessive CPU usage when opening files containing reassembled
packets consisting of large number of fragments.
2023-01-28 15:17:42 +01:00
John Thacker dda2ead9c0 rpm: Update spec for latest dependencies
SpeexDSP is now required.
Update the required cmake and glib versions.
Our CMake build process now expects a C++ compiler to always be present,
so require it even if not building the GUI.

Only default to Qt 6 on distributions where we know we have it,
otherwise default to Qt 5 for now.

Update the required RPM version to 4.13 (which all distributions that
can currently build have) to ensure we have Boolean dependencies.
Use Boolean dependencies instead of checking the distribution, hopefully
to improve building on various other RPM-based distributions.

Redefine the cmake_install macro on SUSE to what is used on RH/Fedora.
The default SUSE macro calls the builder (make or ninja) insted of
cmake --install, which makes it difficult to pass options.

Remove tests and workarounds for RHEL 7, and SUSE < 15.2, since those
distributions are too old to build anyway.
Remove a workaround for an old broken librotli-devel package in
SUSE that's been long since fixed.
2023-01-21 23:49:35 -05:00
João Valverde ad8118b14a RPM: Try to fix build on openSUSE
SUSE defines %cmake_install as something other than cmake install.
2023-01-21 14:36:51 +00:00
João Valverde 630bb1ccee Debian: Try to fix build 2023-01-21 12:52:50 +00:00
João Valverde 5b57eb61f1 RPM: Fix breakage because of $docdir
%docdir only marks a directory as containing documentation.
It also needs to be included.
2023-01-21 00:05:20 +00:00
João Valverde 28a4466c7b NSIS: Leave old uninstall entries intact 2023-01-20 13:45:31 +00:00
João Valverde c66fc43e5b GUI: Ship authors as a Qt resource file 2023-01-20 13:35:03 +00:00
João Valverde c22f47bba6 Wix: Remove leftover component 2023-01-19 22:17:11 +00:00
João Valverde 2ab291b3b2 GUI: Ship license + acknowledgements as Qt resource 2023-01-19 19:14:32 +00:00
João Valverde 74909f1499 Install PDML files to DOCDIR
Add README because this stuff is somewhat obscure and move XSLT
file to DOCDIR because it is not used by wireshark directly.
2023-01-19 17:08:36 +00:00
João Valverde 59b15749af Wix: Remove stale reference to dftest 2023-01-19 09:15:13 +00:00
João Valverde 06519be205 Install documentation (HTML manuals) to DOCDIR
Install documentation to DOCDIR instead of DATADIR.
The code must be fixed to open the Help URLs from
this new path.

This only affects Unix-like FHS platforms. Windows
installation does its own thing.

Needs testing with macOS packaging.
2023-01-19 01:40:59 +00:00
João Valverde 9c9c5343d8 RPM: Remove some unnecessary doc files
INSTALL and READMEs for all the different platforms are totally
unnecessary and arguably wrong. ChangeLog is not useful either IMO.
2023-01-19 00:27:50 +00:00
João Valverde 277605ac57 Windows: Do not ship dftest in installers
DFTest is a developer-oriented utility and none of the other
platforms ship it to end-users.

Remove it from the windows installers.
2023-01-19 00:17:56 +00:00
Gerald Combs de7ca4c64a Packaging: Add a Logray AppImage package 2023-01-18 14:26:33 -08:00
Gerald Combs 5a9812ab61 AppRun: Set various paths
Set our ld library path and our data, extcap, and plugin directories.
Document WIRESHARK_EXTCAP_DIR and WIRESHARK_PLUGIN_DIR. Note that we
might want to set our various directories relative to the program path.
2023-01-18 20:37:08 +00:00
João Valverde 3335197b42 RPM: Fix header installation 2023-01-18 13:03:55 +00:00
João Valverde 83f57bd4c2 Debian: Fix header installation 2023-01-18 10:51:51 +00:00
Gerald Combs 2d8cdec477 NSIS: Update the donation page
Update the plea text and URL.
2023-01-17 21:17:33 +00:00
João Valverde 7738d5af5d MSYS2: Add some packages for missing dependencies
Add mingw packages for dependencies that are missing upstream;
these should eventually be submitted there.

Fix a version check for libsmi.

Update README.
2023-01-16 13:30:43 +00:00
João Valverde 7e6266d33d MSYS2: Add Lua 5.1 support and fix test suite failures 2023-01-16 11:54:43 +00:00
Gerald Combs 34ce99f32e AppImage: Switch to linuxdeploy
Linuxdeployqt resists running on newer versions of Linux to the extent
that you can't even use "-h" or "--help":

https://github.com/probonopd/linuxdeployqt/issues/340

Switch to linuxdeploy (https://github.com/linuxdeploy/linuxdeploy).
2023-01-13 08:59:30 +00:00
João Valverde 1229b0a999 MSYS2: Add PKGBUILD 2023-01-12 16:35:46 +00:00
Gerald Combs 29ca9c289f macOS: Add an initial donation page to the .dmg
Add a donation page to the .dmg package.
2023-01-11 18:42:39 +00:00
Stig Bjørlykke 67a788b29c Happy New Year 2023 2023-01-01 10:22:36 +01:00
Gerald Combs b15eb8a82f macOS: Don't try to copy a nonexistent plist
In the ChmodBPF postinstall script, don't try to copy
org.wireshark.ChmodBPF.plist from a nonexistent location.

Ping #18734.
2022-12-30 18:05:01 -08:00
Guy Harris 13f3ebc4e5 Add a routine to get the path of an executable given the program name.
That reduces the number of get_progfile_dir() calls, leaving only the
calls that are done either to 1) get the pathname in order to display it
or 2) get the pathname in order to reset the library path.

That makes it easier to figure out which get_progfile_dir() calls are
made to find the directory in which (non-extcap) binaries from Wireshark
are installed and which - if any - are made to figure out the directory
in which *the currently-running executable* are stored.  (Currently,
get_progfile_dir() attemps to get the former, not the latter, so
extcaps in an extcap subdirectory, for example, will get the parent
directory of that subdirectory, *not* the directory in which they weere
installed.)
2022-12-23 23:20:22 +00:00
João Valverde ae14849864 Windows: Use SpeexDSP binary package
Remove bundled code and use vcpkg binary library instead.
2022-12-16 11:11:28 +00:00
Gerald Combs 963dba2d60 NSIS: Add an initial donation page.
Add a donation page to the Wireshark installer.
2022-12-15 08:36:50 +00:00
Brian Sipos 9866cf3bad BPv7: Add conversation and endpoint tracking
This adds BPv7 source and destination as first-class text addresses for the packet.
This fixes proto-data used for decode-as table editing outside of a layer.
2022-12-14 15:44:36 +00:00
Gerald Combs d44c4193e0 macOS packaging: Clarify an issue with libbrotli. 2022-12-11 20:31:46 +00:00
AndersBroman dae36edbda debian:add missing symbols 2022-12-08 13:41:57 +01:00
Moshe Kaplan f413260df9 WSLUA: Add new lua function register_packet_menu()
This adds support to Wireshark for custom context menus for packets, so
that when a packet's context menu is opened (e.g., by right-clicking),
Wireshark can support doing things like "run a program" or
"open a URL" with a field from the packet as a parameter. Note that
this is similar to ArcSight's integration commands feature.

For example, it could be used like the following:

```
ROBTEX_URL = "https://www.robtex.com/dns-lookup/"
local function search_robtex(...)
    local fields = {...};

    for i, field in ipairs( fields ) do
        if (field.name == 'http.host') then
            browser_open_url(ROBTEX_URL .. field.value)
            break
        end
    end
end
register_packet_menu("Search host in Robtex", search_robtex, "http.host");
```

Fixes issue #14998
2022-12-07 18:47:14 +00:00
Alexis Gryta 77a1cb0636 rpm packaging: Add .el7, .fc38, ... 2022-12-06 20:24:39 +00:00
Tomasz Moń 2fcc819366
USBLL: Correctly handle last fragment retransmissions
Add fragment_add_check_with_fallback() and use it in USBLL dissector
instead of fragment_add_check() to avoid last fragment retransmissions
from being treated as separate transfers. With this change, the last
fragment retransmissions are correctly grouped together with the rest
of the transfer.

Only skip single fragment reassembly if retransmission is not possible
at the protocol level, i.e. for SETUP DATA0 (when it is not merged with
OUT data) and for isochronous transfers. The reassembly must not be
skipped for other transfers (especially for full-speed bulk) because
otherwise it wouldn't be possible to group retransmissions together with
the first data packet.

Do not use DATA0/DATA1 tracking for isochronous transfers. Isochronous
data cannot be retransmitted because there are no handshakes (there is
no ACK nor NAK after isochronous data packets).
2022-12-06 07:26:02 +01:00
Pascal Quantin ae3f4832c5 Windows: install etwdump extcap utility by default
Now that Microsoft own documentation references this utility,
it probably makes sense to activate it by default
2022-11-04 23:30:56 +00:00
Chuck Craft 00179b710c NSIS: add Extcap group; tidy up other groups and WSUG
Partial fix for https://ask.wireshark.org/question/29063/
Event Tracing for Windows ETW file reader
Future work: add user friendly Extcap examples to WSUG and wiki
2022-10-31 12:14:34 +00:00
Chuck Craft a4f1e5c6fe NSIS: uninstall etwdump; extcap binaries not in program directory
Could not find evidence that extcap binaries were ever in
program folder so should not affect uninstall of old versions.
2022-10-28 14:59:49 +00:00
Gerald Combs 1321de7dc3 Packaging: Fix our tarball commit logic.
If CI_COMMIT_SHA is set, it probably means we're building in GitLab CI.
Prefer it over our stash commit ID.
2022-10-20 15:39:53 -07:00
Branimir Rajtar 7b7aaf0fcf Update nsi files with 5x9 Radius dictionary 2022-10-10 08:17:03 +00:00
João Valverde d9fbde7cc7 Debian: Ignore symbol changes on the master branch
Fixes #18404.
2022-10-10 08:14:46 +00:00
Gerald Combs 3b074f7344 Update our Logray icons.
Enlarge the left fin, which makes the 16x16 blob look a little better.
Shorten the tail.
2022-10-08 15:08:22 -07:00
João Valverde bc67d45d72 Fix Debian symbols
[skip ci]
2022-10-08 18:31:50 +01:00
João Valverde 52c130ced7 Fix Debian symbols
[skip ci]
2022-10-07 16:14:52 +01:00