summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2008-12-01 16:12:41 +0000
committerWolfram Schlich <wschlich@gentoo.org>2008-12-01 16:12:41 +0000
commit30d6aba71cb5285940f0f7ca998e00d4c099a99b (patch)
tree6bbf61c8450e1778d706f6d947ed0f68b62483a6
parentadd support for newer kernels (see bug #233295) (diff)
downloadgentoo-2-30d6aba71cb5285940f0f7ca998e00d4c099a99b.tar.gz
gentoo-2-30d6aba71cb5285940f0f7ca998e00d4c099a99b.tar.bz2
gentoo-2-30d6aba71cb5285940f0f7ca998e00d4c099a99b.zip
add support for newer kernels (see bug #233295)
(Portage version: 2.2_rc13/cvs/Linux 2.6.24-gentoo-r5-1 i686)
-rw-r--r--sys-block/megamgr/ChangeLog8
-rwxr-xr-xsys-block/megamgr/files/megamgr-r124
-rw-r--r--sys-block/megamgr/megamgr-5.20-r1.ebuild36
3 files changed, 67 insertions, 1 deletions
diff --git a/sys-block/megamgr/ChangeLog b/sys-block/megamgr/ChangeLog
index 5c2d0a82df29..3b5ac9007297 100644
--- a/sys-block/megamgr/ChangeLog
+++ b/sys-block/megamgr/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-block/megamgr
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-block/megamgr/ChangeLog,v 1.3 2008/07/11 09:10:04 wschlich Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-block/megamgr/ChangeLog,v 1.4 2008/12/01 16:12:40 wschlich Exp $
+
+*megamgr-5.20-r1 (01 Dec 2008)
+
+ 01 Dec 2008; Wolfram Schlich <wschlich@gentoo.org> +files/megamgr-r1,
+ +megamgr-5.20-r1.ebuild:
+ add support for newer kernels (see bug #233295)
11 Jul 2008; Wolfram Schlich <wschlich@gentoo.org> megamgr-5.20.ebuild:
add multilib check
diff --git a/sys-block/megamgr/files/megamgr-r1 b/sys-block/megamgr/files/megamgr-r1
new file mode 100755
index 000000000000..37b129a6dbd2
--- /dev/null
+++ b/sys-block/megamgr/files/megamgr-r1
@@ -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 megamgr binary
+"${0%/*}/megamgr.bin" "${@}"
diff --git a/sys-block/megamgr/megamgr-5.20-r1.ebuild b/sys-block/megamgr/megamgr-5.20-r1.ebuild
new file mode 100644
index 000000000000..c1682f986302
--- /dev/null
+++ b/sys-block/megamgr/megamgr-5.20-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/megamgr/megamgr-5.20-r1.ebuild,v 1.1 2008/12/01 16:12:40 wschlich Exp $
+
+inherit multilib
+
+DESCRIPTION="LSI Logic MegaRAID Text User Interface management tool"
+HOMEPAGE="http://www.lsi.com"
+SRC_URI="http://www.lsi.com/files/support/rsa/utilities/megamgr/ut_linux_${PN##mega}_${PV}.zip"
+
+LICENSE="LSI"
+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=""
+
+DEPEND="app-arch/unzip"
+
+RESTRICT="strip mirror test"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ use amd64 && { has_multilib_profile || die "needs multilib profile on amd64"; }
+}
+
+src_compile() {
+ echo "Nothing to compile."
+}
+
+src_install() {
+ newdoc ut_linux_${PN##mega}_${PV}.txt ${PN}-release-${PV}.txt
+ newsbin "${FILESDIR}"/megamgr-r1 megamgr
+ dosbin megamgr.bin
+}