diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-block/hpacucli |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-block/hpacucli')
-rw-r--r-- | sys-block/hpacucli/Manifest | 11 | ||||
-rw-r--r-- | sys-block/hpacucli/files/hpacucli-wrapper | 22 | ||||
-rw-r--r-- | sys-block/hpacucli/files/hpacucli-wrapper-r1 | 22 | ||||
-rw-r--r-- | sys-block/hpacucli/hpacucli-9.30.15.0.ebuild | 68 | ||||
-rw-r--r-- | sys-block/hpacucli/hpacucli-9.40.12.0.ebuild | 62 | ||||
-rw-r--r-- | sys-block/hpacucli/metadata.xml | 8 |
6 files changed, 193 insertions, 0 deletions
diff --git a/sys-block/hpacucli/Manifest b/sys-block/hpacucli/Manifest new file mode 100644 index 000000000000..03f94c3a3b0d --- /dev/null +++ b/sys-block/hpacucli/Manifest @@ -0,0 +1,11 @@ +AUX hpacucli-wrapper 577 SHA256 80effb1ababa457af9237f23c40085a5e0f8f07b13a9e739ba6ca54586eda68b SHA512 d7493b62f57b78f69218f3cc144b9ae7a91a7ddf7e0d63f03cc447a40f4468940f319493a6e82873d9a7b34adddaa701f8cc67aed0c8b05b5f7a1d5496e876af WHIRLPOOL 05d77428f59827c72dbeb1c155a597c475530322a7a6ad495aaddb6b4e2027e56d6fdee6a935ce2e2a046610b0cda4fbe64d5082017b722fda37e565412215cc +AUX hpacucli-wrapper-r1 541 SHA256 e979a46309665d24d1a198af4074e43750aa1bbe74b5cd1ea19b403332722969 SHA512 8b5a96eaa53fcf8b0f118d34d8bc3e94c67a2dbef7b5cdd79fa10c74b42ac9c9ae1b41f530d47d8130cdedf1a5c755fcde42223739ca16dc30498d8d99405a02 WHIRLPOOL c5bd5508ce2a419d3f69082786f60c8fd42f318de140477824a1bc99afb2745d58d35f88088a62627517e3aa1d055199729fcb3d89ffab29e9b283d031dff9e2 +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 +EBUILD hpacucli-9.30.15.0.ebuild 1623 SHA256 47b8b26554e819315d1df0d9bf37844a71d64d93bacdad0240289e842220180f SHA512 bee8494e334c68dbedf9b56068b2c1391c21f2a518697ff75a3eaa89fdc14efc5819328dd3b2eb03a560c80ee4d7ba715dce78d663ea20c3bc6e80e1f872d538 WHIRLPOOL 983b0c744ac10f646385cb0bf8484ba479e23f9d1c2933bc76ddce825f329f6a7b2e541dada03532c8c7e945fdba465e4239aabf99d19fa6ab6c9fd66d931807 +EBUILD hpacucli-9.40.12.0.ebuild 1526 SHA256 5370f8003ce80d137af369e02f3dde6dee920800183db216ec4351eec586c331 SHA512 5a1ba2d4e635abde2bd27f9ac8f27dd1d4bc21df25cc37546627f031c086ad70c0d6d8b7cada4895181153c1bae3572f8a0bc7cd88a6e5b624788aedfa288569 WHIRLPOOL 8acb16dfc152e8abf6ef9d9c0dccecfd1303160824164ee626733e32ac35ddc834ccf885647047526a02006626536fcf14239567de4271b3cb90372cc4e489c4 +MISC ChangeLog 2757 SHA256 205294bb48dac47408d91062578767292421d5ff07c9e47e1a4abae1b4af6fab SHA512 17fc9531f96983132f7783161f6d5d4f1e5cacf0414cbb6a6e6086d2a036ff8f62f42c7cc25aa00fd6f32dce5c36f857d099c0aac5ae3076638883faf8726ef1 WHIRLPOOL 7b8b44fded4bc4575bd2ab06b2ff5d674450c11788b509f9d781ce0874790fe24dd9a0644de1a09944465250edf7857d19b4cfe4cf35cb478807ca5c3e67ad34 +MISC ChangeLog-2015 1759 SHA256 fbe2ab68d0b8ebea6ad3ae09864ab189e9c625b9f6e6c560d0323b8c9f51c830 SHA512 68fe184efe20940ad5749d162c2ea794b2c6452a50e96f645bf68685ff046f8dc47e79633014690fca6bd4e1f614bd0844cce7dfd70738192feca9a4e1f4563c WHIRLPOOL 35ef6ac21cee4c1f581a6646ec3b544429cf309d78993e26a47aa43e15cc2ca94b8887af441bf44e6c1bbe5711ccd95539d76d1e719c840b4fd9b5c90c0696a1 +MISC metadata.xml 251 SHA256 57392d56dc3642e88d87f162c5309d9b913a94aaf87247f09d002a6e28ddb24e SHA512 46942a98ef7e36470d1169a5bc8839d25603e33c143cd36327a8a85fc14cb6bfb32247eb7608d92cc58a06cc8eef5bd64d6ec2d21e69a88632e4b936598aa772 WHIRLPOOL ecd6a64abe1bc22a4d1a7ac61cc425e6e33b6f376b7e243de4c8fb86bdcb814022a0de881c76f5130a3e62f8ee129337a58c224e81d501771df5c03dc4e929f3 diff --git a/sys-block/hpacucli/files/hpacucli-wrapper b/sys-block/hpacucli/files/hpacucli-wrapper new file mode 100644 index 000000000000..c60c205f9cfc --- /dev/null +++ b/sys-block/hpacucli/files/hpacucli-wrapper @@ -0,0 +1,22 @@ +#!/bin/sh + +cmd="$(basename "$0")" + +HPACUCLI_BASEDIR="/opt/hp/hpacucli" +HPACUCLI_LOCKDIR="/var/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}/" +exec setarch `uname -m` --uname-2.6 "${HPACUCLI_BIN}" "${@}" 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.30.15.0.ebuild b/sys-block/hpacucli/hpacucli-9.30.15.0.ebuild new file mode 100644 index 000000000000..d07b296b3ed6 --- /dev/null +++ b/sys-block/hpacucli/hpacucli-9.30.15.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +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="77370" +X86_PID="414707558" +X86_VID="77371" + +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}/*" + +src_install() { + local MY_S="${S}/opt/compaq/${PN}/bld" + + newsbin "${FILESDIR}"/"${PN}-wrapper" 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/"* +} + +pkg_postinst() { + elog + elog "For more information regarding this utility, please read" + elog "/usr/share/doc/${P}/${PN}-${MY_PV}.noarch.txt" + elog +} 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..3420767da1c3 --- /dev/null +++ b/sys-block/hpacucli/hpacucli-9.40.12.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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/"* +} diff --git a/sys-block/hpacucli/metadata.xml b/sys-block/hpacucli/metadata.xml new file mode 100644 index 000000000000..a32d600f949d --- /dev/null +++ b/sys-block/hpacucli/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>whissi@gentoo.org</email> + <name>Thomas Deutschmann</name> + </maintainer> +</pkgmetadata> |