summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conrad@kostecki.com>2018-07-29 16:37:47 +0200
committerPatrice Clement <monsieurp@gentoo.org>2018-08-05 23:47:36 +0200
commite69484f26a86b272cd362d78a0c4cea547df071d (patch)
treec25394a5e085227725512b4f10c29b4a543f1404 /net-misc/ipmiview
parentgames-fps/eduke32: drop old version. (diff)
downloadgentoo-e69484f26a86b272cd362d78a0c4cea547df071d.tar.gz
gentoo-e69484f26a86b272cd362d78a0c4cea547df071d.tar.bz2
gentoo-e69484f26a86b272cd362d78a0c4cea547df071d.zip
Due to some upcoming changes for sys-apps/smcipmitool, net-misc/ipmiview needs
some changes for file names, to avoid file collision. Closes: https://bugs.gentoo.org/662426 Package-Manager: Portage-2.3.43, Repoman-2.3.10 Closes: https://github.com/gentoo/gentoo/pull/9379
Diffstat (limited to 'net-misc/ipmiview')
-rw-r--r--net-misc/ipmiview/files/fake-java-r1.bash24
-rw-r--r--net-misc/ipmiview/ipmiview-2.14.0.180213-r1.ebuild85
2 files changed, 109 insertions, 0 deletions
diff --git a/net-misc/ipmiview/files/fake-java-r1.bash b/net-misc/ipmiview/files/fake-java-r1.bash
new file mode 100644
index 000000000000..7d4fbfe32a0b
--- /dev/null
+++ b/net-misc/ipmiview/files/fake-java-r1.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/ipmiview-2.14.0.180213-r1.ebuild b/net-misc/ipmiview/ipmiview-2.14.0.180213-r1.ebuild
new file mode 100644
index 000000000000..9c6362bda4b1
--- /dev/null
+++ b/net-misc/ipmiview/ipmiview-2.14.0.180213-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit desktop eapi7-ver java-pkg-2 prefix
+
+MY_DATE="$(ver_cut 4)"
+MY_PN="IPMIView"
+MY_PV="$(ver_cut 1-3)"
+
+DESCRIPTION="A GUI application that allows to manage multiple target systems through BMC"
+HOMEPAGE="https://www.supermicro.com/"
+SRC_URI="amd64? ( ftp://ftp.supermicro.com/utility/${MY_PN}/Linux/${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux_x64.tar.gz )
+ x86? ( ftp://ftp.supermicro.com/utility/${MY_PN}/Linux/${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux.tar.gz )"
+
+LICENSE="supermicro"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+
+DEPEND="app-arch/unzip"
+
+RDEPEND="net-misc/stunnel
+ 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
+
+ # Extract icons for menu entries
+ unzip -j -LL IPMIView20.jar images/ipmi{view,trap}.ico || die
+
+ # Don't use their scary launchers
+ rm -v lax.jar || die
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ java-pkg_dojar *.jar
+ java-pkg_doso $(usex amd64 '*64.so' '*32.so')
+
+ local pre=$(prefixify_ro "${FILESDIR}"/launcher-pre.bash)
+ java-pkg_dolauncher ipmiview --jar IPMIView20.jar -pre "${pre}"
+ java-pkg_dolauncher ipmiview-ikvm --jar iKVM.jar -pre "${pre}"
+ java-pkg_dolauncher ipmiview-ikvmmicroblade --jar iKVMMicroBlade.jar -pre "${pre}"
+ java-pkg_dolauncher ipmiview-jviewerx9 --jar JViewerX9.jar -pre "${pre}"
+ java-pkg_dolauncher trapreceiver --jar TrapView.jar -pre "${pre}"
+
+ exeinto ${DIR}/jre/bin
+ newexe $(prefixify_ro "${FILESDIR}"/fake-java-r1.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
+
+ doicon ipmi{view,trap}.ico
+ make_desktop_entry ipmiview IPMIView ipmiview.ico
+ make_desktop_entry trapreceiver "Trap Receiver" ipmitrap.ico
+
+ local DOCS=( *.pdf *.txt )
+ einstalldocs
+}