summaryrefslogtreecommitdiff
path: root/sys-cluster/open-mx
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/open-mx')
-rw-r--r--sys-cluster/open-mx/Manifest7
-rw-r--r--sys-cluster/open-mx/files/omxoed.initd45
-rw-r--r--sys-cluster/open-mx/files/open-mx-1.4.0-driver.patch14
-rw-r--r--sys-cluster/open-mx/metadata.xml12
-rw-r--r--sys-cluster/open-mx/open-mx-1.5.4.ebuild78
5 files changed, 156 insertions, 0 deletions
diff --git a/sys-cluster/open-mx/Manifest b/sys-cluster/open-mx/Manifest
new file mode 100644
index 000000000000..cb8b5475543c
--- /dev/null
+++ b/sys-cluster/open-mx/Manifest
@@ -0,0 +1,7 @@
+AUX omxoed.initd 912 SHA256 cf328d447b9db77ec1879f4bbff1c86f9f46021f70cb3623ce0636c486de61f4 SHA512 ecfc0419317ca767d099f8089e92d08396359c5fd223123281bdada1f165619ef73498b1b0732a5f9f280551e7e4fb5efccea69450b68e6c1360405ff84f48dd WHIRLPOOL 71cfdf545a0970bbb1b10020832283c65ad28f235f8ebb2792b3b19d7c94d098d5a7fdf4cf0df251a5cbb8a388e7adf76ac03b1a660de28de14c2594e31d29c8
+AUX open-mx-1.4.0-driver.patch 284 SHA256 cf6b97ecdd350e531c40154ca5efe6e134cec25f60b34d5cebd9f7d5ae3814c8 SHA512 8807f515f6bc29c8500b282b69d5cb7030e25804e0597b44e6015988ea639487882ad3ca3d650aec21ff06815662e11753d8524dcc8b713bcbb9fd318fa78488 WHIRLPOOL 7ae599fec16306bbb3e2bafdf97ee10f0b62929690402ce8a0ecb4171c533a91d0c9e5c60d7882a55e8051a799a45c9762b69ef0cdae39183356d21b73b009b8
+DIST open-mx-1.5.4.tar.gz 1094452 SHA256 78192041c55afc5328fef159499410e40b9d1dd6ab529abbe15f0843278624cc SHA512 df41132de0c6f7a20a1cdb9aff3c654d5e306771369c12086affda785686e1a3ed23ba82e617618ebbd72ffa3b32d1f3c76e4450d6ab772d9e5a3080f6a3e977 WHIRLPOOL 16fb2f0ebaba6b97ec4b58459534d4642afe1e77ce68fdc001f053e4a40555601196a223933c3715a11490cd17b84cfc0f1512d1d4caa0bcb84060077f127485
+EBUILD open-mx-1.5.4.ebuild 1913 SHA256 4e86f46013488b713cf92f564739b545217c3723f5d7da5e34c139cf64493e55 SHA512 134a61592d9bc9ed16edff25b05548543d5b616dab241cc99e9d7a0e015c306b0f46351ec4ff83b6d2c629bfbd2d839fcf1cefb1f5b6042f85032e68c039ba7f WHIRLPOOL a577ac343734c2abced44e1fb0ddb889c9914e1596b1041d82aeef04cfe272973812cc38a54acd7bd5a028f047a601ead1b40052294fb8486453c2b1486d973e
+MISC ChangeLog 2999 SHA256 419e37cf9e9d52979de7f2185df99455382561e4fc967ddcf445c33ff36f21ea SHA512 ca798bf5e81eb787466a5fef80624f1df4431a8af0d7e69346ce6818e720ce725bb1733379f25a10d9507be372314a8c0ffffc0bd73acf48a89aeb02bfa0c4ba WHIRLPOOL 3f634cd17433d8112396cb9e9e21a409682b61e229fbf6e351b142f7ab583a401ded11da1fc889a333e0db7a239b9b610c47de19898a32dad8d3322f5edf979e
+MISC ChangeLog-2015 1471 SHA256 267c364e5b9395829f611fc4aa8ced22008e0e942bcdd84d053063519e584e2e SHA512 1318f9f6a5cd50b7b11e68fc92c64503760fe0588ea6a91727db2b5e8b7525c4d3a40953050f5b70765fa89ce8859f447b38a336fea671ed8c5d5ab55004bde1 WHIRLPOOL c3259637e0a7b76e5400b39e7c9540f9f444e2432bafb3f684440ee994591fee8569df37becdac48a2cfc2f32d6a1c21592c7eb1208a24700aa6b480f13d5658
+MISC metadata.xml 365 SHA256 90e0eb71575b3b48ddebbb80e17f8a75e2e071f1b8048ec7ad42b62e3179995f SHA512 debd6bb734810af46390ed76b73151e5729999aff31956951cf9482e06ae6d08e4d642f9fc27ff99f0947b0b63214dc9ca6514e760d0d93a79bcd9ea79b60743 WHIRLPOOL 3f4277a73ba9bcbebc283ee05e6d99c5827b52ebe47ba0acd8b02f6207132b1ed6618f7408c85bfbf9588a2b222adac3ff2578a715d21521b95a290be3c9a9a6
diff --git a/sys-cluster/open-mx/files/omxoed.initd b/sys-cluster/open-mx/files/omxoed.initd
new file mode 100644
index 000000000000..765842ed7f68
--- /dev/null
+++ b/sys-cluster/open-mx/files/omxoed.initd
@@ -0,0 +1,45 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+checksystem() {
+ if [ -c /dev/open-mx ]; then
+ einfo "Open-MX module already loaded"
+ return 0
+ else
+ einfo "Checking if Open-MX module present"
+ if [ "x$(modprobe -l open-mx | grep open-mx)" == "x" ]; then
+ eerror "open-mx not found!"
+ return 1
+ fi
+ fi
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ checksystem || return 1
+ if [ ! -c /dev/open-mx ]; then
+ ebegin "Loading open-mx module"
+ modprobe -q open-mx
+ fi
+ start-stop-daemon --start --exec /usr/bin/omxoed \
+ --background --make-pidfile \
+ --pidfile /var/run/omeoed.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --exec /usr/bin/omxoed \
+ --pidfile /var/run/omeoed.pid
+ eend $?
+}
+
+status() {
+ ebegin "Showing current active Open-MX peers"
+ omx_info -q
+}
diff --git a/sys-cluster/open-mx/files/open-mx-1.4.0-driver.patch b/sys-cluster/open-mx/files/open-mx-1.4.0-driver.patch
new file mode 100644
index 000000000000..e082865c235a
--- /dev/null
+++ b/sys-cluster/open-mx/files/open-mx-1.4.0-driver.patch
@@ -0,0 +1,14 @@
+--- Makefile.am 2011-07-15 02:42:53.000000000 +0400
++++ Makefile.am 2011-07-15 02:43:02.000000000 +0400
+@@ -20,11 +20,6 @@
+
+ SUBDIRS =
+
+-# Driver
+-if OMX_BUILD_DRIVER
+- SUBDIRS += driver/linux
+-endif
+-
+ # Library
+ if OMX_BUILD_LIBRARY
+ SUBDIRS += libopen-mx tools tests tests/mx
diff --git a/sys-cluster/open-mx/metadata.xml b/sys-cluster/open-mx/metadata.xml
new file mode 100644
index 000000000000..fc70a30f312d
--- /dev/null
+++ b/sys-cluster/open-mx/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
+<maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-cluster/open-mx/open-mx-1.5.4.ebuild b/sys-cluster/open-mx/open-mx-1.5.4.ebuild
new file mode 100644
index 000000000000..ac461bfced30
--- /dev/null
+++ b/sys-cluster/open-mx/open-mx-1.5.4.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools eutils linux-mod multilib toolchain-funcs udev
+
+DESCRIPTION="Open-MX - Myrinet Express over Generic Ethernet Hardware"
+HOMEPAGE="http://open-mx.gforge.inria.fr/"
+SRC_URI="http://gforge.inria.fr/frs/download.php/34371/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug modules static-libs"
+
+DEPEND="
+ sys-apps/hwloc
+ virtual/linux-sources
+ virtual/pkgconfig"
+RDEPEND="
+ sys-apps/hwloc
+ virtual/modutils"
+
+MODULE_NAMES="open-mx(misc:${S}/driver/linux)"
+BUILD_TARGETS="all"
+BUILD_PARAMS="KDIR=${KERNEL_DIR}"
+
+pkg_setup() {
+ einfo "You can set desired mtu by setting OPEN_MX_MTU in make.conf"
+ linux-mod_pkg_setup
+}
+
+src_prepare() {
+ # We still want to configure driver but dont want to build it at all
+ epatch "${FILESDIR}/open-mx-1.4.0-driver.patch"
+ # We dont want tests
+ sed -e 's:tests/mx::g' \
+ -e 's:tests::g' \
+ -i Makefile.am || die "sed failed"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-mtu=${OPEN_MX_MTU:-9000} \
+ --with-linux="${KERNEL_DIR}" \
+ --with-linux-release=${KV_FULL} \
+ $(use_enable static-libs static) \
+ $(use_enable debug)
+}
+
+src_compile() {
+ default
+ if use modules; then
+ cd "${S}/driver/linux"
+ linux-mod_src_compile || die "failed to build driver"
+ fi
+}
+
+src_install() {
+ default
+ use static-libs || find "${ED}" -name '*.*a' -exec rm {} +
+ # Drop init scripts
+ rm -rf "${ED}/usr/sbin" || die
+ rm "${ED}/usr/bin/omx_check"
+ # install udev rules
+ udev_dorules "${ED}/etc/open-mx/10-open-mx.rules"
+ dodoc "${ED}/usr/share/open-mx/FAQ.html"
+ # Drop misc stuff
+ rm "${ED}/etc/open-mx/10-open-mx.rules" || die
+ rm -rf "${ED}/usr/share/open-mx" || die
+ newinitd "${FILESDIR}/omxoed.initd" omxoed
+ if use modules; then
+ cd "${S}/driver/linux"
+ linux-mod_src_install || die "failed to install driver"
+ fi
+}