summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2008-04-24 08:58:03 +0000
committerWolfram Schlich <wschlich@gentoo.org>2008-04-24 08:58:03 +0000
commitf9e90d9b2eb91de1b115e581770cdb5780454808 (patch)
tree87405fad7da6d67d5396fe8a3e9256e4ee02f346 /sys-block
parentCompile with GCC 4.3; patch from Fedora. (bug #217978) (diff)
downloadhistorical-f9e90d9b2eb91de1b115e581770cdb5780454808.tar.gz
historical-f9e90d9b2eb91de1b115e581770cdb5780454808.tar.bz2
historical-f9e90d9b2eb91de1b115e581770cdb5780454808.zip
import new dellmgr wrapper script from megamgr package
Package-Manager: portage-2.1.5_rc4
Diffstat (limited to 'sys-block')
-rw-r--r--sys-block/dellmgr/ChangeLog8
-rw-r--r--sys-block/dellmgr/Manifest4
-rw-r--r--sys-block/dellmgr/dellmgr-5.31-r1.ebuild35
-rwxr-xr-xsys-block/dellmgr/files/dellmgr-r124
4 files changed, 69 insertions, 2 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/Manifest b/sys-block/dellmgr/Manifest
index e1836ececdd2..0c1ebe98c1bf 100644
--- a/sys-block/dellmgr/Manifest
+++ b/sys-block/dellmgr/Manifest
@@ -1,5 +1,7 @@
AUX dellmgr 371 RMD160 12f9b5c08acb41b0d229e2e8a6fbf76689252262 SHA1 8c9e92b6f2b1d3bc0353afb97965e21602b25967 SHA256 2a1cc0fb5a116b44bb6d613726585a152d4f90113724dc7933a30e8268bc0796
+AUX dellmgr-r1 693 RMD160 158736ca285d8c56ef1fffd82552b7e082b82c6d SHA1 fe1b0714c34ee611ff6edbeb5fb43d37bc3c852d SHA256 c685a2f6520156f42603f37318ceaf663f86685b12cd9c3c0545ade974e9f57f
DIST perc-cerc-apps-6.03-A06.tar.gz 860474 RMD160 fd4ac34992195e23c0e9f0e728fc928dec69d48e SHA1 5c623be885690e44260ede13915f358669a32fea SHA256 695c0962cf803ce3dd0f94ccd6e692d7c87fd653307dc884ba6eb3d3c8190bc8
+EBUILD dellmgr-5.31-r1.ebuild 872 RMD160 632ab40b2b48b49bb604d2917766181e3ef0e048 SHA1 7e44395cfc9a8b589f257e4d52629b89e8cf65cc SHA256 78cf9ada26246dfd1b48405f286bd8e7d909aee078bb9aa36276dfcbb351f84a
EBUILD dellmgr-5.31.ebuild 866 RMD160 0b44759dfeaea59aa0060c0cf7ee08851b5fbbfe SHA1 7f91023bdeeaa3c236de42a4c1c288779cf614e8 SHA256 4220eb483bb84f58fdaa56e892bbb5934c1dd5edd89a89dc89dc1c1dcd3d205f
-MISC ChangeLog 349 RMD160 2bb3d45b64cb6e352316220893278b14f715c4b9 SHA1 6e54f2e669b97bc6cc5a5f80c745c38633f024a3 SHA256 40a85f080afdaae1d4b9738f506f2ebe8ad1317ecb6f9eb616e0d4077c64f659
+MISC ChangeLog 538 RMD160 5cc207f180a2a10e905f84594d137fe9eba62f39 SHA1 6af0e8af2fd168db06b14d0e9089ff70cb12ffa7 SHA256 030c14023e8baa0c56618fbb44e8babba0ad6145e43f20fa9c60dc82037c0bb6
MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43
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" "${@}"