hpacucli-9.40.12.0.ebuild 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit rpm versionator pax-utils
  5. MY_PV=$(replace_version_separator 2 '-')
  6. SRC_URI_BASE="ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux"
  7. AMD64_PID="1257348637"
  8. AMD64_VID="80070"
  9. X86_PID="414707558"
  10. X86_VID="80071"
  11. DESCRIPTION="HP Array Configuration Utility Command Line Interface (HPACUCLI, formerly CPQACUXE)"
  12. HOMEPAGE="http://h18000.www1.hp.com/products/servers/linux/documentation.html"
  13. SRC_URI="
  14. amd64? ( ${SRC_URI_BASE}/p${AMD64_PID}/v${AMD64_VID}/${PN}-${MY_PV}.x86_64.rpm )
  15. x86? ( ${SRC_URI_BASE}/p${X86_PID}/v${X86_VID}/${PN}-${MY_PV}.i386.rpm )"
  16. LICENSE="hp-proliant-essentials"
  17. SLOT="0"
  18. KEYWORDS="-* amd64 x86"
  19. IUSE=""
  20. DEPEND=""
  21. RDEPEND="sys-apps/coreutils
  22. sys-process/procps
  23. >=sys-apps/util-linux-2.20.1"
  24. S="${WORKDIR}"
  25. HPACUCLI_BASEDIR="/opt/hp/hpacucli"
  26. QA_PREBUILT="${HPACUCLI_BASEDIR:1}/*"
  27. QA_EXECSTACK="${HPACUCLI_BASEDIR:1}/libcpqimgr*.so"
  28. src_install() {
  29. local MY_S="${S}/opt/compaq/${PN}/bld"
  30. newsbin "${FILESDIR}"/"${PN}-wrapper-r1" hpacucli
  31. dosym /usr/sbin/hpacucli /usr/sbin/hpacuscripting
  32. exeinto "${HPACUCLI_BASEDIR}"
  33. for bin in "${MY_S}"/.hp*; do
  34. local basename=$(basename "${bin}")
  35. newexe "${bin}" ${basename#.}.bin
  36. done
  37. insinto "${HPACUCLI_BASEDIR}"
  38. doins "${MY_S}"/*.so
  39. dodoc "${MY_S}"/*.txt
  40. doman "${S}"/usr/man/man*/*
  41. cat <<-EOF >"${T}"/45${PN}
  42. LDPATH=${HPACUCLI_BASEDIR}
  43. EOF
  44. doenvd "${T}"/45${PN}
  45. pax-mark m "${D}opt/hp/hpacucli/"*
  46. }