diff options
author | Conrad Kostecki <conrad@kostecki.com> | 2018-07-29 16:45:11 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2018-08-05 23:47:39 +0200 |
commit | fbf82098b2c459a649a799345afbc54fc90e7df4 (patch) | |
tree | ef3657a925824905fab2b932edf661b02a6a9793 /sys-apps/smcipmitool/files | |
parent | net-misc/ipmiview: drop old version. (diff) | |
download | gentoo-fbf82098b2c459a649a799345afbc54fc90e7df4.tar.gz gentoo-fbf82098b2c459a649a799345afbc54fc90e7df4.tar.bz2 gentoo-fbf82098b2c459a649a799345afbc54fc90e7df4.zip |
sys-apps/smcipmitool: version bump to 2.20.0.180525.
Closes: https://bugs.gentoo.org/662428
Package-Manager: Portage-2.3.43, Repoman-2.3.10
Closes: https://github.com/gentoo/gentoo/pull/9380
Diffstat (limited to 'sys-apps/smcipmitool/files')
-rw-r--r-- | sys-apps/smcipmitool/files/fake-java.bash | 24 | ||||
-rw-r--r-- | sys-apps/smcipmitool/files/launcher-pre.bash | 3 |
2 files changed, 27 insertions, 0 deletions
diff --git a/sys-apps/smcipmitool/files/fake-java.bash b/sys-apps/smcipmitool/files/fake-java.bash new file mode 100644 index 000000000000..ed89f4fc6532 --- /dev/null +++ b/sys-apps/smcipmitool/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=smcipmitool-${EXE%.jar} +EXE=${EXE,,} + +exec "${EXE}" "${@}" diff --git a/sys-apps/smcipmitool/files/launcher-pre.bash b/sys-apps/smcipmitool/files/launcher-pre.bash new file mode 100644 index 000000000000..e24bf72544f1 --- /dev/null +++ b/sys-apps/smcipmitool/files/launcher-pre.bash @@ -0,0 +1,3 @@ +gjl_pwd=${XDG_CONFIG_HOME:-${HOME}/.config}/smcipmitool +mkdir -p "${gjl_pwd}" || exit $? +ln -snf /usr/share/smcipmitool/jre "${gjl_pwd}"/ || exit $? |