* [gentoo-commits] repo/gentoo:master commit in: net-misc/ipmiview/, net-misc/ipmiview/files/
@ 2018-07-09 19:31 James Le Cuirot
0 siblings, 0 replies; 2+ messages in thread
From: James Le Cuirot @ 2018-07-09 19:31 UTC (permalink / raw
To: gentoo-commits
commit: 4b302e8843d71ed41f81feae717b739cc7f07990
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Mon Jul 9 18:02:34 2018 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Jul 9 19:30:29 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b302e88
net-misc/ipmiview: New package
Closes: https://bugs.gentoo.org/601406
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Closes: https://github.com/gentoo/gentoo/pull/9109
net-misc/ipmiview/Manifest | 2 +
net-misc/ipmiview/files/fake-java.bash | 24 +++++++
net-misc/ipmiview/files/launcher-pre.bash | 3 +
net-misc/ipmiview/ipmiview-2.14.0.180213.ebuild | 85 +++++++++++++++++++++++++
net-misc/ipmiview/metadata.xml | 12 ++++
5 files changed, 126 insertions(+)
diff --git a/net-misc/ipmiview/Manifest b/net-misc/ipmiview/Manifest
new file mode 100644
index 00000000000..292d743261e
--- /dev/null
+++ b/net-misc/ipmiview/Manifest
@@ -0,0 +1,2 @@
+DIST IPMIView_2.14.0_build.180213_bundleJRE_Linux.tar.gz 95430772 BLAKE2B 467f1b8b99df6e0b48bab0d652411ce097826eb532e92ac7889ea9c93ad53ff78a291508498d9ffa1463342951cc640fb46bfddd887669b4ebad9f1a9dd09941 SHA512 59fd4ad70f7f6da98a8ca1a95678e368cf963caa3c454e1e1c60006966aa5faeb964c7c68d4fc7f0f5804ffbb49c06d44ab56974bb47bcb77490ad737c707e92
+DIST IPMIView_2.14.0_build.180213_bundleJRE_Linux_x64.tar.gz 94006067 BLAKE2B 38e597401f3bfb27acb2b6c824ac1dcae17b7ca46fcba1ba64d3533142913915a836bbee6ccfbdb9d21f9a9976629b3412e5f6f40850c3ce139a97428bb25be1 SHA512 7b4f0e3438281da33cb85195048f21fe1101a44ec18a67f83f88665c875d01706664df44ea8eb7403b98685c09764094eaf553f985cebadce66c3dcf635151e1
diff --git a/net-misc/ipmiview/files/fake-java.bash b/net-misc/ipmiview/files/fake-java.bash
new file mode 100644
index 00000000000..7d4fbfe32a0
--- /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 00000000000..11b3e52008d
--- /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 $?
diff --git a/net-misc/ipmiview/ipmiview-2.14.0.180213.ebuild b/net-misc/ipmiview/ipmiview-2.14.0.180213.ebuild
new file mode 100644
index 00000000000..8b3eaa7b720
--- /dev/null
+++ b/net-misc/ipmiview/ipmiview-2.14.0.180213.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 ikvm --jar iKVM.jar -pre "${pre}"
+ java-pkg_dolauncher ikvmmicroblade --jar iKVMMicroBlade.jar -pre "${pre}"
+ java-pkg_dolauncher ipmiview --jar IPMIView20.jar -pre "${pre}"
+ java-pkg_dolauncher 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.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
+}
diff --git a/net-misc/ipmiview/metadata.xml b/net-misc/ipmiview/metadata.xml
new file mode 100644
index 00000000000..54d5423c406
--- /dev/null
+++ b/net-misc/ipmiview/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ck+gentoo@bl4ckb0x.de</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-misc/ipmiview/, net-misc/ipmiview/files/
@ 2018-08-05 21:48 Patrice Clement
0 siblings, 0 replies; 2+ messages in thread
From: Patrice Clement @ 2018-08-05 21:48 UTC (permalink / raw
To: gentoo-commits
commit: 8f15bee752400d909994e8d68a73af7197c97113
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Sun Jul 29 14:50:08 2018 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Aug 5 21:47:37 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f15bee7
net-misc/ipmiview: drop old version.
Bug: https://bugs.gentoo.org/662426
Package-Manager: Portage-2.3.43, Repoman-2.3.10
net-misc/ipmiview/files/fake-java.bash | 24 -------
net-misc/ipmiview/ipmiview-2.14.0.180213.ebuild | 85 -------------------------
2 files changed, 109 deletions(-)
diff --git a/net-misc/ipmiview/files/fake-java.bash b/net-misc/ipmiview/files/fake-java.bash
deleted file mode 100644
index 7d4fbfe32a0..00000000000
--- a/net-misc/ipmiview/files/fake-java.bash
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/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.ebuild b/net-misc/ipmiview/ipmiview-2.14.0.180213.ebuild
deleted file mode 100644
index 8b3eaa7b720..00000000000
--- a/net-misc/ipmiview/ipmiview-2.14.0.180213.ebuild
+++ /dev/null
@@ -1,85 +0,0 @@
-# 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 ikvm --jar iKVM.jar -pre "${pre}"
- java-pkg_dolauncher ikvmmicroblade --jar iKVMMicroBlade.jar -pre "${pre}"
- java-pkg_dolauncher ipmiview --jar IPMIView20.jar -pre "${pre}"
- java-pkg_dolauncher 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.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
-}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-05 21:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-05 21:48 [gentoo-commits] repo/gentoo:master commit in: net-misc/ipmiview/, net-misc/ipmiview/files/ Patrice Clement
-- strict thread matches above, loose matches on Subject: below --
2018-07-09 19:31 James Le Cuirot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox