diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2014-07-14 00:52:28 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2014-07-14 00:52:28 +0000 |
commit | 6a91eb07bf6449155d9019e46536cbd5670a99eb (patch) | |
tree | bc7809d9a840e86fe5436187020acac1733be7e9 /sys-block | |
parent | Adopt a package. (diff) | |
download | historical-6a91eb07bf6449155d9019e46536cbd5670a99eb.tar.gz historical-6a91eb07bf6449155d9019e46536cbd5670a99eb.tar.bz2 historical-6a91eb07bf6449155d9019e46536cbd5670a99eb.zip |
Resurrect megactl for infra, as we want megasasctl; fixes in the next commit.
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/megactl/ChangeLog | 22 | ||||
-rw-r--r-- | sys-block/megactl/Manifest | 6 | ||||
-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 |
6 files changed, 121 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/Manifest b/sys-block/megactl/Manifest new file mode 100644 index 000000000000..f2e5432f598d --- /dev/null +++ b/sys-block/megactl/Manifest @@ -0,0 +1,6 @@ +AUX megactl-0.4.1-Makefile.patch 829 SHA256 adc9b926c9914bdf5f4fce787cd7f20fe764df9f5858398873bdf19ea74a8020 SHA512 1e458f68149fe4d1bfd9f77cb76adcfb3202f05b7c363ff1a73803db208493f901de377b65938c043245fd503410905d03b06810eeef6e2fa0039759797497a7 WHIRLPOOL aa1e959b55cda9d65b3795ee58b602a085443d68aa0943cee9958e6bc0588e5dc5aa54f1f37ceb704043919134054f9a4d64cecf17b10e6c5614ddefdc146a27 +AUX megactl-0.4.1.patch 1297 SHA256 7f57c47b137f8774aff79fc9b192e11b4227e620a13c4c7ed3e2a1475f927eb4 SHA512 6992e585bc3a8528d45aea9f57de296c67323489d74b48f2365b6052e51a525ac5a118d652f1c2ed924cf92424ef16de8f08ff146930f25a3acd14941cab3faf WHIRLPOOL 5d7c2c5c2f575683ac57158284a7fa0d9ac8bb04cd4decfa27a667f3334de8621c790a9c2ca5c6e8d44424fde409ec09d7e2f9f015fd971582c3d6e78b05ab5e +DIST megactl-0.4.1.tar.gz 179173 SHA256 d7aee98035c97a1ff098450192f073565c4f2355079763f6dc6202be121720e8 SHA512 65a97f03fbe1c76375d2e16016c1e57c7e4544bfd7185b13a330560819caf48ecad8e9f1feb1d448b45d4f862abf2799868bd357d120019a709088c90b58ac92 WHIRLPOOL 61094c1cec453b5ee4a2e0f72d95d6e0ce0dacb3b6d56f6dca51e13fdd70f969021eb4f39934c29dd6124f1768896076cb495e8a2397bae521bd387db3badf21 +EBUILD megactl-0.4.1-r1.ebuild 893 SHA256 2beaf2276996e76fe09c96698dc262839967f8544f46e0ee67331a3bec7512a4 SHA512 7e6d49d4df7ebbde6a92c74c1d532578897444f7b1957ec6f02c6e946a95fa25d4712fe5688c1c7bbde7f3873bbe0b60b824e5f66466beaaedabe6a660f1f5b7 WHIRLPOOL c24682ecb18838367c50160cbf05d747c39ce00c0736190494a7bc21adba4088adda7e476b35b4d511a5719886d2b6524638ba57b73075877675862feee5ef2d +MISC ChangeLog 741 SHA256 e614d4c4ab1620d6ba529420a536f545a365da63f755df7b26273b2360897c41 SHA512 ffe6fa6374bbf62731df0da2b34b095c17e06098ddce4fcf21e40ef1661f6fddacbe71da5c91a0a00bcc515e59097422e2f6abe3f2ab6fc05666c198add6ff83 WHIRLPOOL 148c1c1f39a71c1e789cfffd03d15e491e938b40c8c72f6911a9b379c11e3a43bb029aae422e90d57adb74754d47f07e10e365b5c2fb25a6831de889610e1ad7 +MISC metadata.xml 436 SHA256 f6c31cd2da8da478fd3bd454b8c55d91d4091d3b3cc06a656c42a35a264dbd57 SHA512 e18822e331ca7bc7d2922bc2a222cd7e4e3dab354321f3d504e17bfb81eb2ab3a6bff946b9de668c7d28ea3bb0cadf3dc5f33c7591fec85a3cf4d87ff612de04 WHIRLPOOL 73ffe4572ba91c37cf5bb0c2e1746d74fedceabe0f73517608cfe38a1e7187f57acc31f95bb2d75a3b9426a60f00ab66694ad24d8fe76ebea6cf767e5a5f17b9 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> |