summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2016-06-29 17:17:07 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2016-06-30 01:31:15 +0300
commit78687b7871a6d19ba23ac5da91c72d9732061bc1 (patch)
treebefa090ead56292b47a1607c1388583318fbbc3e /sys-fabric
parentgames-emulation/dosbox: sync live ebuild and make it copyable (diff)
downloadgentoo-78687b7871a6d19ba23ac5da91c72d9732061bc1.tar.gz
gentoo-78687b7871a6d19ba23ac5da91c72d9732061bc1.tar.bz2
gentoo-78687b7871a6d19ba23ac5da91c72d9732061bc1.zip
eclass/openib.eclass: Clean up ancient versions
Also move to sys-fabric category
Diffstat (limited to 'sys-fabric')
-rw-r--r--sys-fabric/compat-dapl/Manifest1
-rw-r--r--sys-fabric/compat-dapl/compat-dapl-1.2.19-r1.ebuild23
-rw-r--r--sys-fabric/compat-dapl/metadata.xml15
-rw-r--r--sys-fabric/dapl/Manifest2
-rw-r--r--sys-fabric/dapl/dapl-2.0.36.ebuild23
-rw-r--r--sys-fabric/dapl/dapl-2.0.40.ebuild23
-rw-r--r--sys-fabric/dapl/metadata.xml15
-rw-r--r--sys-fabric/ibacm/Manifest2
-rw-r--r--sys-fabric/ibacm/ibacm-1.0.7.ebuild20
-rw-r--r--sys-fabric/ibacm/ibacm-1.0.8.ebuild23
-rw-r--r--sys-fabric/ibacm/metadata.xml11
-rw-r--r--sys-fabric/ibutils/Manifest2
-rw-r--r--sys-fabric/ibutils/ibutils-1.5.7-r2.ebuild24
-rw-r--r--sys-fabric/ibutils/ibutils-1.5.7-r3.ebuild24
-rw-r--r--sys-fabric/ibutils/metadata.xml15
-rw-r--r--sys-fabric/infiniband-diags/Manifest2
-rw-r--r--sys-fabric/infiniband-diags/infiniband-diags-1.6.1.ebuild23
-rw-r--r--sys-fabric/infiniband-diags/infiniband-diags-1.6.4.ebuild23
-rw-r--r--sys-fabric/infiniband-diags/metadata.xml11
-rw-r--r--sys-fabric/infinipath-psm/Manifest2
-rw-r--r--sys-fabric/infinipath-psm/files/42-infinipath-psm.rules2
-rw-r--r--sys-fabric/infinipath-psm/files/infinipath-psm-include.patch10
-rw-r--r--sys-fabric/infinipath-psm/infinipath-psm-3.0.1.ebuild37
-rw-r--r--sys-fabric/infinipath-psm/infinipath-psm-3.2.ebuild36
-rw-r--r--sys-fabric/infinipath-psm/metadata.xml8
-rw-r--r--sys-fabric/libcxgb3/Manifest2
-rw-r--r--sys-fabric/libcxgb3/libcxgb3-1.3.1-r1.ebuild20
-rw-r--r--sys-fabric/libcxgb3/libcxgb3-1.3.1-r2.ebuild20
-rw-r--r--sys-fabric/libcxgb3/metadata.xml11
-rw-r--r--sys-fabric/libcxgb4/Manifest2
-rw-r--r--sys-fabric/libcxgb4/libcxgb4-1.2.0-r1.ebuild20
-rw-r--r--sys-fabric/libcxgb4/libcxgb4-1.3.2.ebuild20
-rw-r--r--sys-fabric/libcxgb4/metadata.xml11
-rw-r--r--sys-fabric/libehca/Manifest2
-rw-r--r--sys-fabric/libehca/libehca-1.2.2-r2.ebuild21
-rw-r--r--sys-fabric/libehca/libehca-1.2.2-r3.ebuild21
-rw-r--r--sys-fabric/libehca/metadata.xml11
-rw-r--r--sys-fabric/libibcm/Manifest2
-rw-r--r--sys-fabric/libibcm/libibcm-1.0.5-r2.ebuild20
-rw-r--r--sys-fabric/libibcm/libibcm-1.0.5-r3.ebuild20
-rw-r--r--sys-fabric/libibcm/metadata.xml11
-rw-r--r--sys-fabric/libibmad/Manifest2
-rw-r--r--sys-fabric/libibmad/libibmad-1.3.11.ebuild22
-rw-r--r--sys-fabric/libibmad/libibmad-1.3.9.ebuild22
-rw-r--r--sys-fabric/libibmad/metadata.xml13
-rw-r--r--sys-fabric/libibumad/Manifest2
-rw-r--r--sys-fabric/libibumad/libibumad-1.3.8.ebuild22
-rw-r--r--sys-fabric/libibumad/libibumad-1.3.9.ebuild22
-rw-r--r--sys-fabric/libibumad/metadata.xml13
-rw-r--r--sys-fabric/libibverbs/Manifest2
-rw-r--r--sys-fabric/libibverbs/libibverbs-1.1.6.ebuild21
-rw-r--r--sys-fabric/libibverbs/libibverbs-1.1.7.ebuild21
-rw-r--r--sys-fabric/libibverbs/metadata.xml14
-rw-r--r--sys-fabric/libibvpp/Manifest1
-rw-r--r--sys-fabric/libibvpp/libibvpp-0.1.ebuild18
-rw-r--r--sys-fabric/libibvpp/metadata.xml11
-rw-r--r--sys-fabric/libipathverbs/Manifest2
-rw-r--r--sys-fabric/libipathverbs/libipathverbs-1.2-r2.ebuild20
-rw-r--r--sys-fabric/libipathverbs/libipathverbs-1.2.1.ebuild20
-rw-r--r--sys-fabric/libipathverbs/metadata.xml13
-rw-r--r--sys-fabric/libmlx4/Manifest2
-rw-r--r--sys-fabric/libmlx4/libmlx4-1.0.4.ebuild23
-rw-r--r--sys-fabric/libmlx4/libmlx4-1.0.5.ebuild23
-rw-r--r--sys-fabric/libmlx4/metadata.xml14
-rw-r--r--sys-fabric/libmlx5/Manifest1
-rw-r--r--sys-fabric/libmlx5/libmlx5-1.0.1.ebuild23
-rw-r--r--sys-fabric/libmlx5/metadata.xml8
-rw-r--r--sys-fabric/libmthca/Manifest2
-rw-r--r--sys-fabric/libmthca/libmthca-1.0.5-r4.ebuild22
-rw-r--r--sys-fabric/libmthca/libmthca-1.0.6.ebuild21
-rw-r--r--sys-fabric/libmthca/metadata.xml14
-rw-r--r--sys-fabric/libnes/Manifest2
-rw-r--r--sys-fabric/libnes/libnes-1.1.3-r1.ebuild30
-rw-r--r--sys-fabric/libnes/libnes-1.1.4.ebuild30
-rw-r--r--sys-fabric/libnes/metadata.xml14
-rw-r--r--sys-fabric/libocrdma/Manifest1
-rw-r--r--sys-fabric/libocrdma/libocrdma-1.0.2.ebuild23
-rw-r--r--sys-fabric/libocrdma/metadata.xml14
-rw-r--r--sys-fabric/librdmacm/Manifest2
-rw-r--r--sys-fabric/librdmacm/librdmacm-1.0.16.ebuild21
-rw-r--r--sys-fabric/librdmacm/librdmacm-1.0.18.ebuild21
-rw-r--r--sys-fabric/librdmacm/metadata.xml11
-rw-r--r--sys-fabric/metadata.xml12
-rw-r--r--sys-fabric/mstflint/Manifest2
-rw-r--r--sys-fabric/mstflint/metadata.xml11
-rw-r--r--sys-fabric/mstflint/mstflint-1.4-r1.ebuild21
-rw-r--r--sys-fabric/mstflint/mstflint-3.5.0.ebuild20
-rw-r--r--sys-fabric/ofed/Manifest2
-rw-r--r--sys-fabric/ofed/files/90-ib.rules5
-rw-r--r--sys-fabric/ofed/files/openib243
-rw-r--r--sys-fabric/ofed/files/openib.conf27
-rw-r--r--sys-fabric/ofed/files/openib.env1
-rw-r--r--sys-fabric/ofed/files/openib.modprobe12
-rw-r--r--sys-fabric/ofed/metadata.xml21
-rw-r--r--sys-fabric/ofed/ofed-3.12_rc1.ebuild150
-rw-r--r--sys-fabric/ofed/ofed-3.5.ebuild158
-rw-r--r--sys-fabric/opensm/Manifest2
-rw-r--r--sys-fabric/opensm/files/opensm-3.3.17-norpm.patch32
-rw-r--r--sys-fabric/opensm/files/opensm-3.3.17-sldd.patch20
-rw-r--r--sys-fabric/opensm/files/opensm.conf.d3
-rw-r--r--sys-fabric/opensm/files/opensm.init.d24
-rw-r--r--sys-fabric/opensm/files/sldd.conf.d21
-rw-r--r--sys-fabric/opensm/files/sldd.init.d26
-rw-r--r--sys-fabric/opensm/metadata.xml16
-rw-r--r--sys-fabric/opensm/opensm-3.3.15.ebuild46
-rw-r--r--sys-fabric/opensm/opensm-3.3.17-r1.ebuild61
-rw-r--r--sys-fabric/perftest/Manifest2
-rw-r--r--sys-fabric/perftest/metadata.xml11
-rw-r--r--sys-fabric/perftest/perftest-1.4.0.ebuild30
-rw-r--r--sys-fabric/perftest/perftest-2.0.ebuild30
-rw-r--r--sys-fabric/qperf/Manifest1
-rw-r--r--sys-fabric/qperf/metadata.xml14
-rw-r--r--sys-fabric/qperf/qperf-0.4.9.ebuild24
-rw-r--r--sys-fabric/rds-tools/Manifest2
-rw-r--r--sys-fabric/rds-tools/files/rds-tools-2.0.4-qa.patch59
-rw-r--r--sys-fabric/rds-tools/metadata.xml15
-rw-r--r--sys-fabric/rds-tools/rds-tools-2.0.4-r2.ebuild29
-rw-r--r--sys-fabric/rds-tools/rds-tools-2.0.4-r3.ebuild29
-rw-r--r--sys-fabric/srptools/Manifest2
-rw-r--r--sys-fabric/srptools/files/srpd.initd42
-rw-r--r--sys-fabric/srptools/metadata.xml14
-rw-r--r--sys-fabric/srptools/srptools-0.0.4-r2.ebuild30
-rw-r--r--sys-fabric/srptools/srptools-1.0.2.ebuild29
123 files changed, 2473 insertions, 0 deletions
diff --git a/sys-fabric/compat-dapl/Manifest b/sys-fabric/compat-dapl/Manifest
new file mode 100644
index 000000000000..7afa5aa982f0
--- /dev/null
+++ b/sys-fabric/compat-dapl/Manifest
@@ -0,0 +1 @@
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/compat-dapl/compat-dapl-1.2.19-r1.ebuild b/sys-fabric/compat-dapl/compat-dapl-1.2.19-r1.ebuild
new file mode 100644
index 000000000000..32638676f840
--- /dev/null
+++ b/sys-fabric/compat-dapl/compat-dapl-1.2.19-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB - Direct Access Provider Library v1.2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}
+ sys-fabric/librdmacm:${SLOT}"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+
+block_other_ofed_versions
diff --git a/sys-fabric/compat-dapl/metadata.xml b/sys-fabric/compat-dapl/metadata.xml
new file mode 100644
index 000000000000..0dcc685509f1
--- /dev/null
+++ b/sys-fabric/compat-dapl/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+uDAPL is a transport neutral infrastructure that provides RDMA capabilities in
+user space. It is the user space component of DAPL, the Direct Access Provider
+Library for RDMA transports. See http://www.datcollaborative.org/
+</longdescription>
+<use>
+</use>
+</pkgmetadata>
diff --git a/sys-fabric/dapl/Manifest b/sys-fabric/dapl/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/dapl/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/dapl/dapl-2.0.36.ebuild b/sys-fabric/dapl/dapl-2.0.36.ebuild
new file mode 100644
index 000000000000..66a2fb9ec262
--- /dev/null
+++ b/sys-fabric/dapl/dapl-2.0.36.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB - Direct Access Provider Library"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}
+ sys-fabric/librdmacm:${SLOT}"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+
+block_other_ofed_versions
diff --git a/sys-fabric/dapl/dapl-2.0.40.ebuild b/sys-fabric/dapl/dapl-2.0.40.ebuild
new file mode 100644
index 000000000000..0cce84992156
--- /dev/null
+++ b/sys-fabric/dapl/dapl-2.0.40.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB - Direct Access Provider Library"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}
+ sys-fabric/librdmacm:${SLOT}"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+
+block_other_ofed_versions
diff --git a/sys-fabric/dapl/metadata.xml b/sys-fabric/dapl/metadata.xml
new file mode 100644
index 000000000000..0dcc685509f1
--- /dev/null
+++ b/sys-fabric/dapl/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+uDAPL is a transport neutral infrastructure that provides RDMA capabilities in
+user space. It is the user space component of DAPL, the Direct Access Provider
+Library for RDMA transports. See http://www.datcollaborative.org/
+</longdescription>
+<use>
+</use>
+</pkgmetadata>
diff --git a/sys-fabric/ibacm/Manifest b/sys-fabric/ibacm/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/ibacm/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/ibacm/ibacm-1.0.7.ebuild b/sys-fabric/ibacm/ibacm-1.0.7.ebuild
new file mode 100644
index 000000000000..02edd62abbd7
--- /dev/null
+++ b/sys-fabric/ibacm/ibacm-1.0.7.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="IB CM pre-connection service application"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="sys-fabric/libibverbs:${SLOT}"
+DEPEND="${RDEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/ibacm/ibacm-1.0.8.ebuild b/sys-fabric/ibacm/ibacm-1.0.8.ebuild
new file mode 100644
index 000000000000..277b3d1e2a3d
--- /dev/null
+++ b/sys-fabric/ibacm/ibacm-1.0.8.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="IB CM pre-connection service application"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="
+ sys-fabric/libibumad:${SLOT}
+ sys-fabric/libibverbs:${SLOT}
+"
+DEPEND="${RDEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/ibacm/metadata.xml b/sys-fabric/ibacm/metadata.xml
new file mode 100644
index 000000000000..f1a406d0b751
--- /dev/null
+++ b/sys-fabric/ibacm/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+OpenIB Userspace CM library
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/ibutils/Manifest b/sys-fabric/ibutils/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/ibutils/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/ibutils/ibutils-1.5.7-r2.ebuild b/sys-fabric/ibutils/ibutils-1.5.7-r2.ebuild
new file mode 100644
index 000000000000..9d7276561ce8
--- /dev/null
+++ b/sys-fabric/ibutils/ibutils-1.5.7-r2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="0.1.g05a9d1a"
+OFED_SNAPSHOT="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB userspace tools"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}
+ >=dev-lang/tk-8.4"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+
+block_other_ofed_versions
diff --git a/sys-fabric/ibutils/ibutils-1.5.7-r3.ebuild b/sys-fabric/ibutils/ibutils-1.5.7-r3.ebuild
new file mode 100644
index 000000000000..0443700b6072
--- /dev/null
+++ b/sys-fabric/ibutils/ibutils-1.5.7-r3.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="0.1.g05a9d1a"
+OFED_SNAPSHOT="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB userspace tools"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}
+ >=dev-lang/tk-8.4"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+
+block_other_ofed_versions
diff --git a/sys-fabric/ibutils/metadata.xml b/sys-fabric/ibutils/metadata.xml
new file mode 100644
index 000000000000..0dcc685509f1
--- /dev/null
+++ b/sys-fabric/ibutils/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+uDAPL is a transport neutral infrastructure that provides RDMA capabilities in
+user space. It is the user space component of DAPL, the Direct Access Provider
+Library for RDMA transports. See http://www.datcollaborative.org/
+</longdescription>
+<use>
+</use>
+</pkgmetadata>
diff --git a/sys-fabric/infiniband-diags/Manifest b/sys-fabric/infiniband-diags/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/infiniband-diags/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/infiniband-diags/infiniband-diags-1.6.1.ebuild b/sys-fabric/infiniband-diags/infiniband-diags-1.6.1.ebuild
new file mode 100644
index 000000000000..984abed9a599
--- /dev/null
+++ b/sys-fabric/infiniband-diags/infiniband-diags-1.6.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB diagnostic programs and scripts needed to diagnose an IB subnet"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibumad:${SLOT}
+ sys-fabric/libibmad:${SLOT}
+ sys-fabric/opensm:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/infiniband-diags/infiniband-diags-1.6.4.ebuild b/sys-fabric/infiniband-diags/infiniband-diags-1.6.4.ebuild
new file mode 100644
index 000000000000..be5c31c8fd88
--- /dev/null
+++ b/sys-fabric/infiniband-diags/infiniband-diags-1.6.4.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB diagnostic programs and scripts needed to diagnose an IB subnet"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibumad:${SLOT}
+ sys-fabric/libibmad:${SLOT}
+ sys-fabric/opensm:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/infiniband-diags/metadata.xml b/sys-fabric/infiniband-diags/metadata.xml
new file mode 100644
index 000000000000..a941bea1995c
--- /dev/null
+++ b/sys-fabric/infiniband-diags/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+ </maintainer>
+ <longdescription>
+OpenIB diagnostic programs and scripts needed to diagnose an IB subnet.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/infinipath-psm/Manifest b/sys-fabric/infinipath-psm/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/infinipath-psm/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/infinipath-psm/files/42-infinipath-psm.rules b/sys-fabric/infinipath-psm/files/42-infinipath-psm.rules
new file mode 100644
index 000000000000..8cc1339c16e9
--- /dev/null
+++ b/sys-fabric/infinipath-psm/files/42-infinipath-psm.rules
@@ -0,0 +1,2 @@
+KERNEL=="ipath", MODE="0666"
+KERNEL=="kcopy[0-6][0-9]", NAME="kcopy/%n", MODE="0666"
diff --git a/sys-fabric/infinipath-psm/files/infinipath-psm-include.patch b/sys-fabric/infinipath-psm/files/infinipath-psm-include.patch
new file mode 100644
index 000000000000..dd13ae0d1501
--- /dev/null
+++ b/sys-fabric/infinipath-psm/files/infinipath-psm-include.patch
@@ -0,0 +1,10 @@
+--- ./ptl_ips/ips_proto_header.h.orig 2012-01-20 15:49:17.000000000 +0400
++++ ./ptl_ips/ips_proto_header.h 2012-01-20 15:49:24.000000000 +0400
+@@ -72,7 +72,6 @@
+ union {
+ struct {
+ __u16 mqhdr : 14; /* PSM matched queues */
+- __u16 dst_subcontext : 2; /* Destination subcontext */
+ };
+ struct { /* for PSM Active Messages */
+ __u16 amhdr_hidx : 8;
diff --git a/sys-fabric/infinipath-psm/infinipath-psm-3.0.1.ebuild b/sys-fabric/infinipath-psm/infinipath-psm-3.0.1.ebuild
new file mode 100644
index 000000000000..a5f3391afcd8
--- /dev/null
+++ b/sys-fabric/infinipath-psm/infinipath-psm-3.0.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="115.1015_open"
+OFED_SNAPSHOT="1"
+OFED_SRC_SNAPSHOT="1"
+
+inherit openib udev
+
+DESCRIPTION="OpenIB userspace driver for the PathScale InfiniBand HCAs"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="sys-fabric/libibverbs:${SLOT}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+block_other_ofed_versions
+
+src_prepare() {
+ sed -e 's:uname -p:uname -m:g' \
+ -e 's:-Werror::g' \
+ -i buildflags.mak || die
+ epatch "${FILESDIR}"/${PN}-include.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc README
+ udev_dorules "${FILESDIR}"/42-infinipath-psm.rules
+}
diff --git a/sys-fabric/infinipath-psm/infinipath-psm-3.2.ebuild b/sys-fabric/infinipath-psm/infinipath-psm-3.2.ebuild
new file mode 100644
index 000000000000..205e3fe83fd1
--- /dev/null
+++ b/sys-fabric/infinipath-psm/infinipath-psm-3.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="2_ga8c3e3e_open"
+OFED_SNAPSHOT="1"
+OFED_SRC_SNAPSHOT="1"
+
+inherit openib udev
+
+DESCRIPTION="OpenIB userspace driver for the PathScale InfiniBand HCAs"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="sys-fabric/libibverbs:${SLOT}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+block_other_ofed_versions
+
+src_prepare() {
+ sed -e 's:uname -p:uname -m:g' \
+ -e 's:-Werror::g' \
+ -i buildflags.mak || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc README
+ udev_dorules "${FILESDIR}"/42-infinipath-psm.rules
+}
diff --git a/sys-fabric/infinipath-psm/metadata.xml b/sys-fabric/infinipath-psm/metadata.xml
new file mode 100644
index 000000000000..4a09d7ba8d61
--- /dev/null
+++ b/sys-fabric/infinipath-psm/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-fabric/libcxgb3/Manifest b/sys-fabric/libcxgb3/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/libcxgb3/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/libcxgb3/libcxgb3-1.3.1-r1.ebuild b/sys-fabric/libcxgb3/libcxgb3-1.3.1-r1.ebuild
new file mode 100644
index 000000000000..6b6204e8d950
--- /dev/null
+++ b/sys-fabric/libcxgb3/libcxgb3-1.3.1-r1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB - driver for Chelsio T3-based iWARP (RDMA over IP/ethernet)"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libcxgb3/libcxgb3-1.3.1-r2.ebuild b/sys-fabric/libcxgb3/libcxgb3-1.3.1-r2.ebuild
new file mode 100644
index 000000000000..c8936390ea60
--- /dev/null
+++ b/sys-fabric/libcxgb3/libcxgb3-1.3.1-r2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB - driver for Chelsio T3-based iWARP (RDMA over IP/ethernet)"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libcxgb3/metadata.xml b/sys-fabric/libcxgb3/metadata.xml
new file mode 100644
index 000000000000..6bf09024e3e4
--- /dev/null
+++ b/sys-fabric/libcxgb3/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+OpenIB - driver for Chelsio T3-based iWARP (RDMA over IP/ethernet)
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libcxgb4/Manifest b/sys-fabric/libcxgb4/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/libcxgb4/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/libcxgb4/libcxgb4-1.2.0-r1.ebuild b/sys-fabric/libcxgb4/libcxgb4-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..b4733fc86d9d
--- /dev/null
+++ b/sys-fabric/libcxgb4/libcxgb4-1.2.0-r1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB - driver for Chelsio T4-based iWARP (RDMA over IP/ethernet)"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libcxgb4/libcxgb4-1.3.2.ebuild b/sys-fabric/libcxgb4/libcxgb4-1.3.2.ebuild
new file mode 100644
index 000000000000..2d09b87fd16e
--- /dev/null
+++ b/sys-fabric/libcxgb4/libcxgb4-1.3.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB - driver for Chelsio T4-based iWARP (RDMA over IP/ethernet)"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libcxgb4/metadata.xml b/sys-fabric/libcxgb4/metadata.xml
new file mode 100644
index 000000000000..6bf09024e3e4
--- /dev/null
+++ b/sys-fabric/libcxgb4/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+OpenIB - driver for Chelsio T3-based iWARP (RDMA over IP/ethernet)
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libehca/Manifest b/sys-fabric/libehca/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/libehca/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/libehca/libehca-1.2.2-r2.ebuild b/sys-fabric/libehca/libehca-1.2.2-r2.ebuild
new file mode 100644
index 000000000000..7de1fc499df2
--- /dev/null
+++ b/sys-fabric/libehca/libehca-1.2.2-r2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="0.1.g69e1a88"
+OFED_SNAPSHOT="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB - IBM eServer eHCA Infiniband device driver for Linux on POWER"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libehca/libehca-1.2.2-r3.ebuild b/sys-fabric/libehca/libehca-1.2.2-r3.ebuild
new file mode 100644
index 000000000000..9076aa6e88a0
--- /dev/null
+++ b/sys-fabric/libehca/libehca-1.2.2-r3.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="0.1.g69e1a88"
+OFED_SNAPSHOT="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB - IBM eServer eHCA Infiniband device driver for Linux on POWER"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libehca/metadata.xml b/sys-fabric/libehca/metadata.xml
new file mode 100644
index 000000000000..6cc225f82f62
--- /dev/null
+++ b/sys-fabric/libehca/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+OpenIB - IBM eServer eHCA Infiniband device driver for Linux on POWER.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libibcm/Manifest b/sys-fabric/libibcm/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/libibcm/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/libibcm/libibcm-1.0.5-r2.ebuild b/sys-fabric/libibcm/libibcm-1.0.5-r2.ebuild
new file mode 100644
index 000000000000..825d6f4f6164
--- /dev/null
+++ b/sys-fabric/libibcm/libibcm-1.0.5-r2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB Userspace CM library"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="sys-fabric/libibverbs:${SLOT}"
+DEPEND="${RDEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libibcm/libibcm-1.0.5-r3.ebuild b/sys-fabric/libibcm/libibcm-1.0.5-r3.ebuild
new file mode 100644
index 000000000000..9ae71936a31a
--- /dev/null
+++ b/sys-fabric/libibcm/libibcm-1.0.5-r3.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB Userspace CM library"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="sys-fabric/libibverbs:${SLOT}"
+DEPEND="${RDEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libibcm/metadata.xml b/sys-fabric/libibcm/metadata.xml
new file mode 100644
index 000000000000..f1a406d0b751
--- /dev/null
+++ b/sys-fabric/libibcm/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+OpenIB Userspace CM library
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libibmad/Manifest b/sys-fabric/libibmad/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/libibmad/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/libibmad/libibmad-1.3.11.ebuild b/sys-fabric/libibmad/libibmad-1.3.11.ebuild
new file mode 100644
index 000000000000..d1f3d9d58435
--- /dev/null
+++ b/sys-fabric/libibmad/libibmad-1.3.11.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB library providing low layer IB functions for use by the IB diagnostic/management programs"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibumad:${SLOT}
+ "
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libibmad/libibmad-1.3.9.ebuild b/sys-fabric/libibmad/libibmad-1.3.9.ebuild
new file mode 100644
index 000000000000..d314c8b0b4c2
--- /dev/null
+++ b/sys-fabric/libibmad/libibmad-1.3.9.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB library providing low layer IB functions for use by the IB diagnostic/management programs"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibumad:${SLOT}
+ "
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libibmad/metadata.xml b/sys-fabric/libibmad/metadata.xml
new file mode 100644
index 000000000000..498c88269c98
--- /dev/null
+++ b/sys-fabric/libibmad/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+OpenIB library that provides low layer IB functions for use by the IB diagnostic
+and management programs. These include MAD, SA, SMP, and other basic IB
+functions.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libibumad/Manifest b/sys-fabric/libibumad/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/libibumad/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/libibumad/libibumad-1.3.8.ebuild b/sys-fabric/libibumad/libibumad-1.3.8.ebuild
new file mode 100644
index 000000000000..fb19d2c9c266
--- /dev/null
+++ b/sys-fabric/libibumad/libibumad-1.3.8.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB User MAD library functions which sit on top of the user MAD modules in the kernel"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs:${SLOT}
+ "
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libibumad/libibumad-1.3.9.ebuild b/sys-fabric/libibumad/libibumad-1.3.9.ebuild
new file mode 100644
index 000000000000..c2d3cc1e78ac
--- /dev/null
+++ b/sys-fabric/libibumad/libibumad-1.3.9.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB User MAD library functions which sit on top of the user MAD modules in the kernel"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs:${SLOT}
+ "
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libibumad/metadata.xml b/sys-fabric/libibumad/metadata.xml
new file mode 100644
index 000000000000..f0e58703dcaa
--- /dev/null
+++ b/sys-fabric/libibumad/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+OpenIB User MAD library functions which sit on top of the user MAD modules in
+the kernel. These are used by the IB diagnostic and management tools, including
+OpenSM.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libibverbs/Manifest b/sys-fabric/libibverbs/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/libibverbs/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/libibverbs/libibverbs-1.1.6.ebuild b/sys-fabric/libibverbs/libibverbs-1.1.6.ebuild
new file mode 100644
index 000000000000..879dbd6c7ef2
--- /dev/null
+++ b/sys-fabric/libibverbs/libibverbs-1.1.6.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit eutils openib
+
+DESCRIPTION="A library allowing programs to use InfiniBand 'verbs' for direct access to IB hardware"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
diff --git a/sys-fabric/libibverbs/libibverbs-1.1.7.ebuild b/sys-fabric/libibverbs/libibverbs-1.1.7.ebuild
new file mode 100644
index 000000000000..812412cb7aa1
--- /dev/null
+++ b/sys-fabric/libibverbs/libibverbs-1.1.7.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1.gcbf2a35"
+
+inherit eutils openib
+
+DESCRIPTION="A library allowing programs to use InfiniBand 'verbs' for direct access to IB hardware"
+KEYWORDS="amd64 x86 ~amd64-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
diff --git a/sys-fabric/libibverbs/metadata.xml b/sys-fabric/libibverbs/metadata.xml
new file mode 100644
index 000000000000..98dc6c52bb2c
--- /dev/null
+++ b/sys-fabric/libibverbs/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+libibverbs is a library that allows programs to use InfiniBand "verbs"
+for direct access to IB hardware from userspace. For more information
+on verbs, see the InfiniBand Architecture Specification vol. 1,
+especially chapter 11.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libibvpp/Manifest b/sys-fabric/libibvpp/Manifest
new file mode 100644
index 000000000000..85fbc64398c4
--- /dev/null
+++ b/sys-fabric/libibvpp/Manifest
@@ -0,0 +1 @@
+DIST libibvpp-0.1.tar.gz 340119 SHA256 6a8fb559c4474f013b040a2a070c8088170f5978ca5537b58c076f07b7844700 SHA512 7a60f24eafc789c800bd91480218a0d282c5295076ebf6e85ef69dbede8dbbe27ed3e78b3e2bdd1779dbab536cabfcdf7c4fa45a2454791bf545f8425c907cb7 WHIRLPOOL 22c8e164483668b9d45031bad7de2944610321b06f556d7639302c42c2387cf241b48707998cd84a75a6b19e3389eee5bbf409e445857471382c4f30ac35631a
diff --git a/sys-fabric/libibvpp/libibvpp-0.1.ebuild b/sys-fabric/libibvpp/libibvpp-0.1.ebuild
new file mode 100644
index 000000000000..c43394e518f1
--- /dev/null
+++ b/sys-fabric/libibvpp/libibvpp-0.1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="C++ wrapper around libibverbs, which is part of OpenIB"
+HOMEPAGE="http://ti.arc.nasa.gov/opensource/projects/libibvpp/"
+SRC_URI="http://ti.arc.nasa.gov/m/opensource/downloads/${P}.tar.gz"
+
+LICENSE="NOSA BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs"
+RDEPEND="${DEPEND}"
diff --git a/sys-fabric/libibvpp/metadata.xml b/sys-fabric/libibvpp/metadata.xml
new file mode 100644
index 000000000000..7b39e0aaf17e
--- /dev/null
+++ b/sys-fabric/libibvpp/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+libibvpp is a C++ wrapper around libibverbs, which is part of OpenIB.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libipathverbs/Manifest b/sys-fabric/libipathverbs/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/libipathverbs/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/libipathverbs/libipathverbs-1.2-r2.ebuild b/sys-fabric/libipathverbs/libipathverbs-1.2-r2.ebuild
new file mode 100644
index 000000000000..22f3e43a8069
--- /dev/null
+++ b/sys-fabric/libipathverbs/libipathverbs-1.2-r2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB userspace driver for the PathScale InfiniBand HCAs"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libipathverbs/libipathverbs-1.2.1.ebuild b/sys-fabric/libipathverbs/libipathverbs-1.2.1.ebuild
new file mode 100644
index 000000000000..d02aace5c2ab
--- /dev/null
+++ b/sys-fabric/libipathverbs/libipathverbs-1.2.1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB userspace driver for the PathScale InfiniBand HCAs"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/libipathverbs/metadata.xml b/sys-fabric/libipathverbs/metadata.xml
new file mode 100644
index 000000000000..cf6568d178bc
--- /dev/null
+++ b/sys-fabric/libipathverbs/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+libipathverbs is a userspace driver for QLogic InfiniBand HCAs. It works as a
+plug-in module for libibverbs that allows programs to use QLogic HCAs directly
+from userspace. See the libibverbs package for more information.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libmlx4/Manifest b/sys-fabric/libmlx4/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/libmlx4/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/libmlx4/libmlx4-1.0.4.ebuild b/sys-fabric/libmlx4/libmlx4-1.0.4.ebuild
new file mode 100644
index 000000000000..fb51c36f226e
--- /dev/null
+++ b/sys-fabric/libmlx4/libmlx4-1.0.4.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB userspace driver for Mellanox ConnectX HCA"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs:${SLOT}
+ "
+RDEPEND="
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
diff --git a/sys-fabric/libmlx4/libmlx4-1.0.5.ebuild b/sys-fabric/libmlx4/libmlx4-1.0.5.ebuild
new file mode 100644
index 000000000000..2c2fbef024f5
--- /dev/null
+++ b/sys-fabric/libmlx4/libmlx4-1.0.5.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1.gdc6ef69"
+
+inherit openib
+
+DESCRIPTION="OpenIB userspace driver for Mellanox ConnectX HCA"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs:${SLOT}
+ "
+RDEPEND="
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
diff --git a/sys-fabric/libmlx4/metadata.xml b/sys-fabric/libmlx4/metadata.xml
new file mode 100644
index 000000000000..98dc6c52bb2c
--- /dev/null
+++ b/sys-fabric/libmlx4/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+libibverbs is a library that allows programs to use InfiniBand "verbs"
+for direct access to IB hardware from userspace. For more information
+on verbs, see the InfiniBand Architecture Specification vol. 1,
+especially chapter 11.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libmlx5/Manifest b/sys-fabric/libmlx5/Manifest
new file mode 100644
index 000000000000..a6c7bd74e5e8
--- /dev/null
+++ b/sys-fabric/libmlx5/Manifest
@@ -0,0 +1 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
diff --git a/sys-fabric/libmlx5/libmlx5-1.0.1.ebuild b/sys-fabric/libmlx5/libmlx5-1.0.1.ebuild
new file mode 100644
index 000000000000..3cb8c3475b19
--- /dev/null
+++ b/sys-fabric/libmlx5/libmlx5-1.0.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB userspace driver for Mellanox ConnectIB HCA"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs:${SLOT}
+ "
+RDEPEND="
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
diff --git a/sys-fabric/libmlx5/metadata.xml b/sys-fabric/libmlx5/metadata.xml
new file mode 100644
index 000000000000..4a09d7ba8d61
--- /dev/null
+++ b/sys-fabric/libmlx5/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-fabric/libmthca/Manifest b/sys-fabric/libmthca/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/libmthca/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/libmthca/libmthca-1.0.5-r4.ebuild b/sys-fabric/libmthca/libmthca-1.0.5-r4.ebuild
new file mode 100644
index 000000000000..b88e6651fc31
--- /dev/null
+++ b/sys-fabric/libmthca/libmthca-1.0.5-r4.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="0.1.gbe5eef3"
+OFED_SNAPSHOT="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB userspace driver for Mellanox InfiniBand HCAs"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
diff --git a/sys-fabric/libmthca/libmthca-1.0.6.ebuild b/sys-fabric/libmthca/libmthca-1.0.6.ebuild
new file mode 100644
index 000000000000..995c68e8acd3
--- /dev/null
+++ b/sys-fabric/libmthca/libmthca-1.0.6.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB userspace driver for Mellanox InfiniBand HCAs"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
diff --git a/sys-fabric/libmthca/metadata.xml b/sys-fabric/libmthca/metadata.xml
new file mode 100644
index 000000000000..98dc6c52bb2c
--- /dev/null
+++ b/sys-fabric/libmthca/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+libibverbs is a library that allows programs to use InfiniBand "verbs"
+for direct access to IB hardware from userspace. For more information
+on verbs, see the InfiniBand Architecture Specification vol. 1,
+especially chapter 11.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libnes/Manifest b/sys-fabric/libnes/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/libnes/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/libnes/libnes-1.1.3-r1.ebuild b/sys-fabric/libnes/libnes-1.1.3-r1.ebuild
new file mode 100644
index 000000000000..72d522c125fc
--- /dev/null
+++ b/sys-fabric/libnes/libnes-1.1.3-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="NetEffect RNIC Userspace Library"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="static-libs"
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${D}"usr/$(get_libdir)/${PN}.la
+}
diff --git a/sys-fabric/libnes/libnes-1.1.4.ebuild b/sys-fabric/libnes/libnes-1.1.4.ebuild
new file mode 100644
index 000000000000..f2d6c459b6f8
--- /dev/null
+++ b/sys-fabric/libnes/libnes-1.1.4.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="0"
+
+inherit openib
+
+DESCRIPTION="NetEffect RNIC Userspace Library"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="static-libs"
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${D}"usr/$(get_libdir)/${PN}.la
+}
diff --git a/sys-fabric/libnes/metadata.xml b/sys-fabric/libnes/metadata.xml
new file mode 100644
index 000000000000..98dc6c52bb2c
--- /dev/null
+++ b/sys-fabric/libnes/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+libibverbs is a library that allows programs to use InfiniBand "verbs"
+for direct access to IB hardware from userspace. For more information
+on verbs, see the InfiniBand Architecture Specification vol. 1,
+especially chapter 11.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/libocrdma/Manifest b/sys-fabric/libocrdma/Manifest
new file mode 100644
index 000000000000..a6c7bd74e5e8
--- /dev/null
+++ b/sys-fabric/libocrdma/Manifest
@@ -0,0 +1 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
diff --git a/sys-fabric/libocrdma/libocrdma-1.0.2.ebuild b/sys-fabric/libocrdma/libocrdma-1.0.2.ebuild
new file mode 100644
index 000000000000..2d4aab0be857
--- /dev/null
+++ b/sys-fabric/libocrdma/libocrdma-1.0.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB userspace driver for Emulex OneConnect RDMA"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs:${SLOT}
+ "
+RDEPEND="
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
diff --git a/sys-fabric/libocrdma/metadata.xml b/sys-fabric/libocrdma/metadata.xml
new file mode 100644
index 000000000000..98dc6c52bb2c
--- /dev/null
+++ b/sys-fabric/libocrdma/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+libibverbs is a library that allows programs to use InfiniBand "verbs"
+for direct access to IB hardware from userspace. For more information
+on verbs, see the InfiniBand Architecture Specification vol. 1,
+especially chapter 11.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/librdmacm/Manifest b/sys-fabric/librdmacm/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/librdmacm/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/librdmacm/librdmacm-1.0.16.ebuild b/sys-fabric/librdmacm/librdmacm-1.0.16.ebuild
new file mode 100644
index 000000000000..356741c5f400
--- /dev/null
+++ b/sys-fabric/librdmacm/librdmacm-1.0.16.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit eutils openib
+
+DESCRIPTION="OpenIB userspace RDMA CM library"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
diff --git a/sys-fabric/librdmacm/librdmacm-1.0.18.ebuild b/sys-fabric/librdmacm/librdmacm-1.0.18.ebuild
new file mode 100644
index 000000000000..ade45012bc99
--- /dev/null
+++ b/sys-fabric/librdmacm/librdmacm-1.0.18.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit eutils openib
+
+DESCRIPTION="OpenIB userspace RDMA CM library"
+KEYWORDS="amd64 x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
diff --git a/sys-fabric/librdmacm/metadata.xml b/sys-fabric/librdmacm/metadata.xml
new file mode 100644
index 000000000000..7a6d65bc038b
--- /dev/null
+++ b/sys-fabric/librdmacm/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+OpenIB userspace RDMA CM library.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/metadata.xml b/sys-fabric/metadata.xml
new file mode 100644
index 000000000000..c226ec5fd1c2
--- /dev/null
+++ b/sys-fabric/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The sys-fabric category contains OFED software stack and other infiniband related software.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría sys-fabric contiene la pila de software OFED y
+ otro software relacionado con infiniband.
+ </longdescription>
+</catmetadata>
+
diff --git a/sys-fabric/mstflint/Manifest b/sys-fabric/mstflint/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/mstflint/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/mstflint/metadata.xml b/sys-fabric/mstflint/metadata.xml
new file mode 100644
index 000000000000..f1a406d0b751
--- /dev/null
+++ b/sys-fabric/mstflint/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+OpenIB Userspace CM library
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/mstflint/mstflint-1.4-r1.ebuild b/sys-fabric/mstflint/mstflint-1.4-r1.ebuild
new file mode 100644
index 000000000000..e83f0cec0724
--- /dev/null
+++ b/sys-fabric/mstflint/mstflint-1.4-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1.18.g1adcfbf"
+OFED_SNAPSHOT="1"
+
+inherit openib
+
+DESCRIPTION="Mellanox firmware burning application"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/mstflint/mstflint-3.5.0.ebuild b/sys-fabric/mstflint/mstflint-3.5.0.ebuild
new file mode 100644
index 000000000000..f3592bb7bfdf
--- /dev/null
+++ b/sys-fabric/mstflint/mstflint-3.5.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="Mellanox firmware burning application"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}"
+block_other_ofed_versions
diff --git a/sys-fabric/ofed/Manifest b/sys-fabric/ofed/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/ofed/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/ofed/files/90-ib.rules b/sys-fabric/ofed/files/90-ib.rules
new file mode 100644
index 000000000000..789668486c8c
--- /dev/null
+++ b/sys-fabric/ofed/files/90-ib.rules
@@ -0,0 +1,5 @@
+KERNEL=="umad*", NAME="infiniband/%k"
+KERNEL=="issm*", NAME="infiniband/%k"
+KERNEL=="uverbs*", NAME="infiniband/%k", MODE="0666"
+KERNEL=="ucm*", NAME="infiniband/%k", MODE="0666"
+KERNEL=="rdma_cm", NAME="infiniband/%k", MODE="0666"
diff --git a/sys-fabric/ofed/files/openib b/sys-fabric/ofed/files/openib
new file mode 100644
index 000000000000..dddc857359b4
--- /dev/null
+++ b/sys-fabric/ofed/files/openib
@@ -0,0 +1,243 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Based on openibd script from openfabrics.org,
+# Copyright (c) 2006 Mellanox Technologies. All rights reserved.
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ after hotplug
+ before net # init openib before starting any ipoib interfaces
+}
+
+OPENIB_CONFDIR=${OPENIB_CONFDIR:-/etc/infiniband}
+
+if [[ -r ${OPENIB_CONFDIR}/openib.conf ]] ; then
+ . ${OPENIB_CONFDIR}/openib.conf
+fi
+
+# Setting OpenIB start parameters
+POST_LOAD_MODULES=""
+
+if [ "X${SDP_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_sdp"
+ IPOIB_LOAD="yes"
+fi
+
+IPOIB=0
+if [ "X${IPOIB_LOAD}" == "Xyes" ]; then
+ IPOIB=1
+fi
+
+if [ "X${SRP_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_srp"
+fi
+
+if [ "X${SRP_TARGET_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_srp_target"
+fi
+
+if [ "X${RDMA_CM_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES rdma_cm"
+fi
+
+if [ "X${UCM_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_ucm"
+fi
+
+if [ "X${RDS_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_rds"
+fi
+
+if [ "X${ISER_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES ib_iser"
+fi
+
+if [ "X${RDMA_UCM_LOAD}" == "Xyes" ]; then
+ POST_LOAD_MODULES="$POST_LOAD_MODULES rdma_ucm"
+fi
+
+PRE_UNLOAD_MODULES="ib_rds ib_ucm kdapl ib_srp_target scsi_target ib_srp ib_iser ib_sdp rdma_ucm rdma_cm ib_addr ib_cm ib_local_sa findex"
+
+# W/A for unloading modules
+POST_UNLOAD_MODULES="$PRE_UNLOAD_MODULES ib_ipoib ib_sa ib_uverbs ib_umad"
+# ib_mthca ib_ipath - don't unload unless they are in openib.conf
+[[ "${MTHCA_LOAD}" == "yes" ]] && \
+ POST_UNLOAD_MODULES="$POST_UNLOAD_MODULES ib_mthca"
+[[ "${IPATH_LOAD}" == "yes" ]] && \
+ POST_UNLOAD_MODULES="$POST_UNLOAD_MODULES ib_ipath ipath_core"
+
+[[ "${MTHCA_LOAD}" == "yes" || "${IPATH_LOAD}" == "yes" ]] && \
+ POST_UNLOAD_MODULES="$POST_UNLOAD_MODULES ib_mad ib_core"
+
+#STATUS_MODULES="rdma_ucm ib_rds ib_srp ib_sdp rdma_cm ib_addr ib_local_sa findex ib_ipoib ib_ipath ipath_core ib_mthca ib_uverbs ib_umad ib_ucm ib_sa ib_cm ib_mad ib_core"
+
+
+# If module $1 is loaded return - 0 else - 1
+is_module()
+{
+ local RC
+
+ /bin/lsmod | grep -w "$1" > /dev/null 2>&1
+ RC=$?
+
+ return $RC
+}
+
+unload()
+{
+ # Unload module $1
+ if is_module $mod; then
+ /sbin/modprobe -r $mod > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ # Try rmmod if modprobe failed: case that previous installation included more IB modules.
+ /sbin/rmmod $mod > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ ewarn "Failed to unload $mod"
+ return 1
+ fi
+ fi
+ fi
+}
+
+start() {
+ local RC=0
+ ebegin "Initializing Infiniband"
+ eindent
+
+ # Load Mellanox HCA driver if explicitly requested
+ # (however, it should be loaded automatically by udev)
+
+ einfo "Loading HCA and Access Layer drivers"
+
+ if [[ "${MTHCA_LOAD}" == "yes" ]]; then
+ /sbin/modprobe ib_mthca > /dev/null 2>&1
+ RC=$[ $RC + $? ]
+ fi
+ if [[ "${IPATH_LOAD}" == "yes" ]]; then
+ /sbin/modprobe ib_ipath > /dev/null 2>&1
+ RC=$[ $RC + $? ]
+ fi
+
+ # Add node description to sysfs
+ IBSYSDIR="/sys/class/infiniband"
+ if [ -d ${IBSYSDIR} ]; then
+ declare -i hca_id=1
+ for hca in ${IBSYSDIR}/*; do
+ if [ -e ${hca}/node_desc ]; then
+ echo -n "$(hostname -s) HCA-${hca_id}" >> ${hca}/node_desc
+ fi
+ let hca_id++
+ done
+ fi
+ /sbin/modprobe ib_umad > /dev/null 2>&1
+ RC=$[ $RC + $? ]
+ /sbin/modprobe ib_uverbs > /dev/null 2>&1
+ RC=$[ $RC + $? ]
+
+ if [ $IPOIB -eq 1 ]; then
+ # this section is not necessary if all ib-over-ib devices are
+ # aliased properly in /etc/modules.d/openib
+ einfo "loading ib_ipoib module"
+ /sbin/modprobe ib_ipoib > /dev/null 2>&1
+ RC=$[ $RC + $? ]
+ if (( ! RC )); then
+ # start the ipoib devices automatically...
+ # this is probably a bad idea (the concept is taken from the
+ # original SUSE/Redhat-based initscript), and should be removed.
+ # But it works, and is not enabled by default. So I leave it here
+ # for second opinions.
+ local ibdevs=`rc-status -u -nc |egrep 'net\.ib[0-9a-zA-Z]+.*stopped' | awk '{print $1}'`
+ if [ -n "$ibdevs" ] ; then
+ einfo "starting ipoib devices"
+ for ibdev in $ibdevs; do
+ /etc/init.d/$ibdev start
+ done
+ fi
+ fi
+ fi
+
+ # Devices for ib_umad and ib_uverbs should now have been created.
+ if [ ! -d /dev/infiniband/ ]; then
+ eerror "udev failed to create '/dev/infiniband/' devices"
+ RC=1
+ fi
+
+ # Load configured modules
+ if [ "$POST_LOAD_MODULES" != "" ]; then
+ for mod in $POST_LOAD_MODULES
+ do
+ case $mod in
+ ib_iser)
+ # Voltaire requirement
+ /sbin/modprobe --force-modversion $mod > /dev/null 2>&1
+ ;;
+ *)
+ /sbin/modprobe $mod > /dev/null 2>&1
+ ;;
+ esac
+ RC=$?
+ [ $RC -ne 0 ] && eerror "Failed to load $mod"
+ done
+ fi
+
+ eoutdent
+ eend $RC
+}
+
+stop() {
+ ebegin "Stopping Infiniband"
+ local RC=0
+
+ # Check if applications which use infiniband are running
+ local apps="opensm osmtest ibbs ibns"
+ local pid
+
+ for app in $apps
+ do
+ if ( ps -ef | grep $app | grep -v grep > /dev/null 2>&1 ); then
+ eerror "Please stop $app and all applications running over InfiniBand"
+ eend 1
+ return
+ fi
+ done
+
+ if ! is_module ib_core; then
+ einfo "HCA driver is not loaded"
+ eend 0
+ return
+ fi
+
+ # Unload ULPs modules
+
+ if [ "$PRE_UNLOAD_MODULES" != "" ]; then
+ for mod in $PRE_UNLOAD_MODULES
+ do
+ unload $mod || { eend 1; return; }
+ done
+ fi
+
+ # Remove srp_presistant_bind.sh before removing ib_srp module
+ PID_SCRPT_TO_KILL=`ps -efww | grep srp_persistent | grep -v grep | awk '{print $2}'`
+ if ! [ "$PID_SCRPT_TO_KILL" == "" ]; then
+ PID_SLEEP_TO_KILL=`ps -efww | grep $PID_SCRPT_TO_KILL | grep sleep | awk '{print $2}'`
+ kill -9 $PID_SCRPT_TO_KILL
+ fi
+ if ! [ "$PID_SLEEP_TO_KILL" == "" ]; then
+ kill -9 $PID_SLEEP_TO_KILL
+ fi
+
+ # Unload OpenIB modules
+
+ if [ "$POST_UNLOAD_MODULES" != "" ]; then
+ for mod in $POST_UNLOAD_MODULES
+ do
+ unload $mod || RC=1
+ done
+ fi
+
+ eend $RC
+}
+
diff --git a/sys-fabric/ofed/files/openib.conf b/sys-fabric/ofed/files/openib.conf
new file mode 100644
index 000000000000..9b4eb292857c
--- /dev/null
+++ b/sys-fabric/ofed/files/openib.conf
@@ -0,0 +1,27 @@
+# uncomment to load ib_ipoib module
+#IPOIB_LOAD=yes
+
+# uncomment to load ib_sdp module (implies IPOIB_LOAD=yes)
+#SDP_LOAD=yes
+
+# uncomment to load ib_srp module
+#SRP_LOAD=yes
+
+# uncomment to load ib_srp_target module
+#SRP_TARGET_LOAD=yes
+
+# uncomment to load rdma_cm module
+#RDMA_CM_LOAD=yes
+
+# uncomment to load ib_ucm module
+#UCM_LOAD=yes
+
+# uncomment to load ib_rds module
+#RDS_LOAD=yes
+
+# uncomment to load ib_iser module
+#ISER_LOAD=yes
+
+# uncomment to load rdma_ucm module
+#RDMA_UCM_LOAD=yes
+
diff --git a/sys-fabric/ofed/files/openib.env b/sys-fabric/ofed/files/openib.env
new file mode 100644
index 000000000000..2e34cf22f96b
--- /dev/null
+++ b/sys-fabric/ofed/files/openib.env
@@ -0,0 +1 @@
+IBPATH="/usr/sbin"
diff --git a/sys-fabric/ofed/files/openib.modprobe b/sys-fabric/ofed/files/openib.modprobe
new file mode 100644
index 000000000000..52828fb3bf65
--- /dev/null
+++ b/sys-fabric/ofed/files/openib.modprobe
@@ -0,0 +1,12 @@
+# Setup aliases from ip-over-ib devices to the ip-over-ib kernel module.
+# Add to this list if you have more infiniband ports. Or you can set
+# IPOIB_LOAD=yes to have the ip-over-ib interfaces brought up by init.d/openib
+alias ib0 ib_ipoib
+alias ib1 ib_ipoib
+alias ib2 ib_ipoib
+alias ib3 ib_ipoib
+
+alias net-pf-27 ib_sdp
+
+#options ib_mthca msi_x=1
+
diff --git a/sys-fabric/ofed/metadata.xml b/sys-fabric/ofed/metadata.xml
new file mode 100644
index 000000000000..d0db584755a6
--- /dev/null
+++ b/sys-fabric/ofed/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+ </maintainer>
+ <use>
+ <flag name="compat-dapl">Add support for DAPL v1.2 abstraction layer</flag>
+ <flag name="dapl">Add support for DAPL abstraction layer</flag>
+ <flag name="diags">Add dignostic tools for infiniband</flag>
+ <flag name="ibacm">Add support for userspace pre-connection services</flag>
+ <flag name="mstflint">Tools to burn Mellanox firmware</flag>
+ <flag name="opensm">Add OpenSM - Subnet manager for infiniband</flag>
+ <flag name="perftest">Add perftest utils</flag>
+ <flag name="qperf">Add rdma tests</flag>
+ <flag name="sdp">Add SDP tools</flag>
+ <flag name="srp">Suport for userspace part for srp initiator</flag>
+ <flag name="rds">Tools to manage rds sockets</flag>
+ </use>
+</pkgmetadata>
diff --git a/sys-fabric/ofed/ofed-3.12_rc1.ebuild b/sys-fabric/ofed/ofed-3.12_rc1.ebuild
new file mode 100644
index 000000000000..2b083e6880ee
--- /dev/null
+++ b/sys-fabric/ofed/ofed-3.12_rc1.ebuild
@@ -0,0 +1,150 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1.g8336567"
+
+IUSE_OFED_DRIVERS="
+ ofed_drivers_cxgb3
+ ofed_drivers_cxgb4
+ ofed_drivers_ehca
+ ofed_drivers_ipath
+ ofed_drivers_mlx4
+ ofed_drivers_mlx5
+ ofed_drivers_mthca
+ ofed_drivers_nes
+ ofed_drivers_ocrdma
+ ofed_drivers_psm"
+
+inherit openib udev toolchain-funcs
+
+DESCRIPTION="OpenIB system files"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="dapl +diags ibacm mstflint +opensm perftest qperf rds srp ${IUSE_OFED_DRIVERS}"
+
+RDEPEND="!sys-fabric/openib
+ !sys-fabric/openib-files
+ sys-fabric/libibcm:${SLOT}
+ sys-fabric/libibmad:${SLOT}
+ sys-fabric/libibumad:${SLOT}
+ sys-fabric/librdmacm:${SLOT}
+ dapl? ( sys-fabric/dapl:${SLOT} )
+ diags? ( sys-fabric/infiniband-diags:${SLOT} )
+ ibacm? ( sys-fabric/ibacm:${SLOT} )
+ mstflint? ( sys-fabric/mstflint:${SLOT} )
+ opensm? ( sys-fabric/opensm:${SLOT} )
+ perftest? ( sys-fabric/perftest:${SLOT} )
+ qperf? ( sys-fabric/qperf:${SLOT} )
+ srp? ( sys-fabric/srptools:${SLOT} )
+ rds? ( sys-fabric/rds-tools:${SLOT} )
+ ofed_drivers_cxgb3? ( sys-fabric/libcxgb3:${SLOT} )
+ ofed_drivers_cxgb4? ( sys-fabric/libcxgb4:${SLOT} )
+ ofed_drivers_ehca? ( sys-fabric/libehca:${SLOT} )
+ ofed_drivers_ipath? ( sys-fabric/libipathverbs:${SLOT} )
+ ofed_drivers_mlx4? ( sys-fabric/libmlx4:${SLOT} )
+ ofed_drivers_mlx5? ( sys-fabric/libmlx5:${SLOT} )
+ ofed_drivers_mthca? ( sys-fabric/libmthca:${SLOT} )
+ ofed_drivers_nes? ( sys-fabric/libnes:${SLOT} )
+ ofed_drivers_ocrdma? ( sys-fabric/libocrdma:${SLOT} )
+ ofed_drivers_psm? ( sys-fabric/infinipath-psm:${SLOT} )
+ "
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ "
+block_other_ofed_versions
+
+S="${WORKDIR}/${MY_PN}-${OFED_VER}"
+SCRIPTDIR="${S}/ofed_scripts"
+
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ udev_newrules "${SCRIPTDIR}/90-ib.rules" 40-ib.rules
+ insinto /etc/modprobe.d
+ newins "${FILESDIR}/openib.modprobe" openib.conf
+ newenvd "${FILESDIR}/openib.env" 02openib
+ insinto /etc/infiniband
+
+ doinitd "${FILESDIR}/openib"
+
+ # build openib.conf based on ofed_scripts/ofa_kernel.spec
+ build_ipoib=1
+ cp "${SCRIPTDIR}/openib.conf" "${T}"
+ IB_CONF_DIR=${T}
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load UCM module" >> ${IB_CONF_DIR}/openib.conf
+ echo "UCM_LOAD=no" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load RDMA_CM module" >> ${IB_CONF_DIR}/openib.conf
+ echo "RDMA_CM_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load RDMA_UCM module" >> ${IB_CONF_DIR}/openib.conf
+ echo "RDMA_UCM_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Increase ib_mad thread priority" >> ${IB_CONF_DIR}/openib.conf
+ echo "RENICE_IB_MAD=no" >> ${IB_CONF_DIR}/openib.conf
+
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load MTHCA" >> ${IB_CONF_DIR}/openib.conf
+ echo "MTHCA_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ if use ofed_drivers_ipath; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load IPATH" >> ${IB_CONF_DIR}/openib.conf
+ echo "IPATH_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use ofed_drivers_ehca; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load eHCA" >> ${IB_CONF_DIR}/openib.conf
+ echo "EHCA_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use ofed_drivers_mlx4; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load MLX4 modules" >> ${IB_CONF_DIR}/openib.conf
+ echo "MLX4_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if (( build_ipoib )); then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load IPoIB" >> ${IB_CONF_DIR}/openib.conf
+ echo "#IPOIB_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Enable IPoIB Connected Mode" >> ${IB_CONF_DIR}/openib.conf
+ echo "#SET_IPOIB_CM=yes" >> ${IB_CONF_DIR}/openib.conf
+ # from ofa_user.spec:
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Enable IPoIB High Availability daemon" >> ${IB_CONF_DIR}/openib.conf
+ echo "#IPOIBHA_ENABLE=no" >> ${IB_CONF_DIR}/openib.conf
+ echo "# PRIMARY_IPOIB_DEV=ib0" >> ${IB_CONF_DIR}/openib.conf
+ echo "# SECONDARY_IPOIB_DEV=ib1" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use srp; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load SRP module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#SRP_LOAD=no" >> ${IB_CONF_DIR}/openib.conf
+ # from ofa_user.spec:
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Enable SRP High Availability daemon" >> ${IB_CONF_DIR}/openib.conf
+ echo "#SRPHA_ENABLE=no" >> ${IB_CONF_DIR}/openib.conf
+
+ fi
+ if use rds; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load RDS module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#RDS_LOAD=no" >> ${IB_CONF_DIR}/openib.conf
+ fi
+
+ doins "${T}/openib.conf"
+}
+
+pkg_postinst() {
+ einfo "Configuration file installed in /etc/infiniband/openib.conf"
+ einfo "To automatically initialize infiniband on boot, add openib to your"
+ einfo "start-up scripts, like so:"
+ einfo "\`rc-update add openib default\`"
+
+}
diff --git a/sys-fabric/ofed/ofed-3.5.ebuild b/sys-fabric/ofed/ofed-3.5.ebuild
new file mode 100644
index 000000000000..0bd95bf18a11
--- /dev/null
+++ b/sys-fabric/ofed/ofed-3.5.ebuild
@@ -0,0 +1,158 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="OFED.3.5.rc2"
+
+IUSE_OFED_DRIVERS="
+ ofed_drivers_cxgb3
+ ofed_drivers_cxgb4
+ ofed_drivers_ehca
+ ofed_drivers_ipath
+ ofed_drivers_mlx4
+ ofed_drivers_mthca
+ ofed_drivers_nes
+ ofed_drivers_psm"
+
+inherit openib udev toolchain-funcs
+
+DESCRIPTION="OpenIB system files"
+SCRIPTDIR="${S}/ofed_scripts"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="compat-dapl dapl +diags ibacm mstflint +opensm perftest rds sdp srp ${IUSE_OFED_DRIVERS}"
+
+RDEPEND="!sys-fabric/openib
+ !sys-fabric/openib-files
+ sys-fabric/libibcm:${SLOT}
+ sys-fabric/libibmad:${SLOT}
+ sys-fabric/libibumad:${SLOT}
+ sys-fabric/librdmacm:${SLOT}
+ compat-dapl? ( sys-fabric/compat-dapl:${SLOT} )
+ dapl? ( sys-fabric/dapl:${SLOT} )
+ diags? ( sys-fabric/infiniband-diags:${SLOT} )
+ ibacm? ( sys-fabric/ibacm:${SLOT} )
+ mstflint? ( sys-fabric/mstflint:${SLOT} )
+ opensm? ( sys-fabric/opensm:${SLOT} )
+ perftest? ( sys-fabric/perftest:${SLOT} )
+ srp? ( sys-fabric/srptools:${SLOT} )
+ ofed_drivers_cxgb3? ( sys-fabric/libcxgb3:${SLOT} )
+ ofed_drivers_cxgb4? ( sys-fabric/libcxgb4:${SLOT} )
+ ofed_drivers_ehca? ( sys-fabric/libehca:${SLOT} )
+ ofed_drivers_ipath? ( sys-fabric/libipathverbs:${SLOT} )
+ ofed_drivers_mlx4? ( sys-fabric/libmlx4:${SLOT} )
+ ofed_drivers_mthca? ( sys-fabric/libmthca:${SLOT} )
+ ofed_drivers_nes? ( sys-fabric/libnes:${SLOT} )
+ ofed_drivers_psm? ( sys-fabric/infinipath-psm:${SLOT} )
+ "
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ "
+
+src_configure() { :; }
+src_compile() { :; }
+
+src_install() {
+ udev_newrules "${SCRIPTDIR}/90-ib.rules" 40-ib.rules
+ insinto /etc/modprobe.d
+ newins "${FILESDIR}/openib.modprobe" openib.conf
+ newenvd "${FILESDIR}/openib.env" 02openib
+ insinto /etc/infiniband
+
+ doinitd "${FILESDIR}/openib"
+
+ # build openib.conf based on ofed_scripts/ofa_kernel.spec
+ build_ipoib=1
+ build_sdp=1
+ cp "${SCRIPTDIR}/openib.conf" "${T}"
+ IB_CONF_DIR=${T}
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load UCM module" >> ${IB_CONF_DIR}/openib.conf
+ echo "UCM_LOAD=no" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load RDMA_CM module" >> ${IB_CONF_DIR}/openib.conf
+ echo "RDMA_CM_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load RDMA_UCM module" >> ${IB_CONF_DIR}/openib.conf
+ echo "RDMA_UCM_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Increase ib_mad thread priority" >> ${IB_CONF_DIR}/openib.conf
+ echo "RENICE_IB_MAD=no" >> ${IB_CONF_DIR}/openib.conf
+
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load MTHCA" >> ${IB_CONF_DIR}/openib.conf
+ echo "MTHCA_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ if use ofed_drivers_ipath; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load IPATH" >> ${IB_CONF_DIR}/openib.conf
+ echo "IPATH_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use ofed_drivers_ehca; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load eHCA" >> ${IB_CONF_DIR}/openib.conf
+ echo "EHCA_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use ofed_drivers_mlx4; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load MLX4 modules" >> ${IB_CONF_DIR}/openib.conf
+ echo "MLX4_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if (( build_ipoib )); then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load IPoIB" >> ${IB_CONF_DIR}/openib.conf
+ echo "#IPOIB_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Enable IPoIB Connected Mode" >> ${IB_CONF_DIR}/openib.conf
+ echo "#SET_IPOIB_CM=yes" >> ${IB_CONF_DIR}/openib.conf
+ # from ofa_user.spec:
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Enable IPoIB High Availability daemon" >> ${IB_CONF_DIR}/openib.conf
+ echo "#IPOIBHA_ENABLE=no" >> ${IB_CONF_DIR}/openib.conf
+ echo "# PRIMARY_IPOIB_DEV=ib0" >> ${IB_CONF_DIR}/openib.conf
+ echo "# SECONDARY_IPOIB_DEV=ib1" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if (( build_sdp )); then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load SDP module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#SDP_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use srp; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load SRP module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#SRP_LOAD=no" >> ${IB_CONF_DIR}/openib.conf
+ # from ofa_user.spec:
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Enable SRP High Availability daemon" >> ${IB_CONF_DIR}/openib.conf
+ echo "#SRPHA_ENABLE=no" >> ${IB_CONF_DIR}/openib.conf
+
+ fi
+ if use iser; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load ISER module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#ISER_LOAD=no" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use rds; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load RDS module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#RDS_LOAD=no" >> ${IB_CONF_DIR}/openib.conf
+ fi
+ if use vnic; then
+ echo >> ${IB_CONF_DIR}/openib.conf
+ echo "# Load VNIC module" >> ${IB_CONF_DIR}/openib.conf
+ echo "#VNIC_LOAD=yes" >> ${IB_CONF_DIR}/openib.conf
+ fi
+
+ doins "${T}/openib.conf"
+}
+
+pkg_postinst() {
+ einfo "Configuration file installed in /etc/infiniband/openib.conf"
+ einfo "To automatically initialize infiniband on boot, add openib to your"
+ einfo "start-up scripts, like so:"
+ einfo "\`rc-update add openib default\`"
+
+}
diff --git a/sys-fabric/opensm/Manifest b/sys-fabric/opensm/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/opensm/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/opensm/files/opensm-3.3.17-norpm.patch b/sys-fabric/opensm/files/opensm-3.3.17-norpm.patch
new file mode 100644
index 000000000000..1300d923eb7d
--- /dev/null
+++ b/sys-fabric/opensm/files/opensm-3.3.17-norpm.patch
@@ -0,0 +1,32 @@
+--- opensm-3.3.17/configure.in.orig 2014-01-30 23:13:35.000000000 +0400
++++ opensm-3.3.17/configure.in 2014-12-27 02:48:11.264876067 +0300
+@@ -17,11 +17,7 @@
+ [name of the RDMA service: "rdma" when using /etc/init.d/rdma to start RDMA services; "openibd" when using /etc/init.d/openibd to start RDMA services [default=${default_rdma_service}]]))
+ AC_SUBST(RDMA_SERVICE, ${with_rdma_service:-${default_rdma_service}})
+
+-if { rpm -q sles-release || rpm -q openSUSE-release; } >/dev/null 2>&1; then
+- default_stop="0 1 4 6"
+-else
+- default_stop="0 1 6"
+-fi
++default_stop="0 1 6"
+
+ default_start="null"
+
+@@ -282,4 +278,4 @@
+ AC_CONFIG_FILES([man/opensm.8 man/torus-2QoS.8 man/torus-2QoS.conf.5 scripts/opensm.init scripts/redhat-opensm.init scripts/sldd.sh])
+
+ dnl Create the following Makefiles
+-AC_OUTPUT([include/opensm/osm_version.h Makefile include/Makefile complib/Makefile libvendor/Makefile opensm/Makefile osmeventplugin/Makefile osmtest/Makefile opensm.spec])
++AC_OUTPUT([include/opensm/osm_version.h Makefile include/Makefile complib/Makefile libvendor/Makefile opensm/Makefile osmeventplugin/Makefile osmtest/Makefile])
+--- opensm-3.3.17/Makefile.am.orig 2013-02-07 11:46:28.000000000 +0400
++++ opensm-3.3.17/Makefile.am 2014-12-27 02:48:45.133654187 +0300
+@@ -19,7 +19,7 @@
+ doc/partition-config.txt doc/opensm-sriov.txt \
+ doc/opensm_release_notes-3.3.txt
+
+-EXTRA_DIST = autogen.sh opensm.spec $(various_scripts) $(man_MANS) $(docs)
++EXTRA_DIST = autogen.sh $(various_scripts) $(man_MANS) $(docs)
+
+ dist-hook: $(EXTRA_DIST)
+ if [ -x $(top_srcdir)/gen_chlog.sh ] ; then \
diff --git a/sys-fabric/opensm/files/opensm-3.3.17-sldd.patch b/sys-fabric/opensm/files/opensm-3.3.17-sldd.patch
new file mode 100644
index 000000000000..d7eb3ec24b9b
--- /dev/null
+++ b/sys-fabric/opensm/files/opensm-3.3.17-sldd.patch
@@ -0,0 +1,20 @@
+--- opensm-3.3.17/scripts/sldd.sh.in.orig 2013-02-07 11:46:29.000000000 +0400
++++ opensm-3.3.17/scripts/sldd.sh.in 2014-12-27 04:47:24.488636743 +0300
+@@ -42,7 +42,7 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+
+-CONFIG=@sysconfdir@/sysconfig/opensm
++CONFIG=@sysconfdir@/conf.d/sldd
+ if [ -f $CONFIG ]; then
+ . $CONFIG
+ fi
+@@ -57,7 +57,7 @@
+
+ RCP=${RCP:-/usr/bin/scp}
+ RSH=${RSH:-/usr/bin/ssh}
+-IFCONFIG=${IFCONFIG:-'/sbin/ifconfig -a'}
++IFCONFIG=${IFCONFIG:-'/bin/ifconfig -a'}
+
+ declare -i SLDD_DEBUG
+ RESCAN_TIME=${RESCAN_TIME:-60}
diff --git a/sys-fabric/opensm/files/opensm.conf.d b/sys-fabric/opensm/files/opensm.conf.d
new file mode 100644
index 000000000000..4f0cd49a4bc5
--- /dev/null
+++ b/sys-fabric/opensm/files/opensm.conf.d
@@ -0,0 +1,3 @@
+# Provide OpenSM options here.
+# See man opensm for details
+OSM_OPTIONS=""
diff --git a/sys-fabric/opensm/files/opensm.init.d b/sys-fabric/opensm/files/opensm.init.d
new file mode 100644
index 000000000000..30ef8c124762
--- /dev/null
+++ b/sys-fabric/opensm/files/opensm.init.d
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need openib
+ after net # ip net seems to be needed to perform management.
+}
+
+prog=/usr/sbin/opensm
+
+start() {
+ ebegin "Starting OpenSM Infiniband Subnet Manager"
+ start-stop-daemon --start --background --exec $prog -- $OSM_OPTIONS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping OpenSM Infiniband Subnet Manager"
+ start-stop-daemon --stop --exec $prog
+ eend $?
+}
+
diff --git a/sys-fabric/opensm/files/sldd.conf.d b/sys-fabric/opensm/files/sldd.conf.d
new file mode 100644
index 000000000000..ee0e88750310
--- /dev/null
+++ b/sys-fabric/opensm/files/sldd.conf.d
@@ -0,0 +1,21 @@
+# Tho following variables will used for sldd.sh
+#
+# You must setup this for sldd to work
+OSM_HOSTS=""
+
+### Optional variables (defaults are commented out)
+
+# Debug level
+#SLDD_DEBUG="0"
+
+# OpenSM cache files
+#CACHE_FILE="/var/cache/opensm/guid2lid:/var/cache/opensm/guid2mkey:/var/cache/opensm/neighbors"
+
+# System calls
+#PING="ping -w 1 -c 1"
+#RCP="/usr/bin/scp"
+#SSH="/usr/bin/ssh"
+#IFCONFIG="/bin/ifconfig -a"
+
+# Delay between hosts scan
+#RESCAN_TIME="60"
diff --git a/sys-fabric/opensm/files/sldd.init.d b/sys-fabric/opensm/files/sldd.init.d
new file mode 100644
index 000000000000..73aff61b1eb5
--- /dev/null
+++ b/sys-fabric/opensm/files/sldd.init.d
@@ -0,0 +1,26 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need opensm
+ after net # ip net seems to be needed to perform management.
+}
+
+prog=/usr/sbin/sldd.sh
+pidfile=/var/run/sldd.pid
+
+start() {
+ ebegin "Starting Semi-static LID OpenSM Distribution Manager"
+ start-stop-daemon --start --background --pidfile "${pidfile}" \
+ --make-pidfile --wait 500 --exec $prog
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping OpenSM Infiniband Subnet Manager"
+ start-stop-daemon --stop --pidfile "${pidfile}"
+ eend $?
+}
+
diff --git a/sys-fabric/opensm/metadata.xml b/sys-fabric/opensm/metadata.xml
new file mode 100644
index 000000000000..e2e73452a40a
--- /dev/null
+++ b/sys-fabric/opensm/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+ </maintainer>
+ <longdescription>
+OpenSM provides an implementation for an InfiniBand Subnet Manager and
+Administrator. Such a software entity is required to run for in order to
+initialize the InfiniBand hardware (at least one per each InfiniBand subnet).
+</longdescription>
+<use>
+ <flag name="tools">Install ssld extra tool</flag>
+</use>
+</pkgmetadata>
diff --git a/sys-fabric/opensm/opensm-3.3.15.ebuild b/sys-fabric/opensm/opensm-3.3.15.ebuild
new file mode 100644
index 000000000000..b9b7fbeca50c
--- /dev/null
+++ b/sys-fabric/opensm/opensm-3.3.15.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibmad:${SLOT}
+ sys-fabric/libibumad:${SLOT}"
+RDEPEND="$DEPEND
+ net-misc/iputils"
+block_other_ofed_versions
+
+src_configure() {
+ econf \
+ --enable-perf-mgr \
+ --enable-default-event-plugin \
+ --with-osmv="openib"
+}
+
+src_install() {
+ default
+ newconfd "${S}/scripts/opensm.sysconfig" opensm
+ newinitd "${FILESDIR}/opensm.init.d" opensm
+ insinto /etc/logrotate.d
+ newins "${S}/scripts/opensm.logrotate" opensm
+ # we dont nee this int script
+ rm "${ED}/etc/init.d/opensmd" || die "Dropping of upstream initscript failed"
+}
+
+pkg_postinst() {
+ einfo "To automatically configure the infiniband subnet manager on boot,"
+ einfo "edit /etc/opensm.conf and add opensm to your start-up scripts:"
+ einfo "\`rc-update add opensm default\`"
+}
diff --git a/sys-fabric/opensm/opensm-3.3.17-r1.ebuild b/sys-fabric/opensm/opensm-3.3.17-r1.ebuild
new file mode 100644
index 000000000000..4eb75cd58ff6
--- /dev/null
+++ b/sys-fabric/opensm/opensm-3.3.17-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit autotools eutils openib
+
+DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="tools"
+
+DEPEND="
+ sys-fabric/libibmad:${SLOT}
+ sys-fabric/libibumad:${SLOT}"
+RDEPEND="$DEPEND
+ tools? (
+ net-misc/iputils
+ net-misc/openssh
+ )"
+block_other_ofed_versions
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-norpm.patch"
+ epatch "${FILESDIR}/${P}-sldd.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-perf-mgr \
+ --enable-default-event-plugin \
+ --with-osmv="openib"
+}
+
+src_install() {
+ default
+ newconfd "${FILESDIR}/opensm.conf.d" opensm
+ newinitd "${FILESDIR}/opensm.init.d" opensm
+ insinto /etc/logrotate.d
+ newins "${S}/scripts/opensm.logrotate" opensm
+ # we dont nee this int script
+ rm "${ED}/etc/init.d/opensmd" || die "Dropping of upstream initscript failed"
+
+ if use tools; then
+ dosbin scripts/sldd.sh
+ newconfd "${FILESDIR}/sldd.conf.d" sldd
+ newinitd "${FILESDIR}/sldd.init.d" sldd
+ fi
+}
+
+pkg_postinst() {
+ einfo "To automatically configure the infiniband subnet manager on boot,"
+ einfo "edit /etc/opensm.conf and add opensm to your start-up scripts:"
+ einfo "\`rc-update add opensm default\`"
+}
diff --git a/sys-fabric/perftest/Manifest b/sys-fabric/perftest/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/perftest/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/perftest/metadata.xml b/sys-fabric/perftest/metadata.xml
new file mode 100644
index 000000000000..9d257e102d27
--- /dev/null
+++ b/sys-fabric/perftest/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+ </maintainer>
+ <longdescription>
+OpenIB uverbs micro-benchmarks.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/perftest/perftest-1.4.0.ebuild b/sys-fabric/perftest/perftest-1.4.0.ebuild
new file mode 100644
index 000000000000..6a8e581c0bc5
--- /dev/null
+++ b/sys-fabric/perftest/perftest-1.4.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="0.80.gd1763bd"
+OFED_SNAPSHOT="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB uverbs micro-benchmarks"
+
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs:${SLOT}
+ sys-fabric/libibumad:${SLOT}
+ sys-fabric/librdmacm:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
+
+src_install() {
+ dodoc README runme
+ dobin ib_*
+}
diff --git a/sys-fabric/perftest/perftest-2.0.ebuild b/sys-fabric/perftest/perftest-2.0.ebuild
new file mode 100644
index 000000000000..63f61f7a474e
--- /dev/null
+++ b/sys-fabric/perftest/perftest-2.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="0.80.g54c73c6"
+OFED_SNAPSHOT="1"
+
+inherit openib
+
+DESCRIPTION="OpenIB uverbs micro-benchmarks"
+
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs:${SLOT}
+ sys-fabric/libibumad:${SLOT}
+ sys-fabric/librdmacm:${SLOT}"
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
+
+src_install() {
+ dodoc README runme
+ dobin ib_*
+}
diff --git a/sys-fabric/qperf/Manifest b/sys-fabric/qperf/Manifest
new file mode 100644
index 000000000000..a6c7bd74e5e8
--- /dev/null
+++ b/sys-fabric/qperf/Manifest
@@ -0,0 +1 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
diff --git a/sys-fabric/qperf/metadata.xml b/sys-fabric/qperf/metadata.xml
new file mode 100644
index 000000000000..98dc6c52bb2c
--- /dev/null
+++ b/sys-fabric/qperf/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+libibverbs is a library that allows programs to use InfiniBand "verbs"
+for direct access to IB hardware from userspace. For more information
+on verbs, see the InfiniBand Architecture Specification vol. 1,
+especially chapter 11.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/qperf/qperf-0.4.9.ebuild b/sys-fabric/qperf/qperf-0.4.9.ebuild
new file mode 100644
index 000000000000..836ddbdda4bd
--- /dev/null
+++ b/sys-fabric/qperf/qperf-0.4.9.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="Measure RDMA and IP performance"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs:${SLOT}
+ sys-fabric/librdmacm:${SLOT}
+ "
+RDEPEND="
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
diff --git a/sys-fabric/rds-tools/Manifest b/sys-fabric/rds-tools/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/rds-tools/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/rds-tools/files/rds-tools-2.0.4-qa.patch b/sys-fabric/rds-tools/files/rds-tools-2.0.4-qa.patch
new file mode 100644
index 000000000000..0a8e1a575c4a
--- /dev/null
+++ b/sys-fabric/rds-tools/files/rds-tools-2.0.4-qa.patch
@@ -0,0 +1,59 @@
+Respect CC,CFLAGS, fix install paths, don't strip binaries
+
+https://bugs.gentoo.org/show_bug.cgi?id=374805
+--- Makefile.in
++++ Makefile.in
+@@ -1,12 +1,15 @@
+-prefix = $(DESTDIR)@prefix@
+-exec_prefix = $(DESTDIR)@exec_prefix@
+-bindir = $(DESTDIR)@bindir@
+-mandir = $(DESTDIR)@mandir@
+-incdir = $(DESTDIR)@includedir@
++bindir = @bindir@
++exec_prefix = @exec_prefix@
++includedir = @includedir@
++libdir = @libdir@
++mandir = @mandir@
++mkdir_p = @mkdir_p@
++prefix = @prefix@
++INSTALL = /usr/bin/install
+
+ all: all-programs
+
+-CFLAGS = -O2 -Wall -Iinclude
++CFLAGS += -Wall -Iinclude
+ CPPFLAGS = -DDEBUG_EXE -DRDS_VERSION=\"@VERSION@\" -MD -MP -MF $(@D)/.$(basename $(@F)).d
+
+ HEADERS = kernel-list.h pfhack.h include/rds.h
+@@ -29,14 +32,14 @@
+ all-programs: $(PROGRAMS)
+
+ install: $(PROGRAMS)
+- install -d $(bindir)
+- install -m 555 -s $(PROGRAMS) $(bindir)
+- install -d $(mandir)/man1
+- install -d $(mandir)/man7
+- install -m 644 *.1 $(mandir)/man1
+- install -m 644 *.7 $(mandir)/man7
+- install -d $(incdir)/net
+- install -m 444 include/rds.h $(incdir)/net
++ $(INSTALL) -d $(DESTDIR)$(bindir)
++ $(INSTALL) -m 555 $(PROGRAMS) $(DESTDIR)$(bindir)
++ $(INSTALL) -d $(DESTDIR)$(mandir)/man1
++ $(INSTALL) -d $(DESTDIR)$(mandir)/man7
++ $(INSTALL) -m 644 *.1 $(DESTDIR)$(mandir)/man1
++ $(INSTALL) -m 644 *.7 $(DESTDIR)$(mandir)/man7
++ $(INSTALL) -d $(DESTDIR)$(includedir)/net
++ $(INSTALL) -m 444 include/rds.h $(DESTDIR)$(includedir)/net
+
+ clean:
+ rm -f $(PROGRAMS) $(CLEAN_OBJECTS)
+@@ -47,7 +50,7 @@
+
+
+ $(PROGRAMS) : % : %.o $(COMMON_OBJECTS)
+- gcc $(CFLAGS) $(LDFLAGS) -o $@ $^
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+ LOCAL_DFILES := $(wildcard .*.d)
+ ifneq ($(LOCAL_DFILES),)
diff --git a/sys-fabric/rds-tools/metadata.xml b/sys-fabric/rds-tools/metadata.xml
new file mode 100644
index 000000000000..0dcc685509f1
--- /dev/null
+++ b/sys-fabric/rds-tools/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<longdescription>
+uDAPL is a transport neutral infrastructure that provides RDMA capabilities in
+user space. It is the user space component of DAPL, the Direct Access Provider
+Library for RDMA transports. See http://www.datcollaborative.org/
+</longdescription>
+<use>
+</use>
+</pkgmetadata>
diff --git a/sys-fabric/rds-tools/rds-tools-2.0.4-r2.ebuild b/sys-fabric/rds-tools/rds-tools-2.0.4-r2.ebuild
new file mode 100644
index 000000000000..e11ca252fa9f
--- /dev/null
+++ b/sys-fabric/rds-tools/rds-tools-2.0.4-r2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="1"
+
+inherit base openib toolchain-funcs
+
+DESCRIPTION="OpenIB userspace rds-tools"
+
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
+
+DOCS=( README )
+PATCHES=( "${FILESDIR}"/${P}-qa.patch )
+
+pkg_setup() {
+ tc-export CC
+}
diff --git a/sys-fabric/rds-tools/rds-tools-2.0.4-r3.ebuild b/sys-fabric/rds-tools/rds-tools-2.0.4-r3.ebuild
new file mode 100644
index 000000000000..fa4bd15f19b3
--- /dev/null
+++ b/sys-fabric/rds-tools/rds-tools-2.0.4-r3.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit base openib toolchain-funcs
+
+DESCRIPTION="OpenIB userspace rds-tools"
+
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-fabric/libibverbs:${SLOT}"
+RDEPEND="${DEPEND}
+ !sys-fabric/openib-userspace"
+block_other_ofed_versions
+
+DOCS=( README )
+PATCHES=( "${FILESDIR}"/${P}-qa.patch )
+
+pkg_setup() {
+ tc-export CC
+}
diff --git a/sys-fabric/srptools/Manifest b/sys-fabric/srptools/Manifest
new file mode 100644
index 000000000000..ca457c585395
--- /dev/null
+++ b/sys-fabric/srptools/Manifest
@@ -0,0 +1,2 @@
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+DIST OFED-3.5-rc2.tgz 18600237 SHA256 b267cea49bf72790843e6b08e26c10a6954d7736a8b93deed1e632772f4f5fff SHA512 deb83c3417ac60bd5d4c6ac1cadf93d6a34a55ca58365b54bb0c3a8230ba6a7f13e0257515dac0170cc4ab46b558519c86e6c01f7fa49550162feed0b0ea2e89 WHIRLPOOL e6843593fbe4937ffcf600be9cb3dee78e14cbeb4c411a4b64076b1194653cbcb9d4bc6cbd52ad77ac9c6b14d4dd2cdafa4364bfe6924b55896844042aa4d9cd
diff --git a/sys-fabric/srptools/files/srpd.initd b/sys-fabric/srptools/files/srpd.initd
new file mode 100644
index 000000000000..d386df8396ac
--- /dev/null
+++ b/sys-fabric/srptools/files/srpd.initd
@@ -0,0 +1,42 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description="SCSI RDMA Protoaemon daemon"
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if ! modinfo ib_srp > /dev/null 2>&1 ; then
+ eerror "ib_srp module not found!"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig
+ ebegin "Loading ib_srp module"
+ modprobe ib_srp
+ eend $?
+ ebegin "Starting srp_daemon"
+ start-stop-daemon \
+ --start \
+ --background \
+ --make-pidfile \
+ --pidfile ${SRP_DAEMON_PID:-/var/run/srpd.pid} \
+ --exec /usr/sbin/srp_daemon -- ${SRP_DAEMON_OPTS:- -e -R 60}
+ eend $?
+
+}
+
+stop() {
+ ebegin "Stopping srp_daemon"
+ start-stop-daemon --stop --pidfile ${SRP_DAEMON_PID:-/var/run/srpd.pid}
+ eend $?
+ ebegin "Unloading ib_srp module"
+ rmmod ib_srp
+ eend $?
+}
diff --git a/sys-fabric/srptools/metadata.xml b/sys-fabric/srptools/metadata.xml
new file mode 100644
index 000000000000..785fc5394edb
--- /dev/null
+++ b/sys-fabric/srptools/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+ </maintainer>
+ <longdescription>
+srptools is a package of tools for discovering and connecting to SRP
+SCSI targets on InfiniBand fabrics. These targets can be accessed
+with the InfiniBand SRP initiator module, "ib_srp," included in Linux
+kernels 2.6.15 and newer.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-fabric/srptools/srptools-0.0.4-r2.ebuild b/sys-fabric/srptools/srptools-0.0.4-r2.ebuild
new file mode 100644
index 000000000000..da45e738e556
--- /dev/null
+++ b/sys-fabric/srptools/srptools-0.0.4-r2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+OFED_VER="3.5"
+OFED_RC="1"
+OFED_RC_VER="2"
+OFED_SUFFIX="0.1.gce1f64c"
+OFED_SNAPSHOT="1"
+
+inherit openib
+
+DESCRIPTION="Tools for discovering and connecting to SRP CSI targets on InfiniBand fabrics"
+
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs:${SLOT}
+ sys-fabric/libibumad:${SLOT}
+ "
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
+
+src_install() {
+ default
+ newinitd "${FILESDIR}/srpd.initd" srpd
+}
diff --git a/sys-fabric/srptools/srptools-1.0.2.ebuild b/sys-fabric/srptools/srptools-1.0.2.ebuild
new file mode 100644
index 000000000000..2de71bc03263
--- /dev/null
+++ b/sys-fabric/srptools/srptools-1.0.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+OFED_VER="3.12"
+OFED_RC="1"
+OFED_RC_VER="1"
+OFED_SUFFIX="1"
+
+inherit openib
+
+DESCRIPTION="Tools for discovering and connecting to SRP CSI targets on InfiniBand fabrics"
+
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+DEPEND="
+ sys-fabric/libibverbs:${SLOT}
+ sys-fabric/libibumad:${SLOT}
+ "
+RDEPEND="${DEPEND}"
+block_other_ofed_versions
+
+src_install() {
+ default
+ newinitd "${FILESDIR}/srpd.initd" srpd
+}