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 | |
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')
-rw-r--r-- | sys-apps/smcipmitool/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/smcipmitool/files/fake-java.bash | 24 | ||||
-rw-r--r-- | sys-apps/smcipmitool/files/launcher-pre.bash | 3 | ||||
-rw-r--r-- | sys-apps/smcipmitool/smcipmitool-2.20.0.180525.ebuild | 77 |
4 files changed, 106 insertions, 0 deletions
diff --git a/sys-apps/smcipmitool/Manifest b/sys-apps/smcipmitool/Manifest index bf19cf8348a9..9927a35db84f 100644 --- a/sys-apps/smcipmitool/Manifest +++ b/sys-apps/smcipmitool/Manifest @@ -1,2 +1,4 @@ DIST SMCIPMITool_2.19.0_build.171201_bundleJRE_Linux.tar.gz 77155490 BLAKE2B 5e69eb07f80aeb385ba7444a7eb8d14c24006fb8dd58c00976e5dfb1fca86a33b2079c33c6186baefcef2566ceefcaa45e738e9f1cbc0265551eaa89d145d8eb SHA512 c249a9ddfb1ee91eb74fa001e842b09f00ff10048f2b74650b3441794923261f077f3892bf719cb19f769acbf307d404006614f139a844e17135ff2220e5a1d4 DIST SMCIPMITool_2.19.0_build.171201_bundleJRE_Linux_x64.tar.gz 75724816 BLAKE2B e473a3a2a419fab0c5a450ec23614b65379e5dca1e60ff46d38aa985ff461dc1dcb72565d210ce4cb9e35f8f3c3904f1e8e9fcabbb118e20e341dc0602260270 SHA512 d66688560653f122f086a1e8354065e76849435a3f704cc9e07f3ed8bf892b039547c3f24127d4813fe34ff29db8cfb4ee14a34846ce31c1774bd8b7cdc9bda3 +DIST SMCIPMITool_2.20.0_build.180525_bundleJRE_Linux.tar.gz 78319288 BLAKE2B 9084894dd52aebce26853c611ca445d20d8d5363771013830ca2a27c4dfdbdfd00a660019755d579eb9bb6a845e196e59ef03c824cd7da5af9c9081406049c2f SHA512 b2c9fdc22c5963e8ab45ded776e823466fc5bd9fb3b1c04d44603f719409c38cc7f3f78fdd82c1230bf015f271607131ba0e00b73ef182ce18426490b9c58e9e +DIST SMCIPMITool_2.20.0_build.180525_bundleJRE_Linux_x64.tar.gz 76888805 BLAKE2B 73ec6205ce5ed261706ecc2cd0947cdb6f27c930bdd3809581eb06062d2608d76c6696b906a44cd48b065eed1b2f5a83108b7a616cd956c77238c9af0ff1fa46 SHA512 4adab5f7d45eb8a2c88c37c519743af5244509f75800b3dcd6b002d6385309709e8efa15c0dca18f827d054ad7861168d17fcc93d4e1f5427769a0071f5772bc 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 $? diff --git a/sys-apps/smcipmitool/smcipmitool-2.20.0.180525.ebuild b/sys-apps/smcipmitool/smcipmitool-2.20.0.180525.ebuild new file mode 100644 index 000000000000..67d6d6f7c2bd --- /dev/null +++ b/sys-apps/smcipmitool/smcipmitool-2.20.0.180525.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit eapi7-ver java-pkg-2 prefix + +MY_DATE="$(ver_cut 4)" +MY_PN="SMCIPMITool" +MY_PN_SRC_URI="SMCIPMItool" +MY_PV="$(ver_cut 1-3)" + +DESCRIPTION="An out-of-band utility for interfacing with SuperBlade and IPMI devices via CLI" +HOMEPAGE="https://www.supermicro.com/" +SRC_URI="amd64? ( ftp://ftp.supermicro.com/utility/${MY_PN_SRC_URI}/Linux/${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux_x64.tar.gz ) + x86? ( ftp://ftp.supermicro.com/utility/${MY_PN_SRC_URI}/Linux/${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux.tar.gz )" + +LICENSE="supermicro" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +RDEPEND="net-misc/stunnel + sys-libs/ncurses:5 + virtual/jre:1.8" + +RESTRICT="bindist fetch mirror strip" + +DIR="/usr/share/${PN}" +QA_PREBUILT="usr/lib*" + +pkg_nofetch() { + elog "Please download ${A} from" + elog "https://www.supermicro.com/SwDownload/UserInfo.aspx?sw=0&cat=IPMI" + elog "and place it in your DISTDIR directory." +} + +src_unpack() { + unpack ${A} + mv -v ${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux$(usex amd64 _x64 "") ${P} || die +} + +src_prepare() { + default + + # Don't use their scary launchers + rm -v lax.jar || die +} + +src_compile() { + : +} + +src_install() { + java-pkg_dojar *.jar + java-pkg_doso libjcurses.so $(usex amd64 '*64.so' '*32.so') + + local pre=$(prefixify_ro "${FILESDIR}"/launcher-pre.bash) + java-pkg_dolauncher smcipmitool-ikvm --jar iKVM.jar -pre "${pre}" + java-pkg_dolauncher smcipmitool-jviewersmc --jar JViewerSMC.jar -pre "${pre}" + java-pkg_dolauncher smcipmitool-jviewerx9 --jar JViewerX9.jar -pre "${pre}" + java-pkg_dolauncher smcipmitool --jar SMCIPMITool.jar -pre "${pre}" + + exeinto ${DIR}/jre/bin + newexe $(prefixify_ro "${FILESDIR}"/fake-java.bash) java + + insinto ${DIR}/lib/BMCSecurity + doins BMCSecurity/*.{crt,key,pem,txt} + + insinto ${DIR}/lib/BMCSecurity/linux + doins BMCSecurity/linux/stunnel.conf + + dosym ../../../../../bin/stunnel ${DIR}/lib/BMCSecurity/linux/stunnel32 + dosym ../../../../../bin/stunnel ${DIR}/lib/BMCSecurity/linux/stunnel64 + + local DOCS=( "jcurses.README" "ReleaseNotes.txt" "SMCIPMITool_User_Guide.pdf" ) + einstalldocs +} |