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.
This commit is contained in:
parent
71a77a4a5d
commit
3e07c0dc01
|
@ -19,4 +19,8 @@ rm -rf "/Library/Application Support/Wireshark"
|
|||
|
||||
rm -f "$CHMOD_BPF_PLIST"
|
||||
|
||||
# ChmodBPF hasn't been a startup item since 2018 (ac4f3c0f4d).
|
||||
rm -rf /Library/StartupItems/ChmodBPF
|
||||
|
||||
# https://gitlab.com/wireshark/wireshark/-/issues/18734
|
||||
pkgutil --forget org.wireshark.ChmodBPF.pkg
|
||||
|
|
|
@ -6,3 +6,6 @@
|
|||
|
||||
rm -f /private/etc/paths.d/Wireshark
|
||||
rm -f /private/etc/manpaths.d/Wireshark
|
||||
|
||||
# https://gitlab.com/wireshark/wireshark/-/issues/18734
|
||||
pkgutil --forget org.wireshark.path_helper.pkg
|
||||
|
|
Loading…
Reference in New Issue