diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2016-08-12 21:01:51 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2016-08-12 21:33:12 +0200 |
commit | 0fe2f15bf5b6fd098ae424c9c6153c9d5a67655e (patch) | |
tree | bbd9f67864e1fba2793789541c1fb64233d23fe8 /sys-block/hpssacli/hpssacli-2.40.13.0.ebuild | |
parent | licenses: Add Hewlett Packard Enterprise (HPE) End User License Agreement (diff) | |
download | gentoo-0fe2f15bf5b6fd098ae424c9c6153c9d5a67655e.tar.gz gentoo-0fe2f15bf5b6fd098ae424c9c6153c9d5a67655e.tar.bz2 gentoo-0fe2f15bf5b6fd098ae424c9c6153c9d5a67655e.zip |
sys-block/hpssacli: New package
The HPE Smart Storage Administrator CLI (HPE SSACLI) is a commandline-based
disk configuration program that helps you configure, manage, diagnose, and
monitor HPE ProLiant Smart Array Controllers and now other storage devices
as well, such as host bus adapters (HBAs), HPE Storage controllers, and
future devices such as SCSI Express drives, and SAS switch devices. HPE
SSACLI replaces the existing HP Array Configuration CLI Utility, or ACUCLI,
with an updated design and will deliver new features and functionality for
various Smart Storage initiatives as they come online.
Gentoo-Bug: https://bugs.gentoo.org/476640
Package-Manager: portage-2.3.0
Diffstat (limited to 'sys-block/hpssacli/hpssacli-2.40.13.0.ebuild')
-rw-r--r-- | sys-block/hpssacli/hpssacli-2.40.13.0.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-block/hpssacli/hpssacli-2.40.13.0.ebuild b/sys-block/hpssacli/hpssacli-2.40.13.0.ebuild new file mode 100644 index 000000000000..75a43e145983 --- /dev/null +++ b/sys-block/hpssacli/hpssacli-2.40.13.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="http://downloads.linux.hpe.com/SDR/repo/spp/RHEL/7/x86_64/current/${PN}-${MY_PV}.x86_64.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 +} |