From e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:34:10 +0200 Subject: Adding upstream version 4.2.2. Signed-off-by: Daniel Baumann --- .../macosx/path_helper/install-distribution.xml | 24 ++++++++++++++++++++++ .../path_helper/root/etc/manpaths.d/Wireshark | 1 + .../macosx/path_helper/root/etc/paths.d/Wireshark | 1 + .../macosx/path_helper/uninstall-distribution.xml | 24 ++++++++++++++++++++++ .../path_helper/uninstall-scripts/postinstall | 11 ++++++++++ 5 files changed, 61 insertions(+) create mode 100644 packaging/macosx/path_helper/install-distribution.xml create mode 100644 packaging/macosx/path_helper/root/etc/manpaths.d/Wireshark create mode 100644 packaging/macosx/path_helper/root/etc/paths.d/Wireshark create mode 100644 packaging/macosx/path_helper/uninstall-distribution.xml create mode 100755 packaging/macosx/path_helper/uninstall-scripts/postinstall (limited to 'packaging/macosx/path_helper') diff --git a/packaging/macosx/path_helper/install-distribution.xml b/packaging/macosx/path_helper/install-distribution.xml new file mode 100644 index 00000000..245f0765 --- /dev/null +++ b/packaging/macosx/path_helper/install-distribution.xml @@ -0,0 +1,24 @@ + + + + Add Wireshark to the system PATH +
+

This package will add Wireshark and its associated utilities to the system PATH and MANPATH. Wireshark must be installed in /Applications.

]]>
+ + + + + + + + + + + + install.path_helper.pkg +
diff --git a/packaging/macosx/path_helper/root/etc/manpaths.d/Wireshark b/packaging/macosx/path_helper/root/etc/manpaths.d/Wireshark new file mode 100644 index 00000000..205dad7e --- /dev/null +++ b/packaging/macosx/path_helper/root/etc/manpaths.d/Wireshark @@ -0,0 +1 @@ +/Applications/Wireshark.app/Contents/Resources/share/man diff --git a/packaging/macosx/path_helper/root/etc/paths.d/Wireshark b/packaging/macosx/path_helper/root/etc/paths.d/Wireshark new file mode 100644 index 00000000..55493761 --- /dev/null +++ b/packaging/macosx/path_helper/root/etc/paths.d/Wireshark @@ -0,0 +1 @@ +/Applications/Wireshark.app/Contents/MacOS diff --git a/packaging/macosx/path_helper/uninstall-distribution.xml b/packaging/macosx/path_helper/uninstall-distribution.xml new file mode 100644 index 00000000..d44538cd --- /dev/null +++ b/packaging/macosx/path_helper/uninstall-distribution.xml @@ -0,0 +1,24 @@ + + + + Remove Wireshark from the system PATH +
+

This package will remove Wireshark and its associated utilities from the system PATH and MANPATH.

]]>
+ + + + + + + + + + + + uninstall.path_helper.pkg +
diff --git a/packaging/macosx/path_helper/uninstall-scripts/postinstall b/packaging/macosx/path_helper/uninstall-scripts/postinstall new file mode 100755 index 00000000..5575bdee --- /dev/null +++ b/packaging/macosx/path_helper/uninstall-scripts/postinstall @@ -0,0 +1,11 @@ +#!/bin/sh + +# +# Remove the Wireshark paths.d and manpaths.d entries. +# + +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 -- cgit v1.2.3