summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2016-08-12 18:23:11 +0200
committerThomas Deutschmann <whissi@gentoo.org>2016-08-12 21:33:07 +0200
commit4fab09f09aab827c11e6073f7f14d938decd811b (patch)
treed0fc57beb60e6696b2e97674d7b9d5f16de70fc5 /sys-block/hpacucli
parentmedia-tv/dvbstream: new revision respecting LDFLAGS. (diff)
downloadgentoo-4fab09f09aab827c11e6073f7f14d938decd811b.tar.gz
gentoo-4fab09f09aab827c11e6073f7f14d938decd811b.tar.bz2
gentoo-4fab09f09aab827c11e6073f7f14d938decd811b.zip
sys-block/hpacucli: Bumped to v9.40.12.0
Package-Manager: portage-2.3.0
Diffstat (limited to 'sys-block/hpacucli')
-rw-r--r--sys-block/hpacucli/Manifest2
-rw-r--r--sys-block/hpacucli/files/hpacucli-wrapper-r122
-rw-r--r--sys-block/hpacucli/hpacucli-9.40.12.0.ebuild63
3 files changed, 87 insertions, 0 deletions
diff --git a/sys-block/hpacucli/Manifest b/sys-block/hpacucli/Manifest
index 096dd390c184..74e016142f1f 100644
--- a/sys-block/hpacucli/Manifest
+++ b/sys-block/hpacucli/Manifest
@@ -1,2 +1,4 @@
DIST hpacucli-9.30-15.0.i386.rpm 6405071 SHA256 f1019a4a26c7d9adef1761fafb46b3add3034e77d48efe431bd499bbe5609312 SHA512 f628e5ca1f4e598700aaf8896e310e3ee59705d2ad9eae813179c0e873878b3ab6dd317fb34f738f901eb6972e8f4e9428b57a572dd1f8de73660b1c89213ce1 WHIRLPOOL cc41b16426a4298eafbf200a9c437501c8a2eb2456ca4e9d3f278bed64e203dade4e0de7c94a56e14ef20928a9c292440193c1e98071d9aaa661616c0ad6ea64
DIST hpacucli-9.30-15.0.x86_64.rpm 6367162 SHA256 d25b4fc593e11e00f2ca2b83417b23d1b1e12e6bff3afcda5333b274dea89901 SHA512 ad53b7452feffc7457220b9f1df8fd435637e7d1d61b42bdaffe75e62c8245a127b7a80435a40ac5675f0a64e14cc9a99fa556dbecb0e37ae70dda51927afd6e WHIRLPOOL 0ba12328989bd5dce8eb5d83377768605f931ca78dd0e534bdbf65c93a17536499a7a9ea77816f4640ec86be8bdb620ae578fa14f7f7542c18ef95ac6efa3d27
+DIST hpacucli-9.40-12.0.i386.rpm 6824495 SHA256 bc0078f6e2f8e64eb5e3ce26527e08134669ca507a84c36bbe4266ac3685fa9e SHA512 93ae6c170e14e187ce33522a7f7d4e0970f8443758aa76f4eb72c6b818eeeff7720e9869473b62e4b088ced0bb9a198afecf7ff62da2fc73e67208f5cc680158 WHIRLPOOL 7c5942fb85a778c79ea78343602ccd35d2fb5a271ff17164ab157e59ad6fb8aacaa9b6d4fa122a7537bf43d54ea314491f0cc91b99681ca51581b8942a18b96c
+DIST hpacucli-9.40-12.0.x86_64.rpm 6800521 SHA256 94c51105fed0a34e2a8896720ce8234af23fcffb11f0a6b7e56eb30c6e803cb8 SHA512 a7de22febc0261bdb60a5fee250d42455dc0ac152541f34eb91df81b4e57472ae96ee2972e3a4c44ff409e3d1c2b364054818c7ea610c3b2a20c913a51df2ed4 WHIRLPOOL 7d9c55d10a3953b6152e2b1937817ed8b129948229bfd4bf87f7fbd9dddece0d786fe390ca6ccc9cfd4356c91ee62484484e2dc153050365a324e3c54853c939
diff --git a/sys-block/hpacucli/files/hpacucli-wrapper-r1 b/sys-block/hpacucli/files/hpacucli-wrapper-r1
new file mode 100644
index 000000000000..fd2cec5cdf83
--- /dev/null
+++ b/sys-block/hpacucli/files/hpacucli-wrapper-r1
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+cmd="$(basename "$0")"
+
+HPACUCLI_BASEDIR="/opt/hp/hpacucli"
+HPACUCLI_LOCKDIR="/run/lock/$cmd"
+HPACUCLI_LOCK="${HPACUCLI_LOCKDIR}/CPQACU_MUTEX"
+HPACUCLI_BIN="${HPACUCLI_BASEDIR}/$cmd.bin"
+
+if pgrep -x "$cmd.bin"; then
+ echo "Another instance of $cmd is running! Stop it first."
+ exit 1
+fi
+
+if ! [ -f "${HPACUCLI_LOCK}" ]; then
+ mkdir -p -m 700 "${HPACUCLI_LOCKDIR}"
+ touch "${HPACUCLI_LOCK}"
+fi
+
+export LD_LIBRARY_PATH="${HPACUCLI_BASEDIR}"
+export ACUXE_LOCK_FILES_DIR="${HPACUCLI_LOCKDIR}/"
+"${HPACUCLI_BIN}" "${@}"
diff --git a/sys-block/hpacucli/hpacucli-9.40.12.0.ebuild b/sys-block/hpacucli/hpacucli-9.40.12.0.ebuild
new file mode 100644
index 000000000000..6e0d28ca8cda
--- /dev/null
+++ b/sys-block/hpacucli/hpacucli-9.40.12.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit rpm versionator pax-utils
+
+MY_PV=$(replace_version_separator 2 '-')
+
+SRC_URI_BASE="ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux"
+AMD64_PID="1257348637"
+AMD64_VID="80070"
+X86_PID="414707558"
+X86_VID="80071"
+
+DESCRIPTION="HP Array Configuration Utility Command Line Interface (HPACUCLI, formerly CPQACUXE)"
+HOMEPAGE="http://h18000.www1.hp.com/products/servers/linux/documentation.html"
+SRC_URI="
+ amd64? ( ${SRC_URI_BASE}/p${AMD64_PID}/v${AMD64_VID}/${PN}-${MY_PV}.x86_64.rpm )
+ x86? ( ${SRC_URI_BASE}/p${X86_PID}/v${X86_VID}/${PN}-${MY_PV}.i386.rpm )"
+
+LICENSE="hp-proliant-essentials"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="sys-apps/coreutils
+ sys-process/procps
+ >=sys-apps/util-linux-2.20.1"
+
+S="${WORKDIR}"
+
+HPACUCLI_BASEDIR="/opt/hp/hpacucli"
+QA_PREBUILT="${HPACUCLI_BASEDIR:1}/*"
+QA_EXECSTACK="${HPACUCLI_BASEDIR:1}/libcpqimgr*.so"
+
+src_install() {
+ local MY_S="${S}/opt/compaq/${PN}/bld"
+
+ newsbin "${FILESDIR}"/"${PN}-wrapper-r1" hpacucli
+ dosym /usr/sbin/hpacucli /usr/sbin/hpacuscripting
+
+ exeinto "${HPACUCLI_BASEDIR}"
+ for bin in "${MY_S}"/.hp*; do
+ local basename=$(basename "${bin}")
+ newexe "${bin}" ${basename#.}.bin
+ done
+
+ insinto "${HPACUCLI_BASEDIR}"
+ doins "${MY_S}"/*.so
+
+ dodoc "${MY_S}"/*.txt
+ doman "${S}"/usr/man/man*/*
+
+ cat <<-EOF >"${T}"/45${PN}
+ LDPATH=${HPACUCLI_BASEDIR}
+ EOF
+ doenvd "${T}"/45${PN}
+
+ pax-mark m "${D}opt/hp/hpacucli/"*
+}