diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2014-07-14 00:52:23 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2014-07-14 00:52:23 +0000 |
commit | d4ca18be2646d3252d62834a7d95bfbebff385e5 (patch) | |
tree | 1fa22c8c810107065fad31f3001e0699faab6df2 /sys-block | |
parent | Adopt a package. (diff) | |
download | gentoo-2-d4ca18be2646d3252d62834a7d95bfbebff385e5.tar.gz gentoo-2-d4ca18be2646d3252d62834a7d95bfbebff385e5.tar.bz2 gentoo-2-d4ca18be2646d3252d62834a7d95bfbebff385e5.zip |
Resurrect megactl for infra, as we want megasasctl; fixes in the next commit.
(Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/megactl/ChangeLog | 22 | ||||
-rw-r--r-- | sys-block/megactl/files/megactl-0.4.1-Makefile.patch | 26 | ||||
-rw-r--r-- | sys-block/megactl/files/megactl-0.4.1.patch | 21 | ||||
-rw-r--r-- | sys-block/megactl/megactl-0.4.1-r1.ebuild | 35 | ||||
-rw-r--r-- | sys-block/megactl/metadata.xml | 11 |
5 files changed, 115 insertions, 0 deletions
diff --git a/sys-block/megactl/ChangeLog b/sys-block/megactl/ChangeLog new file mode 100644 index 000000000000..5e423483a413 --- /dev/null +++ b/sys-block/megactl/ChangeLog @@ -0,0 +1,22 @@ +# ChangeLog for sys-block/megactl +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/megactl/ChangeLog,v 1.6 2014/07/14 00:52:23 robbat2 Exp $ + +*megactl-0.4.1-r1 (21 Nov 2009) + + 21 Nov 2009; Wolfram Schlich <wschlich@gentoo.org> + +files/megactl-0.4.1-Makefile.patch, +megactl-0.4.1-r1.ebuild: + fix bug #218606 + + 28 May 2008; Markus Meier <maekke@gentoo.org> megactl-0.4.1.ebuild: + add ~amd64, bug #218606 + + 13 Feb 2008; Wolfram Schlich <wschlich@gentoo.org> megactl-0.4.1.ebuild: + extend DESCRIPTION + +*megactl-0.4.1 (10 Feb 2008) + + 10 Feb 2008; Wolfram Schlich <wschlich@gentoo.org> + +files/megactl-0.4.1.patch, +metadata.xml, +megactl-0.4.1.ebuild: + initial import + diff --git a/sys-block/megactl/files/megactl-0.4.1-Makefile.patch b/sys-block/megactl/files/megactl-0.4.1-Makefile.patch new file mode 100644 index 000000000000..f1ee2f9bb2a4 --- /dev/null +++ b/sys-block/megactl/files/megactl-0.4.1-Makefile.patch @@ -0,0 +1,26 @@ +diff -urN megactl-0.4.1.orig/src/Makefile megactl-0.4.1/src/Makefile +--- megactl-0.4.1.orig/src/Makefile 2007-08-21 09:19:53.000000000 +0200 ++++ megactl-0.4.1/src/Makefile 2009-11-21 12:30:44.242501898 +0100 +@@ -1,11 +1,17 @@ + +-SRCS= megactl.c adapter.c megaioctl.c megatrace.c callinfo.c dumpbytes.c logpage.c ntrim.c ++SRCS= megactl.c adapter.c megaioctl.c callinfo.c dumpbytes.c logpage.c ntrim.c + INC= -I./schily -Iincludes-hack + HDRS= mega.h adapter.h megaioctl.h callinfo.h logpage.h dumpbytes.h +-ARCH= -m32 +-CFLAGS= -g -Wall $(INC) $(ARCH) +-LDFLAGS= -g $(ARCH) +-PROGRAMS= megactl megasasctl megatrace ++ARCH?= -m32 ++CFLAGS?= -g -Wall ++CFLAGS+= $(INC) $(ARCH) ++LDFLAGS?= -g ++LDFLAGS+= $(ARCH) ++PROGRAMS= megactl megasasctl ++ifeq ($(ARCH),-m32) ++PROGRAMS+= megatrace ++SRCS+= megatrace.c ++endif + + all: $(PROGRAMS) + diff --git a/sys-block/megactl/files/megactl-0.4.1.patch b/sys-block/megactl/files/megactl-0.4.1.patch new file mode 100644 index 000000000000..3d857c9c1c57 --- /dev/null +++ b/sys-block/megactl/files/megactl-0.4.1.patch @@ -0,0 +1,21 @@ +diff -urN megactl-0.4.1.orig/src/megatrace.c megactl-0.4.1/src/megatrace.c +--- megactl-0.4.1.orig/src/megatrace.c 2007-08-21 09:19:53.000000000 +0200 ++++ megactl-0.4.1/src/megatrace.c 2008-02-10 21:27:24.416919438 +0100 +@@ -49,7 +49,7 @@ + #include <signal.h> + #include <sys/ptrace.h> + #include <sys/wait.h> +-#include <asm/user.h> ++#include <sys/user.h> + #include <sys/syscall.h> + #include <sys/ioctl.h> + #include <sys/time.h> +@@ -250,7 +250,7 @@ + len = sizeof buf; + + if (printregs) +- fprintf (stderr, " ebx=%08lx ecx=%08lx edx=%08lx esi=%08lx edi=%08lx ebp=%08lx eax=%08lx ds=%04x __ds=%04x es=%04x __es=%04x fs=%04x __fs=%04x gs=%04x __gs=%04x orig_eax=%08lx eip=%08lx cs=%04x __cs=%04x eflags=%08lx esp=%08lx ss=%04x __ss=%04x\n", r.ebx, r.ecx, r.edx, r.esi, r.edi, r.ebp, r.eax, r.ds, r.__ds, r.es, r.__es, r.fs, r.__fs, r.gs, r.__gs, r.orig_eax, r.eip, r.cs, r.__cs, r.eflags, r.esp, r.ss, r.__ss); ++ fprintf (stderr, " ebx=%08lx ecx=%08lx edx=%08lx esi=%08lx edi=%08lx ebp=%08lx eax=%08lx xds=%08lx xes=%08lx xfs=%08lx xgs=%08lx orig_eax=%08lx eip=%08lx xcs=%08lx eflags=%08lx esp=%08lx xss=%08lx\n", r.ebx, r.ecx, r.edx, r.esi, r.edi, r.ebp, r.eax, r.xds, r.xes, r.xfs, r.xgs, r.orig_eax, r.eip, r.xcs, r.eflags, r.esp, r.xss); + + copyout (buf, len, pid, r.edx); + diff --git a/sys-block/megactl/megactl-0.4.1-r1.ebuild b/sys-block/megactl/megactl-0.4.1-r1.ebuild new file mode 100644 index 000000000000..cddafa27ccea --- /dev/null +++ b/sys-block/megactl/megactl-0.4.1-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/megactl/megactl-0.4.1-r1.ebuild,v 1.3 2014/07/14 00:52:23 robbat2 Exp $ + +EAPI=2 + +inherit eutils + +IUSE="" +DESCRIPTION="LSI MegaRAID control utility" +HOMEPAGE="http://sourceforge.net/projects/megactl/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +src_prepare() { + epatch "${FILESDIR}"/${P}.patch + epatch "${FILESDIR}"/${P}-Makefile.patch +} + +src_compile() { + cd src + use x86 && MY_MAKEOPTS="ARCH=-m32" + use amd64 && MY_MAKEOPTS="ARCH=-m64" + emake ${MY_MAKEOPTS} || die "make failed" +} + +src_install() { + cd src + dosbin megactl megasasctl + use x86 && dosbin megatrace + use amd64 && ewarn "megatrace was not installed because it does not compile on amd64" + dodoc megarpt megasasrpt ../README +} diff --git a/sys-block/megactl/metadata.xml b/sys-block/megactl/metadata.xml new file mode 100644 index 000000000000..7cef94fb7225 --- /dev/null +++ b/sys-block/megactl/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- used by infra, please do not non-maintainer drop --> + <herd>sysadmin</herd> +<longdescription> +This project is a small collection of programs for examining configuration and +status of LSI megaraid adapters, especially Dell PERC RAID adapters, and +attached storage devices. +</longdescription> +</pkgmetadata> |