summaryrefslogtreecommitdiffstats
path: root/packaging/macosx/path_helper
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /packaging/macosx/path_helper
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/macosx/path_helper')
-rw-r--r--packaging/macosx/path_helper/install-distribution.xml24
-rw-r--r--packaging/macosx/path_helper/root/etc/manpaths.d/Wireshark1
-rw-r--r--packaging/macosx/path_helper/root/etc/paths.d/Wireshark1
-rw-r--r--packaging/macosx/path_helper/uninstall-distribution.xml24
-rwxr-xr-xpackaging/macosx/path_helper/uninstall-scripts/postinstall11
5 files changed, 61 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Created using `productbuild -\-synthesize -\-package org.wireshark.path_helper.pkg.pkg /tmp/install-distribution.xml`
+See also: https://github.com/open-eid/osx-installer/blob/master/distribution.xml
+https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/DistributionDefinitionRef/
+https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/InstallerJavaScriptRef/
+-->
+<installer-gui-script minSpecVersion="1">
+ <title>Add Wireshark to the system PATH</title>
+ <welcome language="en" mime-type="text/html"><![CDATA[<html><body><br />
+<p style="margin: 0px; font: 13px 'Lucida Grande'">This package will add Wireshark and its associated utilities to the system PATH and MANPATH. Wireshark must be installed in /Applications.</p></body></html>]]></welcome>
+ <pkg-ref id="org.wireshark.path_helper.pkg"/>
+ <options customize="never" require-scripts="false" hostArchitectures="arm64,x86_64"/>
+ <choices-outline>
+ <line choice="default">
+ <line choice="org.wireshark.path_helper.pkg"/>
+ </line>
+ </choices-outline>
+ <choice id="default"/>
+ <choice id="org.wireshark.path_helper.pkg" visible="false">
+ <pkg-ref id="org.wireshark.path_helper.pkg"/>
+ </choice>
+ <pkg-ref id="org.wireshark.path_helper.pkg" onConclusion="none">install.path_helper.pkg</pkg-ref>
+</installer-gui-script>
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 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Created using `productbuild -\-synthesize -\-package org.wireshark.uninstall.path.pkg /tmp/uninstall-distribution.xml`
+See also: https://github.com/open-eid/osx-installer/blob/master/distribution.xml
+https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/DistributionDefinitionRef/
+https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/InstallerJavaScriptRef/
+-->
+<installer-gui-script minSpecVersion="1">
+ <title>Remove Wireshark from the system PATH</title>
+ <welcome language="en" mime-type="text/html"><![CDATA[<html><body><br />
+<p style="margin: 0px; font: 13px 'Lucida Grande'">This package will remove Wireshark and its associated utilities from the system PATH and MANPATH.</p></body></html>]]></welcome>
+ <pkg-ref id="org.wireshark.uninstall.path_helper.pkg"/>
+ <options customize="never" require-scripts="false" hostArchitectures="arm64,x86_64"/>
+ <choices-outline>
+ <line choice="default">
+ <line choice="org.wireshark.uninstall.path_helper.pkg"/>
+ </line>
+ </choices-outline>
+ <choice id="default"/>
+ <choice id="org.wireshark.uninstall.path_helper.pkg" visible="false">
+ <pkg-ref id="org.wireshark.uninstall.path_helper.pkg"/>
+ </choice>
+ <pkg-ref id="org.wireshark.uninstall.path_helper.pkg" onConclusion="none">uninstall.path_helper.pkg</pkg-ref>
+</installer-gui-script>
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