diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2008-04-24 08:58:03 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2008-04-24 08:58:03 +0000 |
commit | 5e5dd8af8c5c9754abd176af419289d8600d5d8a (patch) | |
tree | 3c35c0cf74564f1353171f9687e9f7eff5c687fe /sys-block/dellmgr | |
parent | Compile with GCC 4.3; patch from Fedora. (bug #217978) (diff) | |
download | gentoo-2-5e5dd8af8c5c9754abd176af419289d8600d5d8a.tar.gz gentoo-2-5e5dd8af8c5c9754abd176af419289d8600d5d8a.tar.bz2 gentoo-2-5e5dd8af8c5c9754abd176af419289d8600d5d8a.zip |
import new dellmgr wrapper script from megamgr package
(Portage version: 2.1.5_rc4)
Diffstat (limited to 'sys-block/dellmgr')
-rw-r--r-- | sys-block/dellmgr/ChangeLog | 8 | ||||
-rw-r--r-- | sys-block/dellmgr/dellmgr-5.31-r1.ebuild | 35 | ||||
-rwxr-xr-x | sys-block/dellmgr/files/dellmgr-r1 | 24 |
3 files changed, 66 insertions, 1 deletions
diff --git a/sys-block/dellmgr/ChangeLog b/sys-block/dellmgr/ChangeLog index 25cd7fa5d50a..9fd023924502 100644 --- a/sys-block/dellmgr/ChangeLog +++ b/sys-block/dellmgr/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-block/dellmgr # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-block/dellmgr/ChangeLog,v 1.1 2008/02/07 19:48:22 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-block/dellmgr/ChangeLog,v 1.2 2008/04/24 08:58:02 wschlich Exp $ + +*dellmgr-5.31-r1 (24 Apr 2008) + + 24 Apr 2008; Wolfram Schlich <wschlich@gentoo.org> +files/dellmgr-r1, + +dellmgr-5.31-r1.ebuild: + import new dellmgr wrapper script from megamgr package *dellmgr-5.31 (07 Feb 2008) diff --git a/sys-block/dellmgr/dellmgr-5.31-r1.ebuild b/sys-block/dellmgr/dellmgr-5.31-r1.ebuild new file mode 100644 index 000000000000..59627a99cb1f --- /dev/null +++ b/sys-block/dellmgr/dellmgr-5.31-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/dellmgr/dellmgr-5.31-r1.ebuild,v 1.1 2008/04/24 08:58:02 wschlich Exp $ + +inherit rpm + +MY_PV=${PV}-0 +DESCRIPTION="Dell PERC 2/3/4 RAID controller management tool" +HOMEPAGE="http://linux.dell.com/" +SRC_URI="http://ftp.us.dell.com/ide/perc-cerc-apps-6.03-A06.tar.gz" + +LICENSE="Dell" +SLOT="0" +# This package can never enter stable, it can't be mirrored and upstream +# can remove the distfiles from their mirror anytime. +KEYWORDS="~x86" +IUSE="" + +RESTRICT="strip mirror test" + +S="${WORKDIR}" + +src_unpack() { + unpack ${A} + rpm_unpack "${S}"/Dellmgr-${MY_PV}.i386.rpm || die "failed to unpack RPM" +} + +src_compile() { + echo "Nothing to compile." +} + +src_install() { + dosbin "${FILESDIR}"/dellmgr-r1 + dosbin usr/sbin/dellmgr.bin +} diff --git a/sys-block/dellmgr/files/dellmgr-r1 b/sys-block/dellmgr/files/dellmgr-r1 new file mode 100755 index 000000000000..6857bc221823 --- /dev/null +++ b/sys-block/dellmgr/files/dellmgr-r1 @@ -0,0 +1,24 @@ +#!/bin/sh + +# Get the major number of the megadev ioctl device node +megadev_major=$(egrep '[[:space:]]megadev$' /proc/devices 2>/dev/null | awk '{print $1}' 2>/dev/null) +megadev_node=/dev/megadev0 + +# MegaRAID device node major number found +if [ -z "${megadev_major}" ]; then + echo "ERROR: failed to determine device node major number" + exit 1 +fi +if [ -e "${megadev_node}" ]; then + if ! rm -f "${megadev_node}"; then + echo "ERROR: failed to remove existing device node ${megadev_node}" + exit 1 + fi +fi +if ! mknod "${megadev_node}" c "${megadev_major}" 0; then + echo "ERROR: failed to create device node ${megadev_node}" + exit 1 +fi + +# Start the real dellmgr binary +"${0##*/}/dellmgr.bin" "${@}" |