summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-block/mpt-status
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-block/mpt-status')
-rw-r--r--sys-block/mpt-status/Manifest2
-rw-r--r--sys-block/mpt-status/files/mpt-status-1.2.0-gentoo.patch51
-rw-r--r--sys-block/mpt-status/metadata.xml7
-rw-r--r--sys-block/mpt-status/mpt-status-1.2.0-r1.ebuild34
4 files changed, 94 insertions, 0 deletions
diff --git a/sys-block/mpt-status/Manifest b/sys-block/mpt-status/Manifest
new file mode 100644
index 000000000000..9ad9b237bb5e
--- /dev/null
+++ b/sys-block/mpt-status/Manifest
@@ -0,0 +1,2 @@
+DIST mpt-status-1.2.0-linux-sources.tar.bz2 33155 SHA256 a57a52aaf5c7f9c4303dbaac231421965c1c48df48e61821c79e3e9584526c10 SHA512 f5155dba7125e658d2a4a500e0ca6cddbee0102f4e8b19908b9a1ea53ece06af8a97583efaca737486c67f8caefb08318efb8f8cde7bb2d6ce3bfa00a02ebb62 WHIRLPOOL f33797f9c33a8e9d92c7b44facbda034fe2fd20d6699d32f487287ecb45eb7715c051dd53a389d742ed03b436ccaad1c8e83b205bf459bf72917ee260f27f10c
+DIST mpt-status-1.2.0.tar.bz2 36060 SHA256 4457c2e3f7b493f20f9527f21dd4f26aa3fc14eaaaeb1ee1ba63a1024369bab4 SHA512 854c21aa2c6bda1683ff162342cac2139fd7a98de693edab345b053d6c2fc2dfe6db09f12237ad140cadf10e95f64c7f5fa773a4e4d063654eddede1ce52bbec WHIRLPOOL baee45b97d4b30491c9c21ed8a93379d4b4eefa4ceca93add581f885e92ed64e5f0e9fed98f3c3479606df1bd03ccf500ce381c902887fbe14e1127642052309
diff --git a/sys-block/mpt-status/files/mpt-status-1.2.0-gentoo.patch b/sys-block/mpt-status/files/mpt-status-1.2.0-gentoo.patch
new file mode 100644
index 000000000000..445868a2ef9d
--- /dev/null
+++ b/sys-block/mpt-status/files/mpt-status-1.2.0-gentoo.patch
@@ -0,0 +1,51 @@
+Patch for Gentoo distribution of mpt-status.
+ 1. -I../linux-sources/drivers/message/fusion for our inclusion of the mpt headers.
+ 2. Remove -O2, and use $(CFLAGS) from user instead.
+ 3. Use LDFLAGS
+ 4. -D flag to install is GNU specific.
+ 5. Remove sparc64 specific CFLAGS.
+ 6. Remember to make the sbin directory before installing to it.
+ 7. Don't strip the binary.
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+diff -Nuar mpt-status-1.2.0.orig/Makefile mpt-status-1.2.0/Makefile
+--- mpt-status-1.2.0.orig/Makefile 2006-11-01 19:02:30.000000000 +0000
++++ mpt-status-1.2.0/Makefile 2006-11-10 08:54:18.000000000 +0000
+@@ -3,28 +3,26 @@
+ KERNEL_PATH := /usr/src/linux
+ KERNEL_PATH_B := /lib/modules/`uname -r`/build
+ KERNEL_PATH_S := /lib/modules/`uname -r`/source
+-CFLAGS := -Iincl -Wall -W -O2 \
++CFLAGS := -Iincl -Wall -W \
++ -I../linux-sources/drivers/message/fusion \
+ -I${KERNEL_PATH}/drivers/message/fusion \
+ -I${KERNEL_PATH_B}/drivers/message/fusion \
+- -I${KERNEL_PATH_S}/drivers/message/fusion
++ -I${KERNEL_PATH_S}/drivers/message/fusion \
++ $(CFLAGS)
+ DFLAGS := #-DSANITIZED_KERNEL_HEADERS
+-LDFLAGS :=
++LDFLAGS := $(LDFLAGS)
+ DESTDIR :=
+ MANDIR := /usr/share/man
+ CC := gcc
+-INSTALL := install -D
++INSTALL := install
+ ARCH := $(shell uname -m)
+
+-ifeq "${ARCH}" "sparc64"
+- CFLAGS := -Iincl -Wall -W -O2 -m64 -pipe \
+- -mcpu=ultrasparc -mcmodel=medlow
+-endif
+-
+ ${PROG}: ${PROG}.c ${PROG}.h
+ ${CC} ${DFLAGS} ${CFLAGS} -o $@ $< ${LDFLAGS}
+
+ install: ${PROG}
+- ${INSTALL} -s -o root -g root -m 0500 $< \
++ ${INSTALL} -d ${DESTDIR}${PREFIX}/sbin/
++ ${INSTALL} -o root -g root -m 0500 $< \
+ ${DESTDIR}${PREFIX}/sbin
+
+ install_doc: man/${PROG}.8
diff --git a/sys-block/mpt-status/metadata.xml b/sys-block/mpt-status/metadata.xml
new file mode 100644
index 000000000000..aba833ed90e0
--- /dev/null
+++ b/sys-block/mpt-status/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-block/mpt-status/mpt-status-1.2.0-r1.ebuild b/sys-block/mpt-status/mpt-status-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..fb6720dfd363
--- /dev/null
+++ b/sys-block/mpt-status/mpt-status-1.2.0-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Query tool to access the running configuration and status of LSI SCSI HBAs"
+HOMEPAGE="http://www.drugphish.ch/~ratz/mpt-status/"
+SRC_URI="http://www.drugphish.ch/~ratz/mpt-status/${P}.tar.bz2
+ mirror://gentoo/${PN}-1.2.0-linux-sources.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.2.0-gentoo.patch"
+
+ sed -i -e 's,\(^.*linux/compiler\.h.*$\),,' mpt-status.h || die
+ sed -i -e '/KERNEL_PATH/d' Makefile || die
+
+ epatch_user
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc doc/{AUTHORS,Changelog,DeveloperNotes,FAQ,README,ReleaseNotes,THANKS,TODO}
+}