diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2008-12-01 16:04:54 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2008-12-01 16:04:54 +0000 |
commit | 155a0a3b20c99dc013de566e950426582ce81318 (patch) | |
tree | d1242e4154a8bde5860fe489c8da7fb834967f54 /sys-block | |
parent | Marking jhead-2.84-r1 ppc64 for bug 243238 (diff) | |
download | gentoo-2-155a0a3b20c99dc013de566e950426582ce81318.tar.gz gentoo-2-155a0a3b20c99dc013de566e950426582ce81318.tar.bz2 gentoo-2-155a0a3b20c99dc013de566e950426582ce81318.zip |
add support for newer kernels (see bug #233295)
(Portage version: 2.2_rc13/cvs/Linux 2.6.24-gentoo-r5-1 i686)
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/dellmgr/ChangeLog | 8 | ||||
-rw-r--r-- | sys-block/dellmgr/dellmgr-5.32-r1.ebuild | 39 | ||||
-rwxr-xr-x | sys-block/dellmgr/files/dellmgr-r2 | 24 |
3 files changed, 70 insertions, 1 deletions
diff --git a/sys-block/dellmgr/ChangeLog b/sys-block/dellmgr/ChangeLog index 8b7f84b75c1f..e6ef6c1a324c 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.5 2008/07/11 09:04:31 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-block/dellmgr/ChangeLog,v 1.6 2008/12/01 16:04:54 wschlich Exp $ + +*dellmgr-5.32-r1 (01 Dec 2008) + + 01 Dec 2008; Wolfram Schlich <wschlich@gentoo.org> +files/dellmgr-r2, + +dellmgr-5.32-r1.ebuild: + add support for newer kernels (see bug #233295) 11 Jul 2008; Wolfram Schlich <wschlich@gentoo.org> dellmgr-5.32.ebuild: added missing multilib eclass inheritance diff --git a/sys-block/dellmgr/dellmgr-5.32-r1.ebuild b/sys-block/dellmgr/dellmgr-5.32-r1.ebuild new file mode 100644 index 000000000000..6c88c5acf52b --- /dev/null +++ b/sys-block/dellmgr/dellmgr-5.32-r1.ebuild @@ -0,0 +1,39 @@ +# 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.32-r1.ebuild,v 1.1 2008/12/01 16:04:54 wschlich Exp $ + +inherit multilib 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/scsi-raid/perc-apps-A08.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="~amd64 ~x86" +IUSE="" + +RESTRICT="strip mirror test" + +S="${WORKDIR}" + +pkg_setup() { + use amd64 && { has_multilib_profile || die "needs multilib profile on amd64"; } +} + +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() { + newsbin "${FILESDIR}"/dellmgr-r2 dellmgr + dosbin usr/sbin/dellmgr.bin +} diff --git a/sys-block/dellmgr/files/dellmgr-r2 b/sys-block/dellmgr/files/dellmgr-r2 new file mode 100755 index 000000000000..907a1168e37f --- /dev/null +++ b/sys-block/dellmgr/files/dellmgr-r2 @@ -0,0 +1,24 @@ +#!/bin/sh + +# Get the major number of the megadev ioctl device node +megadev_major=$(egrep '[[:space:]]megadev(_legacy)?$' /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" "${@}" |