diff options
Diffstat (limited to 'packaging/macosx/Scripts/wireshark-postinstall.sh')
-rwxr-xr-x | packaging/macosx/Scripts/wireshark-postinstall.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/packaging/macosx/Scripts/wireshark-postinstall.sh b/packaging/macosx/Scripts/wireshark-postinstall.sh index bfaedca1dd..3850a4bc75 100755 --- a/packaging/macosx/Scripts/wireshark-postinstall.sh +++ b/packaging/macosx/Scripts/wireshark-postinstall.sh @@ -19,10 +19,22 @@ do rm -f "$PLUGINS_PATH"/$plugin.so "$PLUGINS_PATH"/$plugin.la done +BIN_PATH="$2/Wireshark.app/Contents/Resources/bin" +# +# For some reason, packagemaker isn't including Contents/Resources/bin +# in the app bundle, so let's just construct it ourselves. +# +for i in capinfos dftest dumpcap editcap mergecap randpkt rawshark \ + tshark text2pcap +do + ln -s "$BIN_PATH/$i" ../../MacOS/"$i" +done +ln -s "$BIN_PATH/wireshark" ../../MacOS/Wireshark + # Setting PATH # if /etc/paths.d/Wireshark already exists we overwrite it. # -WSPATH="$2/Wireshark.app/Contents/Resources/bin" +WSPATH="$BIN_PATH" if [ ! -d /etc/paths.d ] then |