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
commit38a3ae0cd4a4f5abd378785faa820e3aa1c8678e (patch)
tree00dfe8f551892008d6282078a26fe76977dd3f83 /sys-block/hpacucli
parentp.mask =sys-libs/ncurses-5.7 (proxy commit for Cardoe) (diff)
downloadgentoo-2-38a3ae0cd4a4f5abd378785faa820e3aa1c8678e.tar.gz
gentoo-2-38a3ae0cd4a4f5abd378785faa820e3aa1c8678e.tar.bz2
gentoo-2-38a3ae0cd4a4f5abd378785faa820e3aa1c8678e.zip
initial import
(Portage version: 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..5b2af2f56e5d
--- /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 1558 RMD160 0d0d070f968889b0ca5cfcbf1a9f01aaec364071 SHA1 ecf2ff5096326fb14ff3c579bf2134f13832f51a SHA256 497344da688a3e829bf44ed4ca1705b2105789dcbe08c89caf32ec9c1b0d8980
+MISC ChangeLog 281 RMD160 a72934d51ce5fa7ab5e18b27059e2757eaf57b3c SHA1 bee0a8f9d669175ea8fad864cc07f283f49766bc SHA256 9af11635bb6eac07c1792f441b63b028bcd267af4e4963f13624490ab40ef5f1
+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>