summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2016-09-25 16:20:24 +0200
committerMichael Mann <mmann78@netscape.net>2016-10-05 11:29:50 +0000
commitbf424e6f8433a94921a9a4dc728621f169e00216 (patch)
tree63cafa2d05868304c3225a6c302d1a36db18d4cc /packaging
parentbff2f93c7d1f4bdba3c141441c57eff8697dbb94 (diff)
downloadwireshark-bf424e6f8433a94921a9a4dc728621f169e00216.tar.gz
macOS: extend MANPATH for Wireshark.app
Modify postinstall.sh script to add file /etc/manpaths.d/Wireshark during installation. Content of the file is the current path of the Wireshark manpages. Bug: 12746 Change-Id: I1dc0dc9a2acf56c39c78c709294f1a6804c6ec5c Reviewed-on: https://code.wireshark.org/review/17916 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macosx/Scripts/wireshark-postinstall.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/packaging/macosx/Scripts/wireshark-postinstall.sh b/packaging/macosx/Scripts/wireshark-postinstall.sh
index 619806e6fe..26608c96bf 100755
--- a/packaging/macosx/Scripts/wireshark-postinstall.sh
+++ b/packaging/macosx/Scripts/wireshark-postinstall.sh
@@ -18,3 +18,10 @@ for plugin in $PLUGINS
do
rm -f "$PLUGINS_PATH"/$plugin.so "$PLUGINS_PATH"/$plugin.la
done
+
+# Setting MANPATH
+# if /etc/manpaths.d/Wireshark already exists we overwrite it.
+#
+WSMANPATH="$2/Wireshark.app/Contents/Resources/share/man"
+
+echo $WSMANPATH > /etc/manpaths.d/Wireshark