diff options
Diffstat (limited to 'net-misc/ipmiview/files')
-rw-r--r-- | net-misc/ipmiview/files/fake-java.bash | 24 | ||||
-rw-r--r-- | net-misc/ipmiview/files/launcher-pre.bash | 3 |
2 files changed, 27 insertions, 0 deletions
diff --git a/net-misc/ipmiview/files/fake-java.bash b/net-misc/ipmiview/files/fake-java.bash new file mode 100644 index 000000000000..7d4fbfe32a0b --- /dev/null +++ b/net-misc/ipmiview/files/fake-java.bash @@ -0,0 +1,24 @@ +#!/bin/bash + +for ARG in "${@}"; do + case ${ARG} in + -jar) + EXE=${2} + shift 2 + break + ;; + *) + shift + ;; + esac +done + +if [[ ${EXE} != *.jar ]]; then + echo "error: could not find jar argument in java invocation" >&2 + exit 1 +fi + +EXE=${EXE%.jar} +EXE=${EXE,,} + +exec "${EXE}" "${@}" diff --git a/net-misc/ipmiview/files/launcher-pre.bash b/net-misc/ipmiview/files/launcher-pre.bash new file mode 100644 index 000000000000..11b3e52008d5 --- /dev/null +++ b/net-misc/ipmiview/files/launcher-pre.bash @@ -0,0 +1,3 @@ +gjl_pwd=${XDG_CONFIG_HOME:-${HOME}/.config}/ipmiview +mkdir -p "${gjl_pwd}" || exit $? +ln -snf /usr/share/ipmiview/jre "${gjl_pwd}"/ || exit $? |