summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2008-11-03 16:02:16 +0000
committerWolfram Schlich <wschlich@gentoo.org>2008-11-03 16:02:16 +0000
commit3f14d7e23e5f38609c0d4ea7be48cc4e4151fb2c (patch)
tree0a9d9daa31a065fb9d94fc52a7afb7c2939ebb0c /sys-block/hpacucli
parentp.mask =sys-libs/ncurses-5.7 (proxy commit for Cardoe) (diff)
downloadhistorical-3f14d7e23e5f38609c0d4ea7be48cc4e4151fb2c.tar.gz
historical-3f14d7e23e5f38609c0d4ea7be48cc4e4151fb2c.tar.bz2
historical-3f14d7e23e5f38609c0d4ea7be48cc4e4151fb2c.zip
initial import
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.24-gentoo-r5-1 i686
Diffstat (limited to 'sys-block/hpacucli')
-rw-r--r--sys-block/hpacucli/ChangeLog10
-rw-r--r--sys-block/hpacucli/Manifest5
-rwxr-xr-xsys-block/hpacucli/files/hpacucli19
-rw-r--r--sys-block/hpacucli/hpacucli-8.10.2.ebuild55
-rw-r--r--sys-block/hpacucli/metadata.xml10
5 files changed, 99 insertions, 0 deletions
diff --git a/sys-block/hpacucli/ChangeLog b/sys-block/hpacucli/ChangeLog
new file mode 100644
index 000000000000..81fd08d773b0
--- /dev/null
+++ b/sys-block/hpacucli/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-block/hpacucli
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/hpacucli/ChangeLog,v 1.1 2008/11/03 16:02:16 wschlich Exp $
+
+*hpacucli-8.10.2 (03 Nov 2008)
+
+ 03 Nov 2008; Wolfram Schlich <wschlich@gentoo.org> +files/hpacucli,
+ +metadata.xml, +hpacucli-8.10.2.ebuild:
+ initial import
+
diff --git a/sys-block/hpacucli/Manifest b/sys-block/hpacucli/Manifest
new file mode 100644
index 000000000000..1eb1e652b402
--- /dev/null
+++ b/sys-block/hpacucli/Manifest
@@ -0,0 +1,5 @@
+AUX hpacucli 544 RMD160 b6d720b1a70a46dc675b2a5c4ec5503fc02c9a81 SHA1 5178270fa1a696663e57fb9ee8093bc9851eb700 SHA256 eba79aac90f454870a2728fa11cd34420935a8910a8b5250ffc8d379424b4495
+DIST hpacucli-8.10-2.noarch.rpm 3099443 RMD160 0b76bc1fbb1c61d3f046e56592c5ffcd5a371c91 SHA1 e16fd48e6dd0a45d8a55f2a5ae50b04ea36ad213 SHA256 5feb2062ad623e39585ba5d317e099453f38b8d45d396e61f481dc9d2c0c6955
+EBUILD hpacucli-8.10.2.ebuild 1663 RMD160 8af313b3fbd0d67305b23753517c7fb9e0361a4d SHA1 4dde9aa31ecd80fafb592fbf6b9606d3231afbb1 SHA256 039fdd8ee59e830103c349cd000ca4650d905e78ac4e23802f80b20b4e0851c2
+MISC ChangeLog 373 RMD160 2e1168cb20159f2984cf82bdb8beb7460eb4ec44 SHA1 02c07282c9941d721ec03c92632379f270cd7df7 SHA256 be5bb718cbaa2b85bd093c73dd109a16e857887129ee61e89e94cb03015fabfb
+MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43
diff --git a/sys-block/hpacucli/files/hpacucli b/sys-block/hpacucli/files/hpacucli
new file mode 100755
index 000000000000..3d127ae7316e
--- /dev/null
+++ b/sys-block/hpacucli/files/hpacucli
@@ -0,0 +1,19 @@
+#!/bin/sh
+HPACUCLI_BASEDIR="/opt/hp/hpacucli"
+HPACUCLI_LOCKDIR="/var/lock/hpacucli"
+HPACUCLI_LOCK="${HPACUCLI_LOCKDIR}/CPQACU_MUTEX"
+HPACUCLI_BIN="${HPACUCLI_BASEDIR}/hpacucli.bin"
+
+if pgrep -x "${HPACUCLI_BIN##*/}"; then
+ echo "Another instance of hpacucli 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 "${HPACUCLI_BIN}" "${@}"
diff --git a/sys-block/hpacucli/hpacucli-8.10.2.ebuild b/sys-block/hpacucli/hpacucli-8.10.2.ebuild
new file mode 100644
index 000000000000..da6735dadbf0
--- /dev/null
+++ b/sys-block/hpacucli/hpacucli-8.10.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/hpacucli/hpacucli-8.10.2.ebuild,v 1.1 2008/11/03 16:02:16 wschlich Exp $
+
+inherit rpm versionator
+
+MY_PV=$(replace_version_separator 2 '-')
+
+SRC_URI_BASE="ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux"
+
+DESCRIPTION="HP Array Configuration Utility Command Line Interface (HPACUCLI, formerly CPQACUXE)"
+HOMEPAGE="http://h18000.www1.hp.com/products/servers/linux/documentation.html"
+SRC_URI="${SRC_URI_BASE}/p414707558/v47111/${PN}-${MY_PV}.noarch.rpm"
+LICENSE="hp-proliant-essentials"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RDEPEND="sys-apps/coreutils
+ sys-process/procps
+ x86? ( sys-libs/lib-compat )
+ amd64? ( app-emulation/emul-linux-x86-compat )"
+SLOT="0"
+RESTRICT="strip"
+S="${WORKDIR}"
+
+HPACUCLI_BASEDIR="/opt/hp/hpacucli"
+HPACUCLI_LOCKDIR="/var/lock/hpacucli"
+
+src_install() {
+ local MY_S="${S}/opt/compaq/${PN}/bld"
+ dosbin "${FILESDIR}"/${PN}
+ exeinto "${HPACUCLI_BASEDIR}"
+ newexe "${MY_S}"/.${PN} ${PN}.bin
+ insinto "${HPACUCLI_BASEDIR}"
+ doins "${MY_S}"/*.so
+ dodoc "${MY_S}/${PN}-${MY_PV}.linux.txt"
+ doman "${S}"/usr/man/man?/*
+ diropts -m0700
+ dodir ${HPACUCLI_LOCKDIR}
+ cat <<-EOF >"${T}"/45${PN}
+ PATH=${HPACUCLI_BASEDIR}
+ ROOTPATH=${HPACUCLI_BASEDIR}
+ LDPATH=${HPACUCLI_BASEDIR}
+ EOF
+ doenvd "${T}"/45${PN} || die "Failed installing env.d file"
+}
+
+pkg_postinst() {
+ if [ "${ROOT}" = "/" ] ; then
+ PATH="${PATH}:/sbin" ldconfig -n "${HPACUCLI_BASEDIR}"
+ fi
+ einfo
+ einfo "For more information regarding this utility, please read"
+ einfo "/usr/share/doc/${P}/${PN}-${MY_PV}.linux.txt"
+ einfo
+}
diff --git a/sys-block/hpacucli/metadata.xml b/sys-block/hpacucli/metadata.xml
new file mode 100644
index 000000000000..a7162e9b7104
--- /dev/null
+++ b/sys-block/hpacucli/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>wschlich@gentoo.org</email>
+ <name>Wolfram Schlich</name>
+ <description>Primary maintainer</description>
+</maintainer>
+</pkgmetadata>