diff options
author | Conrad Kostecki <ck+gentoo@bl4ckb0x.de> | 2018-03-29 16:40:39 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-03-29 17:12:38 +0200 |
commit | ffa696581eb59547bd14f6f7e543c102233eb194 (patch) | |
tree | 0e40146339e6f2a7b5927a4d54565358aa582283 /sys-apps/smcipmitool | |
parent | sys-apps/heirloom-tools: Fix many bugs (also bug #649788). (diff) | |
download | gentoo-ffa696581eb59547bd14f6f7e543c102233eb194.tar.gz gentoo-ffa696581eb59547bd14f6f7e543c102233eb194.tar.bz2 gentoo-ffa696581eb59547bd14f6f7e543c102233eb194.zip |
sys-apps/smcipmitool: New package
Closes: https://bugs.gentoo.org/601392
Closes: https://github.com/gentoo/gentoo/pull/7305
Diffstat (limited to 'sys-apps/smcipmitool')
-rw-r--r-- | sys-apps/smcipmitool/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/smcipmitool/metadata.xml | 12 | ||||
-rw-r--r-- | sys-apps/smcipmitool/smcipmitool-2.19.0.171201.ebuild | 91 |
3 files changed, 105 insertions, 0 deletions
diff --git a/sys-apps/smcipmitool/Manifest b/sys-apps/smcipmitool/Manifest new file mode 100644 index 000000000000..bf19cf8348a9 --- /dev/null +++ b/sys-apps/smcipmitool/Manifest @@ -0,0 +1,2 @@ +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 diff --git a/sys-apps/smcipmitool/metadata.xml b/sys-apps/smcipmitool/metadata.xml new file mode 100644 index 000000000000..54d5423c4060 --- /dev/null +++ b/sys-apps/smcipmitool/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> diff --git a/sys-apps/smcipmitool/smcipmitool-2.19.0.171201.ebuild b/sys-apps/smcipmitool/smcipmitool-2.19.0.171201.ebuild new file mode 100644 index 000000000000..5f5cb4965929 --- /dev/null +++ b/sys-apps/smcipmitool/smcipmitool-2.19.0.171201.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eapi7-ver java-vm-2 + +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" + +RESTRICT="bindist fetch mirror strip" + +S="${WORKDIR}" + +QA_PREBUILT="opt/smcipmitool/libiKVM*.so + opt/smcipmitool/libjcurses*.so + opt/smcipmitool/libSharedLibrary*.so" + +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_install() { + # Choose ARCH + if use amd64; then + local my_arch="${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux_x64" + else + local my_arch="${MY_PN}_${MY_PV}_build.${MY_DATE}_bundleJRE_Linux" + fi + + # Install binary + exeinto /opt/smcipmitool + doexe ${my_arch}/SMCIPMITool + + # Install libs + exeinto /opt/smcipmitool + if use amd64; then + doexe ${my_arch}/*64.so + else + doexe ${my_arch}/libjcurses.so ${my_arch}/*32.so + fi + + # Install java libs + exeinto /opt/smcipmitool + if use amd64; then + doexe ${my_arch}/*64.jnilib + fi + + # Install files + insinto /opt/smcipmitool + doins ${my_arch}/*.jar ${my_arch}/*.lax ${my_arch}/*.properties + + # Use system java + dosym ../..${JAVA_VM_SYSTEM}/jre /opt/smcipmitool/jre + + # Install certificates + insinto /opt/smcipmitool/BMCSecurity + doins ${my_arch}/BMCSecurity/*.crt ${my_arch}/BMCSecurity/*.key ${my_arch}/BMCSecurity/*.pem ${my_arch}/BMCSecurity/*.txt + + # Install Stunnel config + insinto /opt/smcipmitool/BMCSecurity/linux + doins ${my_arch}/BMCSecurity/linux/stunnel.conf + + # Use system stunnel + dosym ../../../../usr/bin/stunnel /opt/smcipmitool/BMCSecurity/linux/stunnel$(usex amd64 64 32) + + # Install symlink + dodir /opt/bin + dosym ../smcipmitool/SMCIPMITool /opt/bin/smcipmitool + + # Install docs + local DOCS=( "${my_arch}/jcurses.README" "${my_arch}/ReleaseNotes.txt" "${my_arch}/SMCIPMITool_User_Guide.pdf" ) + einstalldocs +} |