Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/smcipmitool/
Date: Tue, 01 Dec 2020 20:59:03
Message-Id: 1606856329.561501c045105fee223be56936cf2ed5b9fad96c.conikost@gentoo
1 commit: 561501c045105fee223be56936cf2ed5b9fad96c
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 1 20:05:37 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 1 20:58:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=561501c0
7
8 sys-apps/smcipmitool: don't install 32bit libs
9
10 Closes: https://bugs.gentoo.org/757930
11 Package-Manager: Portage-3.0.9, Repoman-3.0.2
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 .../smcipmitool-2.24.0.201007-r1.ebuild | 77 ++++++++++++++++++++++
15 1 file changed, 77 insertions(+)
16
17 diff --git a/sys-apps/smcipmitool/smcipmitool-2.24.0.201007-r1.ebuild b/sys-apps/smcipmitool/smcipmitool-2.24.0.201007-r1.ebuild
18 new file mode 100644
19 index 00000000000..585fc347333
20 --- /dev/null
21 +++ b/sys-apps/smcipmitool/smcipmitool-2.24.0.201007-r1.ebuild
22 @@ -0,0 +1,77 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +inherit java-pkg-2 prefix
29 +
30 +MY_DATE="$(ver_cut 4)"
31 +MY_PN="SMCIPMITool"
32 +MY_PN_SRC_URI="SMCIPMItool"
33 +MY_PV="$(ver_cut 1-3)"
34 +
35 +DESCRIPTION="An out-of-band utility for interfacing with SuperBlade and IPMI devices via CLI"
36 +HOMEPAGE="https://www.supermicro.com/"
37 +SRC_URI="https://www.supermicro.com/wftp/utility/${MY_PN_SRC_URI}/Linux/${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux_x64.tar.gz"
38 +
39 +LICENSE="supermicro"
40 +SLOT="0"
41 +KEYWORDS="-* ~amd64"
42 +
43 +RDEPEND="
44 + net-misc/stunnel
45 + sys-libs/ncurses-compat:5
46 + virtual/jre:1.8
47 +"
48 +
49 +RESTRICT="bindist mirror"
50 +
51 +DIR="/usr/share/${PN}"
52 +QA_PREBUILT="usr/lib*"
53 +
54 +src_unpack() {
55 + unpack ${A}
56 + mv -v ${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux_x64 ${P} || die
57 +}
58 +
59 +src_prepare() {
60 + default
61 +
62 + # Don't use their scary launchers
63 + rm -v lax.jar || die
64 +}
65 +
66 +src_compile() {
67 + :
68 +}
69 +
70 +src_install() {
71 + java-pkg_dojar *.jar
72 + java-pkg_doso *64.so
73 +
74 + local pre=$(prefixify_ro "${FILESDIR}"/launcher-pre.bash)
75 + java-pkg_dolauncher smcipmitool-ikvm --jar iKVM.jar -pre "${pre}"
76 + java-pkg_dolauncher smcipmitool-jviewersmc --jar JViewerSMC.jar -pre "${pre}"
77 + java-pkg_dolauncher smcipmitool-jviewerx9 --jar JViewerX9.jar -pre "${pre}"
78 + java-pkg_dolauncher smcipmitool --jar SMCIPMITool.jar -pre "${pre}"
79 +
80 + exeinto "${DIR}"/jre/bin
81 + newexe $(prefixify_ro "${FILESDIR}"/fake-java.bash) java
82 +
83 + insinto "${DIR}"/lib/BMCSecurity
84 + doins BMCSecurity/*.{crt,key,pem,txt}
85 +
86 + insinto "${DIR}"/lib/BMCSecurity/linux
87 + doins BMCSecurity/linux/stunnel.conf
88 +
89 + dosym ../../../../../bin/stunnel "${DIR}"/lib/BMCSecurity/linux/stunnel32
90 + dosym ../../../../../bin/stunnel "${DIR}"/lib/BMCSecurity/linux/stunnel64
91 +
92 + local DOCS=(
93 + "jcurses.README"
94 + "ReleaseNotes.txt"
95 + "SMCIPMITool_User_Guide.pdf"
96 + )
97 +
98 + einstalldocs
99 +}