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 --- packaging/appimage/Logray-AppRun.in | 41 ++++++++++++++++++++++++++++++++++ packaging/appimage/Wireshark-AppRun.in | 41 ++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 packaging/appimage/Logray-AppRun.in create mode 100644 packaging/appimage/Wireshark-AppRun.in (limited to 'packaging/appimage') diff --git a/packaging/appimage/Logray-AppRun.in b/packaging/appimage/Logray-AppRun.in new file mode 100644 index 0000000..8769857 --- /dev/null +++ b/packaging/appimage/Logray-AppRun.in @@ -0,0 +1,41 @@ +#!/bin/sh + +# Custom AppRun entry point that allows symlinking multiple +# executables, e.g. logray, tshark, dumpcap, editcap, etc. + +# Adapted from +# https://github.com/probonopd/ippsample/blob/feature/appimage/appimage/AppRun + +SELF=$(readlink -f "$0") +HERE=${SELF%/*} + +# https://github.com/AppImage/AppImageKit/issues/126 +export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}" + +# We should probably set these relative to the program path in +# wsutil/filesystem.c +if [ -z "$LOGRAY_DATA_DIR" ] ; then + export LOGRAY_DATA_DIR="$APPDIR@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/wireshark" +fi + +if [ -z "$LOGRAY_EXTCAP_DIR" ] ; then + export LOGRAY_EXTCAP_DIR="$APPDIR@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/wireshark/extcap" +fi + +if [ -z "$LOGRAY_PLUGIN_DIR" ] ; then + export LOGRAY_PLUGIN_DIR="$APPDIR@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/wireshark/plugins" +fi + +# See if we were called by runtime.c, which sets APPIMAGE, ARGV0, +# and APPDIR. +if [ -n "$APPIMAGE" ] && [ -n "$ARGV0" ] ; then + BINARY_NAME=${ARGV0##*/} +else + BINARY_NAME=${0##*/} +fi + +if [ -e "$HERE/usr/bin/$BINARY_NAME" ] ; then + exec "$HERE/usr/bin/$BINARY_NAME" "$@" +else + exec "$HERE/usr/bin/logray" "$@" +fi diff --git a/packaging/appimage/Wireshark-AppRun.in b/packaging/appimage/Wireshark-AppRun.in new file mode 100644 index 0000000..c3bc06f --- /dev/null +++ b/packaging/appimage/Wireshark-AppRun.in @@ -0,0 +1,41 @@ +#!/bin/sh + +# Custom AppRun entry point that allows symlinking multiple +# executables, e.g. wireshark, tshark, dumpcap, editcap, etc. + +# Adapted from +# https://github.com/probonopd/ippsample/blob/feature/appimage/appimage/AppRun + +SELF=$(readlink -f "$0") +HERE=${SELF%/*} + +# https://github.com/AppImage/AppImageKit/issues/126 +export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}" + +# We should probably set these relative to the program path in +# wsutil/filesystem.c +if [ -z "$WIRESHARK_DATA_DIR" ] ; then + export WIRESHARK_DATA_DIR="$APPDIR@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_DATADIR@/wireshark" +fi + +if [ -z "$WIRESHARK_EXTCAP_DIR" ] ; then + export WIRESHARK_EXTCAP_DIR="$APPDIR@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/wireshark/extcap" +fi + +if [ -z "$WIRESHARK_PLUGIN_DIR" ] ; then + export WIRESHARK_PLUGIN_DIR="$APPDIR@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/wireshark/plugins" +fi + +# See if we were called by runtime.c, which sets APPIMAGE, ARGV0, +# and APPDIR. +if [ -n "$APPIMAGE" ] && [ -n "$ARGV0" ] ; then + BINARY_NAME=${ARGV0##*/} +else + BINARY_NAME=${0##*/} +fi + +if [ -e "$HERE/usr/bin/$BINARY_NAME" ] ; then + exec "$HERE/usr/bin/$BINARY_NAME" "$@" +else + exec "$HERE/usr/bin/wireshark" "$@" +fi -- cgit v1.2.3