summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2008-05-24 10:41:58 +0000
committerWolfram Schlich <wschlich@gentoo.org>2008-05-24 10:41:58 +0000
commite146a5c36c419aa08a3416686e80fc87e0d2c00d (patch)
treedc7c3550204a10d69870f28fa90a2685f5b58175 /sys-block/afacli
parentold (diff)
downloadgentoo-2-e146a5c36c419aa08a3416686e80fc87e0d2c00d.tar.gz
gentoo-2-e146a5c36c419aa08a3416686e80fc87e0d2c00d.tar.bz2
gentoo-2-e146a5c36c419aa08a3416686e80fc87e0d2c00d.zip
initial import
(Portage version: 2.1.5_rc4)
Diffstat (limited to 'sys-block/afacli')
-rw-r--r--sys-block/afacli/ChangeLog10
-rw-r--r--sys-block/afacli/Manifest5
-rw-r--r--sys-block/afacli/afacli-4.1.ebuild38
-rwxr-xr-xsys-block/afacli/files/afacli24
-rw-r--r--sys-block/afacli/metadata.xml10
5 files changed, 87 insertions, 0 deletions
diff --git a/sys-block/afacli/ChangeLog b/sys-block/afacli/ChangeLog
new file mode 100644
index 000000000000..90c07680320c
--- /dev/null
+++ b/sys-block/afacli/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-block/afacli
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/afacli/ChangeLog,v 1.1 2008/05/24 10:41:57 wschlich Exp $
+
+*afacli-4.1 (24 May 2008)
+
+ 24 May 2008; Wolfram Schlich <wschlich@gentoo.org> +files/afacli,
+ +metadata.xml, +afacli-4.1.ebuild:
+ initial import
+
diff --git a/sys-block/afacli/Manifest b/sys-block/afacli/Manifest
new file mode 100644
index 000000000000..00f120760ac4
--- /dev/null
+++ b/sys-block/afacli/Manifest
@@ -0,0 +1,5 @@
+AUX afacli 668 RMD160 5e968a65c4823c68dfe7fa0cd268c8087a5d5926 SHA1 a5ad1c929935ebb357d710160314209f7a610b40 SHA256 5c58191951e78d21aefb5ede6ea93d0bec7d0a066f62f65c90a05e33d8c2fcc6
+DIST afa-apps-snmp.2807420-A04.tar.gz 966308 RMD160 ecb2b31ac34bf6e268244be3a4396322ef96fc91 SHA1 95b9570677550c74b205e3ad2247218404609852 SHA256 0b7abd0308e8cff6824b47e435e81579f2464ddc5fb9a87d478eb87778176fd2
+EBUILD afacli-4.1.ebuild 841 RMD160 d2c37584fbdfc5c4a015066dc53691b4d36e4535 SHA1 a62d0d5e28f7f1fcdcd43c319aa91b4929ea6009 SHA256 7d82841da7f4c39d76db1ac1fdd59e973e63c51d208cafa6b3e2dd7ce2143259
+MISC ChangeLog 267 RMD160 07c43a63e8d470b542b7f114f688e7b1482a7cfe SHA1 4d319f302672d6550c70516e8953d89c6c15921c SHA256 07c5425145ba22eb4af8ee887f4a9060d6fd44715afe35294e462daa0648dd83
+MISC metadata.xml 300 RMD160 3b9c1cd628f9d7ac94b68543ec737d5c2381a47e SHA1 33c5efd31a8aa789118535b921e211ffb5023ac3 SHA256 bc07a9aecce5770d1ace9af0a6c6af8ff6c7b16eb5e7947a1b178d1970855e43
diff --git a/sys-block/afacli/afacli-4.1.ebuild b/sys-block/afacli/afacli-4.1.ebuild
new file mode 100644
index 000000000000..eb16390b8435
--- /dev/null
+++ b/sys-block/afacli/afacli-4.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/afacli/afacli-4.1.ebuild,v 1.1 2008/05/24 10:41:57 wschlich Exp $
+
+inherit rpm
+
+MY_PV=${PV}-0
+DESCRIPTION="Dell AACRAID-based PERC RAID controller management tool"
+HOMEPAGE="http://linux.dell.com/"
+SRC_URI="ftp://ftp.dell.com/scsi-raid/afa-apps-snmp.2807420-A04.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"
+
+RDEPEND="sys-libs/lib-compat"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+ rpm_unpack "${S}"/afaapps-${MY_PV}.i386.rpm || die "failed to unpack RPM"
+}
+
+src_compile() {
+ echo "Nothing to compile."
+}
+
+src_install() {
+ dosbin "${FILESDIR}"/afacli
+ newsbin usr/sbin/afacli afacli.bin
+ dodoc usr/sbin/getcfg.afa
+}
diff --git a/sys-block/afacli/files/afacli b/sys-block/afacli/files/afacli
new file mode 100755
index 000000000000..5596094228c5
--- /dev/null
+++ b/sys-block/afacli/files/afacli
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# Get the major number of the aac ioctl device node
+aacdev_major=$(egrep '[[:space:]]aac$' /proc/devices 2>/dev/null | awk '{print $1}' 2>/dev/null)
+aacdev_node=/dev/afa0
+
+# AACRAID device node major number found
+if [ -z "${aacdev_major}" ]; then
+ echo "ERROR: failed to determine device node major number"
+ exit 1
+fi
+if [ -e "${aacdev_node}" ]; then
+ if ! rm -f "${aacdev_node}"; then
+ echo "ERROR: failed to remove existing device node ${aacdev_node}"
+ exit 1
+ fi
+fi
+if ! mknod "${aacdev_node}" c "${aacdev_major}" 0; then
+ echo "ERROR: failed to create device node ${aacdev_node}"
+ exit 1
+fi
+
+# Start the real afacli binary
+"${0%/*}/afacli.bin" "${@}"
diff --git a/sys-block/afacli/metadata.xml b/sys-block/afacli/metadata.xml
new file mode 100644
index 000000000000..a7162e9b7104
--- /dev/null
+++ b/sys-block/afacli/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>