diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2021-04-07 17:20:32 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2021-04-07 17:23:04 +0200 |
commit | de8145261482a68155d192ab7d418d1cea4ec9ca (patch) | |
tree | a187845b0edebe2ac3d52a5ab819a26b9a25c42b /sys-block/hpssacli/hpssacli-3.40.3.0.ebuild | |
parent | app-shells/fish: Removed old (diff) | |
download | gentoo-de8145261482a68155d192ab7d418d1cea4ec9ca.tar.gz gentoo-de8145261482a68155d192ab7d418d1cea4ec9ca.tar.bz2 gentoo-de8145261482a68155d192ab7d418d1cea4ec9ca.zip |
sys-block/hpssacli: add 3.40.3.0
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'sys-block/hpssacli/hpssacli-3.40.3.0.ebuild')
-rw-r--r-- | sys-block/hpssacli/hpssacli-3.40.3.0.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/sys-block/hpssacli/hpssacli-3.40.3.0.ebuild b/sys-block/hpssacli/hpssacli-3.40.3.0.ebuild new file mode 100644 index 000000000000..3295f24d916b --- /dev/null +++ b/sys-block/hpssacli/hpssacli-3.40.3.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# 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="https://support.hpe.com/hpsc/swd/public/detail?swItemId=MTX_688838b13b194c7abe1aa98584" +SRC_URI="https://downloads.linux.hpe.com/SDR/repo/spp/2019.03.0/packages/ssacli-${MY_PV}.x86_64.rpm" + +LICENSE="hpe" +SLOT="0" +KEYWORDS="-* ~amd64" +IUSE="" + +DEPEND="" +RDEPEND=" + elibc_glibc? ( sys-libs/glibc ) + sys-libs/libunwind + sys-process/procps" + +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/smartstorageadmin/ssacli/bin/ssa* "${S}" || die "Failed to to copy 'ssa*' related files" + mv "${S}"/ssacli "${S}"/hpssacli || die "Renaming ssacli failed!" + mv "${S}"/ssascripting "${S}"/hpssascripting || die "Renaming ssascripting failed!" + mv "${S}"/ssacli.license "${S}"/license.txt || die "Renaming ssacli.license failed!" + mv "${S}"/ssacli*.txt "${S}"/readme.txt || die "Renaming ssacli*.txt failed!" + rm -r "${WORKDIR}"/opt || die "Failed to cleanup '${WORKDIR}/opt'" + rm -r "${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 +} |