diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2011-08-31 18:34:14 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2011-08-31 18:34:14 +0000 |
commit | ba25f2bda466e234cbe5451a79c23aff22bee9fb (patch) | |
tree | e0e3e7fee13d7cd903c0acc7b67dc51121f88c01 /sys-cluster/open-mx | |
parent | Revision bump to finish Gentoo Prefix support, signed off by maintainer in bu... (diff) | |
download | historical-ba25f2bda466e234cbe5451a79c23aff22bee9fb.tar.gz historical-ba25f2bda466e234cbe5451a79c23aff22bee9fb.tar.bz2 historical-ba25f2bda466e234cbe5451a79c23aff22bee9fb.zip |
[sys-cluster/open-mx] Initial import
Package-Manager: portage-2.2.0_alpha51/cvs/Linux x86_64
Diffstat (limited to 'sys-cluster/open-mx')
-rw-r--r-- | sys-cluster/open-mx/ChangeLog | 12 | ||||
-rw-r--r-- | sys-cluster/open-mx/Manifest | 28 | ||||
-rw-r--r-- | sys-cluster/open-mx/files/omxoed.initd | 46 | ||||
-rw-r--r-- | sys-cluster/open-mx/files/open-mx-1.4.0-driver.patch | 14 | ||||
-rw-r--r-- | sys-cluster/open-mx/metadata.xml | 9 | ||||
-rw-r--r-- | sys-cluster/open-mx/open-mx-1.4.0.ebuild | 71 | ||||
-rw-r--r-- | sys-cluster/open-mx/open-mx-1.5.0.ebuild | 77 |
7 files changed, 257 insertions, 0 deletions
diff --git a/sys-cluster/open-mx/ChangeLog b/sys-cluster/open-mx/ChangeLog new file mode 100644 index 000000000000..a59888381c04 --- /dev/null +++ b/sys-cluster/open-mx/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for sys-cluster/open-mx +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/open-mx/ChangeLog,v 1.1 2011/08/31 18:34:14 alexxy Exp $ + +*open-mx-1.5.0 (31 Aug 2011) +*open-mx-1.4.0 (31 Aug 2011) + + 31 Aug 2011; Alexey Shvetsov <alexxy@gentoo.org> +open-mx-1.4.0.ebuild, + +files/open-mx-1.4.0-driver.patch, +open-mx-1.5.0.ebuild, + +files/omxoed.initd, +metadata.xml: + Initial import + diff --git a/sys-cluster/open-mx/Manifest b/sys-cluster/open-mx/Manifest new file mode 100644 index 000000000000..1eef3eb60c9c --- /dev/null +++ b/sys-cluster/open-mx/Manifest @@ -0,0 +1,28 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX omxoed.initd 1024 RMD160 924c417f944aa400b6c2d8dc7cba5381096493b6 SHA1 e31de2ee2219b4592e200c597bba13589cf8d564 SHA256 bc919dacafb54c1b07f052bd9c09e390de6eb49a6ad4ee1dfe281e24e71a21c5 +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 9c1185a5c5e9fc54612808977ee8f548b2258d31 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +DIST open-mx-1.5.0.tar.gz 1073137 RMD160 432a302de247490c90f4cf82b204ab28a3e837e2 SHA1 77d8e42fb7f1855a8c7f5595e77ad7faec4e0ae2 SHA256 96a89c630e61e61288a644c09944b3bb729f087013a66535d9d244f936abec17 +EBUILD open-mx-1.4.0.ebuild 1798 RMD160 f542c5d62252d3a52641124d4fd4002cbe0da35c SHA1 fc74c300e7e63982145e58fbcbb44bfddd25ab6b SHA256 2465ffd996c1857ea2ac344d4ab8339fed9982a82e40c45b9393f437b7966760 +EBUILD open-mx-1.5.0.ebuild 1941 RMD160 577b763190c8802421afa34b7718f3283311d78a SHA1 5e7c29f8351f987a27bc47bda9b44495a818303e SHA256 3670c24e5e4d52019e11a1eb5c4eb698b4cb0112d84ff6e73fb6c2f0535c5288 +MISC ChangeLog 460 RMD160 c2fec9d6a86aed354a1aefe75573242b3d9aade6 SHA1 941ad6cea13086b3579c381b5e411eadf2fae670 SHA256 378dda5f8e05cba97ba8787c0718ae39a695b0d20f864c1c2c6cda5b42ba7eaa +MISC metadata.xml 256 RMD160 297cebf084cdeb7898dc63f961ebecc0d2b1eb41 SHA1 6ed907e703b338a26cd2652a1f63c2dbb11b85d4 SHA256 c2578751d289276468e4ab84773d4bb935f059a2e0e6a3416e3d3ef311d206e6 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iQIcBAEBCAAGBQJOXn6UAAoJEOf+E+/4L5LmI6QP/1wg8prniRDdv4bcstLnrfZE +0rKl3QjcnoFF43FcX5/g/u1N0f/dA7mkwHycWff7r0WEHtHDAIKkEhLYpTjgr2kL +PvHCyPbiJQux/QZsh9xXSm8B0uv1V5n29kMQy/VVyhMrKFgr+utoa5jpO8BYyeje +7ikN5sUv0wmYi3dZo/s5tERLccrL2cRiYpScEbcZDT3FLGoXKI8G8JC3N63glsFN +yCsPjpTSqsZyxwRUt0QxEy/920wY+ChpPwbbWC+1GbH1b6aCfyurW2Bg5dBOsFoz +Zka/1Ix81FT+exKRleaEvodNFIxwygYN8IzylfaZsduIvWPe0g8m0FOYNPcH3PfP +pbPX4TGEB7NxFiXzD3bwvzKs48MUblFKwBI/1QPQlIp6RZEp6xB2Ha2JlyjfMhZ6 +5rsmmnSd6mpsN5hbKAKAX9BV86D4M4qgH4IGUVidUILTfA8m77+iT8wttS2MMG5n +Zpxq+SEhLobqdRvBAv1LjIjk3Q0r1xWnvCuZWlNImGjnwhfsuryDKWY5ZezjnVCA +unt75e6lKhaalVFNIsWL6de/tRP+ZbrF/IDarAlww3qSqt31RnLqp50b8RXIHye4 +MYFmGKoADJDmW0b1a7WKQ1tjTG/cBlszZrS+L3dQPmdp7u47qha4vz90X18zjXKS +VPfWjYq3yrrsxhb2fWT1 +=EFWE +-----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 000000000000..295e35bcba55 --- /dev/null +++ b/sys-cluster/open-mx/files/omxoed.initd @@ -0,0 +1,46 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/open-mx/files/omxoed.initd,v 1.1 2011/08/31 18:34:14 alexxy Exp $ + +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..a64f2d240d92 --- /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 000000000000..8cbc3d9ac280 --- /dev/null +++ b/sys-cluster/open-mx/open-mx-1.4.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/open-mx/open-mx-1.4.0.ebuild,v 1.1 2011/08/31 18:34:14 alexxy Exp $ + +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 ~x86" +IUSE="debug modules static-libs" + +DEPEND=" + sys-apps/hwloc + virtual/linux-sources" +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 + rm "${ED}/usr/bin/omx_check" + # 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 +} diff --git a/sys-cluster/open-mx/open-mx-1.5.0.ebuild b/sys-cluster/open-mx/open-mx-1.5.0.ebuild new file mode 100644 index 000000000000..549a6ec80ba3 --- /dev/null +++ b/sys-cluster/open-mx/open-mx-1.5.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/open-mx/open-mx-1.5.0.ebuild,v 1.1 2011/08/31 18:34:14 alexxy Exp $ + +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/28871/${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" +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}" + +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} \ + $(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 + 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 +} |