summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2008-04-24 08:39:40 +0000
committerWolfram Schlich <wschlich@gentoo.org>2008-04-24 08:39:40 +0000
commit823f52d982aedc3d752cee9ea3ebad39bb09f05f (patch)
tree9236e2f7707b0e2eeecb97ff61c12bec452586f1
parentFix bad numbering of file. (diff)
downloadgentoo-2-823f52d982aedc3d752cee9ea3ebad39bb09f05f.tar.gz
gentoo-2-823f52d982aedc3d752cee9ea3ebad39bb09f05f.tar.bz2
gentoo-2-823f52d982aedc3d752cee9ea3ebad39bb09f05f.zip
initial import
(Portage version: 2.1.5_rc4)
-rw-r--r--sys-block/megamgr/ChangeLog10
-rw-r--r--sys-block/megamgr/Manifest5
-rwxr-xr-xsys-block/megamgr/files/megamgr24
-rw-r--r--sys-block/megamgr/megamgr-5.20.ebuild31
-rw-r--r--sys-block/megamgr/metadata.xml10
5 files changed, 80 insertions, 0 deletions
diff --git a/sys-block/megamgr/ChangeLog b/sys-block/megamgr/ChangeLog
new file mode 100644
index 000000000000..469a03c1e862
--- /dev/null
+++ b/sys-block/megamgr/ChangeLog
@@ -0,0 +1,10 @@
+# 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.1 2008/04/24 08:39:39 wschlich Exp $
+
+*megamgr-5.20 (24 Apr 2008)
+
+ 24 Apr 2008; Wolfram Schlich <wschlich@gentoo.org> +files/megamgr,
+ +metadata.xml, +megamgr-5.20.ebuild:
+ initial import
+
diff --git a/sys-block/megamgr/Manifest b/sys-block/megamgr/Manifest
new file mode 100644
index 000000000000..4c899b54f761
--- /dev/null
+++ b/sys-block/megamgr/Manifest
@@ -0,0 +1,5 @@
+AUX megamgr 693 RMD160 fd00bd129c9633ecf988db3932cf2d271a7a0aea SHA1 9d897dc35e17682a0b6c90b16e85b0e709c6d7ae SHA256 f3777efdc78d8c7368c8146d2459284b3f4dd6a09bd71ab05c35db4e9bc40837
+DIST ut_linux_mgr_5.20.zip 253549 RMD160 f5e099db7c8507350d22a89430a7ab66ca26ab95 SHA1 4bf30a27ffa4a0d2edb7544930a641f18e65d0fb SHA256 e7313ed8f59897f132ffed55ed606f19dc72a5d529e6b647cb157a39f0d79123
+EBUILD megamgr-5.20.ebuild 758 RMD160 bb5b5b8d5fd5939e57e7d790cdda74c589b15f9c SHA1 0403cfbee35aa5b0d067a60f5fba6f7512ef4942 SHA256 aa8a1b2583925fc19656d6bdc8e770e9b3c3f449b016e6c82214f8c813e2ff91
+MISC ChangeLog 273 RMD160 f8a9b8464df90dd9a7a400c082e81764b59c3220 SHA1 08e3eed340b794cf3a3afb10b4e55d45024b04af SHA256 754001f114ddf171e5ec7521e94a0e80df96c2c4d0d66daf93ccb1ab87955df2
+MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43
diff --git a/sys-block/megamgr/files/megamgr b/sys-block/megamgr/files/megamgr
new file mode 100755
index 000000000000..7e9eb5127ac2
--- /dev/null
+++ b/sys-block/megamgr/files/megamgr
@@ -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 megamgr binary
+"${0##*/}/megamgr.bin" "${@}"
diff --git a/sys-block/megamgr/megamgr-5.20.ebuild b/sys-block/megamgr/megamgr-5.20.ebuild
new file mode 100644
index 000000000000..e9f930e8666e
--- /dev/null
+++ b/sys-block/megamgr/megamgr-5.20.ebuild
@@ -0,0 +1,31 @@
+# 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.ebuild,v 1.1 2008/04/24 08:39:39 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}"
+
+src_compile() {
+ echo "Nothing to compile."
+}
+
+src_install() {
+ newdoc ut_linux_${PN##mega}_${PV}.txt ${PN}-release-${PV}.txt
+ dosbin "${FILESDIR}"/megamgr megamgr.bin
+}
diff --git a/sys-block/megamgr/metadata.xml b/sys-block/megamgr/metadata.xml
new file mode 100644
index 000000000000..a7162e9b7104
--- /dev/null
+++ b/sys-block/megamgr/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>