diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2008-04-23 21:32:43 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2008-04-23 21:32:43 +0000 |
commit | e638d4dd845e4467542e17a098134ad6c25499e1 (patch) | |
tree | 70acdd3f2c639ecee573d437e9643547b0eb4391 /sys-block/megarc | |
parent | x86 stable and remove old, bug #218563 (diff) | |
download | gentoo-2-e638d4dd845e4467542e17a098134ad6c25499e1.tar.gz gentoo-2-e638d4dd845e4467542e17a098134ad6c25499e1.tar.bz2 gentoo-2-e638d4dd845e4467542e17a098134ad6c25499e1.zip |
initial import
(Portage version: 2.1.5_rc4)
Diffstat (limited to 'sys-block/megarc')
-rw-r--r-- | sys-block/megarc/ChangeLog | 10 | ||||
-rw-r--r-- | sys-block/megarc/Manifest | 5 | ||||
-rwxr-xr-x | sys-block/megarc/files/megarc | 43 | ||||
-rw-r--r-- | sys-block/megarc/megarc-1.11.ebuild | 33 | ||||
-rw-r--r-- | sys-block/megarc/metadata.xml | 10 |
5 files changed, 101 insertions, 0 deletions
diff --git a/sys-block/megarc/ChangeLog b/sys-block/megarc/ChangeLog new file mode 100644 index 000000000000..ecad2b96ece3 --- /dev/null +++ b/sys-block/megarc/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-block/megarc +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/megarc/ChangeLog,v 1.1 2008/04/23 21:32:43 wschlich Exp $ + +*megarc-1.11 (23 Apr 2008) + + 23 Apr 2008; Wolfram Schlich <wschlich@gentoo.org> +files/megarc, + +metadata.xml, +megarc-1.11.ebuild: + initial import + diff --git a/sys-block/megarc/Manifest b/sys-block/megarc/Manifest new file mode 100644 index 000000000000..25a586d94d40 --- /dev/null +++ b/sys-block/megarc/Manifest @@ -0,0 +1,5 @@ +AUX megarc 1289 RMD160 d03cc340430940115bf67dbd4a71d326445cb2c8 SHA1 917ef4cdaefd9ee0ccb33418e34d4c27dfac68a4 SHA256 8618825e0297d0f73b1b7abf012ae1bf20dd517eb1c5269365e560e37e722fc1 +DIST ut_linux_megarc_1.11.zip 301703 RMD160 fdec18302dc802b0d594586095f2e355af5c1a50 SHA1 8c5751e8ca069ab8ee1fc8f1b8d8eac04f8c7283 SHA256 bba008e40c66b74a87e3ecf3c068d35ae8f464c332635400096cbb856c33eb4b +EBUILD megarc-1.11.ebuild 838 RMD160 76c1e4d49c89940739fdbace7e0123e8d856ef73 SHA1 33e4281550783d87631add1994d40b80eceae49d SHA256 1cab08c0fd8ec9b2f64598dc54c5cfb1384c3ea40ffe25d6ad7a9ce189934083 +MISC ChangeLog 269 RMD160 482347bc45e0f7548e62777a90b48643b7ab0155 SHA1 1888ca9844eb598ebac8d99b50ba7eb26f993d6c SHA256 dbd5ee47d31400f900c857a38e43dce6d3d94e6c98b4625f2e3ef1efa12e4ccb +MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43 diff --git a/sys-block/megarc/files/megarc b/sys-block/megarc/files/megarc new file mode 100755 index 000000000000..7497b686fe6a --- /dev/null +++ b/sys-block/megarc/files/megarc @@ -0,0 +1,43 @@ +#!/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 + +# Create temporary working directory for megarc +# (as it creates megarc.log in CWD for example) +# and change to it afterwards +megarc_tmpdir=$(mktemp -q -d -t -p /var/tmp megarc.XXXXXX) +if [ -z "${megarc_tmpdir}" ] || [ ! -d "${megarc_tmpdir}" ]; then + echo "ERROR: failed to create temporary megarc working directory" + exit 1 +elif ! cd "${megarc_tmpdir}"; then + echo "ERROR: failed to change to temporary megarc working directory '${megarc_tmpdir}'" + exit 1 +fi + +# Start the real megarc binary +"${0##*/}/megarc.bin" "${@}" + +# Cleanup +echo "Removing temporary megarc working directory" +rm -rf "${megarc_tmpdir}" + +# That's all +echo "Finished. Have a nice day." diff --git a/sys-block/megarc/megarc-1.11.ebuild b/sys-block/megarc/megarc-1.11.ebuild new file mode 100644 index 000000000000..daef07dfe729 --- /dev/null +++ b/sys-block/megarc/megarc-1.11.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/megarc/megarc-1.11.ebuild,v 1.1 2008/04/23 21:32:43 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/megaconf/ut_linux_${PN}_${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="doc" + +DEPEND="app-arch/unzip + doc? ( app-text/antiword )" + +RESTRICT="strip mirror test" + +S="${WORKDIR}" + +src_compile() { + useq doc && antiword ut_linux.doc > ${PN}-manual.txt +} + +src_install() { + useq doc && dodoc ${PN}-manual.txt + newdoc ut_linux_${PN}_${PV}.txt ${PN}-release-${PV}.txt + dosbin "${FILESDIR}"/megarc megarc.bin +} diff --git a/sys-block/megarc/metadata.xml b/sys-block/megarc/metadata.xml new file mode 100644 index 000000000000..a7162e9b7104 --- /dev/null +++ b/sys-block/megarc/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> |