blob: 6835fe61bd18a1aa1de71bb927f7af7dcfad328f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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
}
|