sys-apps/ipmicfg: New package
authorConrad Kostecki <conrad@kostecki.com>
Sun, 25 Mar 2018 00:39:29 +0000 (01:39 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 25 Mar 2018 08:09:35 +0000 (10:09 +0200)
Closes: https://bugs.gentoo.org/601318
Closes: https://github.com/gentoo/gentoo/pull/7304

sys-apps/ipmicfg/Manifest [new file with mode: 0644]
sys-apps/ipmicfg/ipmicfg-1.27.1.170901.ebuild [new file with mode: 0644]
sys-apps/ipmicfg/metadata.xml [new file with mode: 0644]

diff --git a/sys-apps/ipmicfg/Manifest b/sys-apps/ipmicfg/Manifest
new file mode 100644 (file)
index 0000000..e35d9f1
--- /dev/null
@@ -0,0 +1 @@
+DIST IPMICFG_1.27.1_build.170901.zip 1667230 BLAKE2B 6411f735fed2e66f8dc012c480e6f9a4c2c9223643074514ca6fbb0db62df06fd78714c4a95ce92edc22a4473734a1d41a6c3bdb61268c73a628f08e7dc87c0e SHA512 9ed01a8a1eae7a7e41fafdbb3b666e7760057c960b65da547f0cf197b30b1a535fa2fe8357e13e6ccda0e0dd4474170b43ca3bc89f55c2de5df0160adde9377e
diff --git a/sys-apps/ipmicfg/ipmicfg-1.27.1.170901.ebuild b/sys-apps/ipmicfg/ipmicfg-1.27.1.170901.ebuild
new file mode 100644 (file)
index 0000000..ce0d6c4
--- /dev/null
@@ -0,0 +1,60 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eapi7-ver
+
+MY_DATE="$(ver_cut 4)"
+MY_PN="${PN^^}"
+MY_PV="$(ver_cut 1-3)"
+
+DESCRIPTION="An in-band utility for configuring Supermicro IPMI devices"
+HOMEPAGE="https://www.supermicro.com"
+SRC_URI="ftp://ftp.supermicro.com/utility/${MY_PN}/${MY_PN}_${MY_PV}_build.${MY_DATE}.zip"
+
+KEYWORDS="-* ~amd64 ~x86"
+LICENSE="supermicro"
+SLOT="0"
+
+RDEPEND="sys-libs/glibc"
+DEPEND="app-arch/unzip"
+
+RESTRICT="bindist fetch mirror strip"
+
+S="${WORKDIR}/${MY_PN}_${MY_PV}_build.${MY_DATE}"
+
+QA_PREBUILT="opt/ipmicfg/IPMICFG-Linux.x86 opt/ipmicfg/IPMICFG-Linux.x86_64"
+
+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_binary="x86_64"
+               local my_arch_folder="64bit"
+       else
+               local my_arch_binary="x86"
+               local my_arch_folder="32bit"
+       fi
+
+       # Install files
+       insinto "/opt/ipmicfg"
+       doins "Linux/${my_arch_folder}"/*.dat
+
+       # Install binary
+       exeinto "/opt/ipmicfg"
+       doexe "Linux/${my_arch_folder}/IPMICFG-Linux.${my_arch_binary}"
+
+       # Install symlink
+       dodir "/opt/bin"
+       dosym "../ipmicfg/IPMICFG-Linux.${my_arch_binary}" "/opt/bin/ipmicfg"
+
+       # Install docs
+       local DOCS=( "IPMICFG_UserGuide.pdf" "ReleaseNotes.txt" )
+       einstalldocs
+}
diff --git a/sys-apps/ipmicfg/metadata.xml b/sys-apps/ipmicfg/metadata.xml
new file mode 100644 (file)
index 0000000..54d5423
--- /dev/null
@@ -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>