From bf424e6f8433a94921a9a4dc728621f169e00216 Mon Sep 17 00:00:00 2001 From: Uli Heilmeier Date: Sun, 25 Sep 2016 16:20:24 +0200 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- packaging/macosx/Scripts/wireshark-postinstall.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packaging') 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 -- cgit v1.2.1