aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2011-07-15 02:56:08 +0400
committerAlexey Shvetsov <alexxy@gentoo.org>2011-07-15 02:56:08 +0400
commitf557164b26a1a65a60301a9939bea3e9613d66f6 (patch)
treee5f61c675dbce90c84c6fa99b9365ac51c83d552 /sys-cluster
parentUpdate ocfs2 (diff)
downloadsci-f557164b26a1a65a60301a9939bea3e9613d66f6.tar.gz
sci-f557164b26a1a65a60301a9939bea3e9613d66f6.tar.bz2
sci-f557164b26a1a65a60301a9939bea3e9613d66f6.zip
[sys-cluster/open-mx] Initial import
(Portage version: 2.2.0_alpha45/git/Linux x86_64, signed Manifest commit with key F82F92E6)
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/open-mx/Manifest25
-rw-r--r--sys-cluster/open-mx/files/omxoed.initd22
-rw-r--r--sys-cluster/open-mx/files/open-mx-1.4.0-driver.patch14
-rw-r--r--sys-cluster/open-mx/metadata.xml9
-rw-r--r--sys-cluster/open-mx/open-mx-1.4.0.ebuild70
5 files changed, 140 insertions, 0 deletions
diff --git a/sys-cluster/open-mx/Manifest b/sys-cluster/open-mx/Manifest
new file mode 100644
index 000000000..0ee083983
--- /dev/null
+++ b/sys-cluster/open-mx/Manifest
@@ -0,0 +1,25 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX omxoed.initd 435 RMD160 2b3de5347cbae2522b453ad76e1fc7cd743e07f6 SHA1 1f6d0c876bccb12082cee670dc6158920de1f31b SHA256 9227919d4f76fd402296d7163b7d055e182847b3524b52276a82eb530a6c5a99
+AUX open-mx-1.4.0-driver.patch 284 RMD160 d97cb11234a48b37748fa101b12d8ccc628f333c SHA1 cc8b123dd3d9b3a479ace1d12bc790e2de7a0ffb SHA256 cf6b97ecdd350e531c40154ca5efe6e134cec25f60b34d5cebd9f7d5ae3814c8
+DIST open-mx-1.4.0.tar.gz 1028002 RMD160 131a6a0c8512e7852887a87c774200be693a219f SHA1 344b4eed70ddc575fd49b97d4148220e2d028748 SHA256 708046da0a6bb72ba022ac34640caaee8a544a4b26b5fe56420942d5ba26259e
+EBUILD open-mx-1.4.0.ebuild 1667 RMD160 183e7775a971dffb5b991648d4fbd772e0ed344d SHA1 8de83dcfc8899949d64197997692e9e080d07e42 SHA256 3ef65d179221e73e41df5b191929ea1ad1f2c3345a17d4190945f5bbe5bad572
+MISC metadata.xml 256 RMD160 297cebf084cdeb7898dc63f961ebecc0d2b1eb41 SHA1 6ed907e703b338a26cd2652a1f63c2dbb11b85d4 SHA256 c2578751d289276468e4ab84773d4bb935f059a2e0e6a3416e3d3ef311d206e6
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iQIcBAEBCAAGBQJOH3QIAAoJEOf+E+/4L5LmQrEQAKlk6+asmcV2NoQzhb19tVKT
+SEw7zJTIKd/uB3SQNdWght384bHfYp/JTIHvzvaKoxNbMmLKNWv2BsbTQzW3Plwe
+eDjP3hdlNDiksU0k7gW7nRUVyNPA8PR4jPF/p7QEh+CdGnNzKN5HOTYbSs+y+v90
+qbaBN3UY70X+ErgfdDFa7sJf0iKH9srhJ7HvNx07u/Sh7hNpIKWgmunKTn8ljwdK
+qP39UXF/QRy0rve6q0NihNZ+VhK5Ea3EhlL5hJ4r0vsE05IUt1ztcrV6aUkkR3nV
+xdt1ZKeFwOvwB2rM81lrafjPiB1wu6bAvmkTiLIxvci+hMELEvB8EVHV6yKOOilS
+Ps4OIMLun2ugpy/qlYnmhf7oZxSGjTTgYRkWP3Ce7zq2LlfbVisKijK2p3sUHUpl
+68Xv4YspgEejX/LvU08Qs8cAEZodrlOVY0w8G9hNY/hYN4lHC5z0Smu3Vp6ugEBt
+Ny+CIZ8FiE7RKi6n0cYYdcrbAPAG3d0gnnZ23PFNJvJ2dKdFPCQ2wqTIPY9fccbJ
+QriOMD58DK8BKsg3/VAoa36ZHBOFh08fTMcyUOmpWDiesVxPDD2og5qMzeMCTaKz
+tlNPV/wQGAZNowo1VF5YwhtqUb2jfhH0zH9WHdDh6lAMOWH44oizunfoex8cscMf
+5StRl9n7PBGKJaWihI1N
+=iWmt
+-----END PGP SIGNATURE-----
diff --git a/sys-cluster/open-mx/files/omxoed.initd b/sys-cluster/open-mx/files/omxoed.initd
new file mode 100644
index 000000000..1644f71cb
--- /dev/null
+++ b/sys-cluster/open-mx/files/omxoed.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --start --exec /usr/bin/omeoed \
+ --pidfile /var/run/omeoed.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --exec /usr/bin/omeoed \
+ --pidfile /var/run/omeoed.pid
+ eend $?
+}
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 000000000..e082865c2
--- /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 000000000..a64f2d240
--- /dev/null
+++ b/sys-cluster/open-mx/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cluster</herd>
+ <maintainer>
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-cluster/open-mx/open-mx-1.4.0.ebuild b/sys-cluster/open-mx/open-mx-1.4.0.ebuild
new file mode 100644
index 000000000..35aee2ce1
--- /dev/null
+++ b/sys-cluster/open-mx/open-mx-1.4.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit autotools linux-mod multilib
+
+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/28399/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug modules static-libs"
+
+DEPEND="
+ sys-apps/hwloc
+ >=virtual/linux-sources-2.6"
+RDEPEND="
+ sys-apps/hwloc
+ sys-apps/module-init-tools"
+
+MODULE_NAMES="open-mx(misc:${S}/driver/linux)"
+BUILD_TARGETS="all"
+BUILD_PARAMS="KDIR=${KERNEL_DIR}"
+
+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 \
+ $(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
+ # install udev rules
+ insinto /etc/udev/rules.d
+ doins "${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
+}