summaryrefslogtreecommitdiff
path: root/sys-block/hpssacli
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-block/hpssacli
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-block/hpssacli')
-rw-r--r--sys-block/hpssacli/Manifest6
-rw-r--r--sys-block/hpssacli/files/hpssacli-wrapper22
-rw-r--r--sys-block/hpssacli/hpssacli-2.40.13.0-r1.ebuild63
-rw-r--r--sys-block/hpssacli/metadata.xml8
4 files changed, 99 insertions, 0 deletions
diff --git a/sys-block/hpssacli/Manifest b/sys-block/hpssacli/Manifest
new file mode 100644
index 000000000000..f3bf323fd713
--- /dev/null
+++ b/sys-block/hpssacli/Manifest
@@ -0,0 +1,6 @@
+AUX hpssacli-wrapper 534 SHA256 417d73f4a1d1068fd49f2887f0e04302118e0b04fd72b8423c3cccfecb580d79 SHA512 e80780df1e683ac58a50c12ae8854deb5c4bb8b08c5fde40df7f1f045fc94d76fa64221f78cff9b100588f520d03761a7994e33897722c3746675a6522e4fecc WHIRLPOOL 0065700bce57d8a3205ff34a61832b04429358d0423adbc79663cdf0ea173baab8b8ab43c5a634f5049d58c4af7fddd0966824a08b6c3be33076b5aada157698
+DIST hpssacli-2.40-13.0.i386.rpm 11413754 SHA256 54609da022003be25a8711230d36bbb723011857b7bb5d655f1420528cdaecd8 SHA512 f284c0979141fa2ef8728b2a6c7d7aa8b0e5e61ebb3878439321dd3742223f240f5be9782068da49a58c07ce91615072d9575f22feefb9ff6bb6fac00ae31d75 WHIRLPOOL 5a8cc350b895404c5589bcbe2952a371f4234183f14872dcbbc9989ca3711d5cf39704eedf9a00d69d8d4fcb830d00d527278b34d1d57d2bdd893a6e8bfae0df
+DIST hpssacli-2.40-13.0.x86_64.rpm 11772990 SHA256 1e17602dec56f30dfe9329eb5ea060ac0dbb42ea003a27e8eecaa2148b331599 SHA512 4a650c2700f77bdc79693905e56598cbe8f198d4f54c7c97e05a7b8af830f11c5e5eea2d16538a3c6068eadb75159850b391d7f772f59447bbbd870f64eb7efa WHIRLPOOL b0821a4875724cab30c0e95fccdca71e0700e3008e48fe9efb6d0b5d1f8f3de32259b586aaa5f0bdbd51a350b8467d992ee6aefceac9ee81beb0c34f2a6b0ec7
+EBUILD hpssacli-2.40.13.0-r1.ebuild 1813 SHA256 82a8d0c7d87f079ac3c42fc1e6590839ff8403427912401d6aa91e7b81d319f8 SHA512 ec7c7e0c0118332eff213066a74699d91803317b3a06a1f4d28eebd50d0103dc2baa786747cf9feb901c94ee3e387afcb1680c088be53ef12040467ecadeac5f WHIRLPOOL c36e1f3d59e1b994fe53d52dd76391b11bdeb663d81cdd64f764707a6d5583c96626c9ee90c16aa99f0c4272018a6dfa5c513c8bed4ac8fcfcbf9420b3f4d1cb
+MISC ChangeLog 1538 SHA256 e9a83aa764e2dcff43716e4eb272cf10b9ee52f7beec50ae6ac38566cb26aaa6 SHA512 055c2e5d13fd8f1bd866cb5cfa123501759000c968adb9a648b1e23fcf2372bd157c90e6994d15792db1f5f5bae262bd28e5314e3da2d103f5a83ce92d01f9ee WHIRLPOOL b192bc210fcbc4a3d0924d334d7a5d832c1a9442d7ad8bc7c4f5fa14ae2fb6a6b3d40e71d192c9222f72845246ce42a4e6a8d5993dd7f4c1be5355e73a10f197
+MISC metadata.xml 251 SHA256 57392d56dc3642e88d87f162c5309d9b913a94aaf87247f09d002a6e28ddb24e SHA512 46942a98ef7e36470d1169a5bc8839d25603e33c143cd36327a8a85fc14cb6bfb32247eb7608d92cc58a06cc8eef5bd64d6ec2d21e69a88632e4b936598aa772 WHIRLPOOL ecd6a64abe1bc22a4d1a7ac61cc425e6e33b6f376b7e243de4c8fb86bdcb814022a0de881c76f5130a3e62f8ee129337a58c224e81d501771df5c03dc4e929f3
diff --git a/sys-block/hpssacli/files/hpssacli-wrapper b/sys-block/hpssacli/files/hpssacli-wrapper
new file mode 100644
index 000000000000..2e425f719e20
--- /dev/null
+++ b/sys-block/hpssacli/files/hpssacli-wrapper
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+#
+# Uncomment the line below to turn off discovery of Fibre
+# export INFOMGR_BYPASS_FIBRE=1
+#
+# Uncomment the lines below to turn off discovery of Non-Smart Array controllers
+# export INFOMGR_BYPASS_NONSA=1
+#
+
+cmd="$(basename "$0")"
+
+HPSSACLI_BASEDIR="/opt/hp/hpssacli"
+HPSSACLI_BIN="${HPSSACLI_BASEDIR}/${cmd}.bin"
+
+if pgrep --exact "${cmd}.bin" 1>/dev/null; then
+ echo "Another instance of ${cmd} is running! Stop it first."
+ exit 1
+fi
+
+export LD_LIBRARY_PATH="${HPSSACLI_BASEDIR}"
+"${HPSSACLI_BIN}" "${@}"
diff --git a/sys-block/hpssacli/hpssacli-2.40.13.0-r1.ebuild b/sys-block/hpssacli/hpssacli-2.40.13.0-r1.ebuild
new file mode 100644
index 000000000000..6835fe61bd18
--- /dev/null
+++ b/sys-block/hpssacli/hpssacli-2.40.13.0-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit pax-utils rpm versionator
+
+MY_PV=$(replace_version_separator 2 '-')
+
+DESCRIPTION="HPE Smart Storage Administrator (HPE SSA) CLI (HPSSACLI, formerly HPACUCLI)"
+HOMEPAGE="http://h20564.www2.hpe.com/hpsc/swd/public/detail?swItemId=MTX_04bffb688a73438598fef81ddd"
+SRC_URI="
+ amd64? ( https://downloads.linux.hpe.com/SDR/repo/spp/RHEL/6/x86_64/current/${PN}-${MY_PV}.x86_64.rpm )
+ x86? ( https://downloads.linux.hpe.com/SDR/repo/spp/RHEL/6/i686/current/${PN}-${MY_PV}.i386.rpm )"
+
+LICENSE="hpe"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="elibc_glibc? ( >sys-libs/glibc-2.14 )
+ >=sys-libs/libunwind-0.99
+ >=sys-process/procps-3.3.6"
+
+DOCS=( license.txt readme.txt )
+
+MY_HPSSACLI_BASEDIR="/opt/hp/hpssacli"
+
+QA_PREBUILT="${MY_HPSSACLI_BASEDIR:1}/hpssa*.bin"
+QA_EXECSTACK="${MY_HPSSACLI_BASEDIR:1}/hpssa*.bin"
+
+src_unpack() {
+ rpm_src_unpack
+
+ mkdir "${S}" || die "Failed to create '${S}'"
+}
+
+src_prepare() {
+ default
+
+ # Create a clean $S
+ mv "${WORKDIR}"/opt/hp/hpssacli/bld/hpss* "${S}" || die "Failed to to copy 'hpss*' related files"
+ mv "${S}"/hpssacli.license "${S}"/license.txt || die "Renaming hpssacli.license failed!"
+ mv "${S}"/hpssacli*.txt "${S}"/readme.txt || die "Renaming hpssacli*.txt failed!"
+ rm -rf "${WORKDIR}"/opt || die "Failed to cleanup '${WORKDIR}/opt'"
+ rm -rf "${WORKDIR}"/usr || die "Failed to cleanup '${WORKDIR}/usr'"
+}
+
+src_install() {
+ newsbin "${FILESDIR}"/"${PN}-wrapper" ${PN}
+ dosym ${PN} /usr/sbin/hpssascripting
+
+ exeinto "${MY_HPSSACLI_BASEDIR}"
+ for bin in "${S}"/hpssa{cli,scripting}; do
+ local basename=$(basename "${bin}")
+ newexe "${bin}" ${basename}.bin
+ done
+
+ dodoc "${DOCS[@]}"
+
+ pax-mark m "${D%/}${HPSSACLI_BASEDIR}"/*.bin
+}
diff --git a/sys-block/hpssacli/metadata.xml b/sys-block/hpssacli/metadata.xml
new file mode 100644
index 000000000000..a32d600f949d
--- /dev/null
+++ b/sys-block/hpssacli/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>whissi@gentoo.org</email>
+ <name>Thomas Deutschmann</name>
+ </maintainer>
+</pkgmetadata>