1 |
commit: 4b302e8843d71ed41f81feae717b739cc7f07990 |
2 |
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com> |
3 |
AuthorDate: Mon Jul 9 18:02:34 2018 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 9 19:30:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b302e88 |
7 |
|
8 |
net-misc/ipmiview: New package |
9 |
|
10 |
Closes: https://bugs.gentoo.org/601406 |
11 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/9109 |
13 |
|
14 |
net-misc/ipmiview/Manifest | 2 + |
15 |
net-misc/ipmiview/files/fake-java.bash | 24 +++++++ |
16 |
net-misc/ipmiview/files/launcher-pre.bash | 3 + |
17 |
net-misc/ipmiview/ipmiview-2.14.0.180213.ebuild | 85 +++++++++++++++++++++++++ |
18 |
net-misc/ipmiview/metadata.xml | 12 ++++ |
19 |
5 files changed, 126 insertions(+) |
20 |
|
21 |
diff --git a/net-misc/ipmiview/Manifest b/net-misc/ipmiview/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..292d743261e |
24 |
--- /dev/null |
25 |
+++ b/net-misc/ipmiview/Manifest |
26 |
@@ -0,0 +1,2 @@ |
27 |
+DIST IPMIView_2.14.0_build.180213_bundleJRE_Linux.tar.gz 95430772 BLAKE2B 467f1b8b99df6e0b48bab0d652411ce097826eb532e92ac7889ea9c93ad53ff78a291508498d9ffa1463342951cc640fb46bfddd887669b4ebad9f1a9dd09941 SHA512 59fd4ad70f7f6da98a8ca1a95678e368cf963caa3c454e1e1c60006966aa5faeb964c7c68d4fc7f0f5804ffbb49c06d44ab56974bb47bcb77490ad737c707e92 |
28 |
+DIST IPMIView_2.14.0_build.180213_bundleJRE_Linux_x64.tar.gz 94006067 BLAKE2B 38e597401f3bfb27acb2b6c824ac1dcae17b7ca46fcba1ba64d3533142913915a836bbee6ccfbdb9d21f9a9976629b3412e5f6f40850c3ce139a97428bb25be1 SHA512 7b4f0e3438281da33cb85195048f21fe1101a44ec18a67f83f88665c875d01706664df44ea8eb7403b98685c09764094eaf553f985cebadce66c3dcf635151e1 |
29 |
|
30 |
diff --git a/net-misc/ipmiview/files/fake-java.bash b/net-misc/ipmiview/files/fake-java.bash |
31 |
new file mode 100644 |
32 |
index 00000000000..7d4fbfe32a0 |
33 |
--- /dev/null |
34 |
+++ b/net-misc/ipmiview/files/fake-java.bash |
35 |
@@ -0,0 +1,24 @@ |
36 |
+#!/bin/bash |
37 |
+ |
38 |
+for ARG in "${@}"; do |
39 |
+ case ${ARG} in |
40 |
+ -jar) |
41 |
+ EXE=${2} |
42 |
+ shift 2 |
43 |
+ break |
44 |
+ ;; |
45 |
+ *) |
46 |
+ shift |
47 |
+ ;; |
48 |
+ esac |
49 |
+done |
50 |
+ |
51 |
+if [[ ${EXE} != *.jar ]]; then |
52 |
+ echo "error: could not find jar argument in java invocation" >&2 |
53 |
+ exit 1 |
54 |
+fi |
55 |
+ |
56 |
+EXE=${EXE%.jar} |
57 |
+EXE=${EXE,,} |
58 |
+ |
59 |
+exec "${EXE}" "${@}" |
60 |
|
61 |
diff --git a/net-misc/ipmiview/files/launcher-pre.bash b/net-misc/ipmiview/files/launcher-pre.bash |
62 |
new file mode 100644 |
63 |
index 00000000000..11b3e52008d |
64 |
--- /dev/null |
65 |
+++ b/net-misc/ipmiview/files/launcher-pre.bash |
66 |
@@ -0,0 +1,3 @@ |
67 |
+gjl_pwd=${XDG_CONFIG_HOME:-${HOME}/.config}/ipmiview |
68 |
+mkdir -p "${gjl_pwd}" || exit $? |
69 |
+ln -snf /usr/share/ipmiview/jre "${gjl_pwd}"/ || exit $? |
70 |
|
71 |
diff --git a/net-misc/ipmiview/ipmiview-2.14.0.180213.ebuild b/net-misc/ipmiview/ipmiview-2.14.0.180213.ebuild |
72 |
new file mode 100644 |
73 |
index 00000000000..8b3eaa7b720 |
74 |
--- /dev/null |
75 |
+++ b/net-misc/ipmiview/ipmiview-2.14.0.180213.ebuild |
76 |
@@ -0,0 +1,85 @@ |
77 |
+# Copyright 1999-2018 Gentoo Foundation |
78 |
+# Distributed under the terms of the GNU General Public License v2 |
79 |
+ |
80 |
+EAPI=6 |
81 |
+ |
82 |
+inherit desktop eapi7-ver java-pkg-2 prefix |
83 |
+ |
84 |
+MY_DATE="$(ver_cut 4)" |
85 |
+MY_PN="IPMIView" |
86 |
+MY_PV="$(ver_cut 1-3)" |
87 |
+ |
88 |
+DESCRIPTION="A GUI application that allows to manage multiple target systems through BMC" |
89 |
+HOMEPAGE="https://www.supermicro.com/" |
90 |
+SRC_URI="amd64? ( ftp://ftp.supermicro.com/utility/${MY_PN}/Linux/${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux_x64.tar.gz ) |
91 |
+ x86? ( ftp://ftp.supermicro.com/utility/${MY_PN}/Linux/${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux.tar.gz )" |
92 |
+ |
93 |
+LICENSE="supermicro" |
94 |
+SLOT="0" |
95 |
+KEYWORDS="-* ~amd64 ~x86" |
96 |
+ |
97 |
+DEPEND="app-arch/unzip" |
98 |
+ |
99 |
+RDEPEND="net-misc/stunnel |
100 |
+ virtual/jre:1.8" |
101 |
+ |
102 |
+RESTRICT="bindist fetch mirror strip" |
103 |
+ |
104 |
+DIR="/usr/share/${PN}" |
105 |
+QA_PREBUILT="usr/lib*" |
106 |
+ |
107 |
+pkg_nofetch() { |
108 |
+ elog "Please download ${A} from" |
109 |
+ elog "https://www.supermicro.com/SwDownload/UserInfo.aspx?sw=0&cat=IPMI" |
110 |
+ elog "and place it in your DISTDIR directory." |
111 |
+} |
112 |
+ |
113 |
+src_unpack() { |
114 |
+ unpack ${A} |
115 |
+ mv -v ${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux$(usex amd64 _x64 "") ${P} || die |
116 |
+} |
117 |
+ |
118 |
+src_prepare() { |
119 |
+ default |
120 |
+ |
121 |
+ # Extract icons for menu entries |
122 |
+ unzip -j -LL IPMIView20.jar images/ipmi{view,trap}.ico || die |
123 |
+ |
124 |
+ # Don't use their scary launchers |
125 |
+ rm -v lax.jar || die |
126 |
+} |
127 |
+ |
128 |
+src_compile() { |
129 |
+ : |
130 |
+} |
131 |
+ |
132 |
+src_install() { |
133 |
+ java-pkg_dojar *.jar |
134 |
+ java-pkg_doso $(usex amd64 '*64.so' '*32.so') |
135 |
+ |
136 |
+ local pre=$(prefixify_ro "${FILESDIR}"/launcher-pre.bash) |
137 |
+ java-pkg_dolauncher ikvm --jar iKVM.jar -pre "${pre}" |
138 |
+ java-pkg_dolauncher ikvmmicroblade --jar iKVMMicroBlade.jar -pre "${pre}" |
139 |
+ java-pkg_dolauncher ipmiview --jar IPMIView20.jar -pre "${pre}" |
140 |
+ java-pkg_dolauncher jviewerx9 --jar JViewerX9.jar -pre "${pre}" |
141 |
+ java-pkg_dolauncher trapreceiver --jar TrapView.jar -pre "${pre}" |
142 |
+ |
143 |
+ exeinto ${DIR}/jre/bin |
144 |
+ newexe $(prefixify_ro "${FILESDIR}"/fake-java.bash) java |
145 |
+ |
146 |
+ insinto ${DIR}/lib/BMCSecurity |
147 |
+ doins BMCSecurity/*.{crt,key,pem,txt} |
148 |
+ |
149 |
+ insinto ${DIR}/lib/BMCSecurity/linux |
150 |
+ doins BMCSecurity/linux/stunnel.conf |
151 |
+ |
152 |
+ dosym ../../../../../bin/stunnel ${DIR}/lib/BMCSecurity/linux/stunnel32 |
153 |
+ dosym ../../../../../bin/stunnel ${DIR}/lib/BMCSecurity/linux/stunnel64 |
154 |
+ |
155 |
+ doicon ipmi{view,trap}.ico |
156 |
+ make_desktop_entry ipmiview IPMIView ipmiview.ico |
157 |
+ make_desktop_entry trapreceiver "Trap Receiver" ipmitrap.ico |
158 |
+ |
159 |
+ local DOCS=( *.pdf *.txt ) |
160 |
+ einstalldocs |
161 |
+} |
162 |
|
163 |
diff --git a/net-misc/ipmiview/metadata.xml b/net-misc/ipmiview/metadata.xml |
164 |
new file mode 100644 |
165 |
index 00000000000..54d5423c406 |
166 |
--- /dev/null |
167 |
+++ b/net-misc/ipmiview/metadata.xml |
168 |
@@ -0,0 +1,12 @@ |
169 |
+<?xml version="1.0" encoding="UTF-8"?> |
170 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
171 |
+<pkgmetadata> |
172 |
+ <maintainer type="person"> |
173 |
+ <email>ck+gentoo@××××××××.de</email> |
174 |
+ <name>Conrad Kostecki</name> |
175 |
+ </maintainer> |
176 |
+ <maintainer type="project"> |
177 |
+ <email>proxy-maint@g.o</email> |
178 |
+ <name>Proxy Maintainers</name> |
179 |
+ </maintainer> |
180 |
+</pkgmetadata> |