From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QhUpX-0001Nv-Il for garchives@archives.gentoo.org; Thu, 14 Jul 2011 22:56:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ACA9A21C0B3; Thu, 14 Jul 2011 22:56:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6B32B21C0B3 for ; Thu, 14 Jul 2011 22:56:18 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC4E42AC2CB for ; Thu, 14 Jul 2011 22:56:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id DEEA48003D for ; Thu, 14 Jul 2011 22:56:16 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/open-mx/files/, sys-cluster/open-mx/ X-VCS-Repository: proj/sci X-VCS-Files: sys-cluster/open-mx/files/omxoed.initd sys-cluster/open-mx/files/open-mx-1.4.0-driver.patch sys-cluster/open-mx/metadata.xml sys-cluster/open-mx/open-mx-1.4.0.ebuild X-VCS-Directories: sys-cluster/open-mx/files/ sys-cluster/open-mx/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: f557164b26a1a65a60301a9939bea3e9613d66f6 Date: Thu, 14 Jul 2011 22:56:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 074524c3f70697131a7f748a49024f05 commit: f557164b26a1a65a60301a9939bea3e9613d66f6 Author: Alexey Shvetsov gentoo org> AuthorDate: Thu Jul 14 22:56:08 2011 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Thu Jul 14 22:56:08 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3Df557164b [sys-cluster/open-mx] Initial import (Portage version: 2.2.0_alpha45/git/Linux x86_64, signed Manifest commit = with key F82F92E6) --- sys-cluster/open-mx/files/omxoed.initd | 22 ++++++ .../open-mx/files/open-mx-1.4.0-driver.patch | 14 ++++ sys-cluster/open-mx/metadata.xml | 9 +++ sys-cluster/open-mx/open-mx-1.4.0.ebuild | 70 ++++++++++++++= ++++++ 4 files changed, 115 insertions(+), 0 deletions(-) diff --git a/sys-cluster/open-mx/files/omxoed.initd b/sys-cluster/open-mx= /files/omxoed.initd new file mode 100644 index 0000000..1644f71 --- /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-c= luster/open-mx/files/open-mx-1.4.0-driver.patch new file mode 100644 index 0000000..e082865 --- /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 @@ +=20 + SUBDIRS =3D +=20 +-# Driver +-if OMX_BUILD_DRIVER +- SUBDIRS +=3D driver/linux +-endif +- + # Library + if OMX_BUILD_LIBRARY + SUBDIRS +=3D libopen-mx tools tests tests/mx diff --git a/sys-cluster/open-mx/metadata.xml b/sys-cluster/open-mx/metad= ata.xml new file mode 100644 index 0000000..a64f2d2 --- /dev/null +++ b/sys-cluster/open-mx/metadata.xml @@ -0,0 +1,9 @@ + + + + cluster + + alexxy@gentoo.org + Alexey Shvetsov + + 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 0000000..35aee2c --- /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=3D4 + +inherit autotools linux-mod multilib + +DESCRIPTION=3D"Open-MX - Myrinet Express over Generic Ethernet Hardware" +HOMEPAGE=3D"http://open-mx.gforge.inria.fr/" +SRC_URI=3D"http://gforge.inria.fr/frs/download.php/28399/${P}.tar.gz" + +LICENSE=3D"GPL-2 LGPL-2" +SLOT=3D"0" +KEYWORDS=3D"~amd64" +IUSE=3D"debug modules static-libs" + +DEPEND=3D" + sys-apps/hwloc + >=3Dvirtual/linux-sources-2.6" +RDEPEND=3D" + sys-apps/hwloc + sys-apps/module-init-tools" + +MODULE_NAMES=3D"open-mx(misc:${S}/driver/linux)" +BUILD_TARGETS=3D"all" +BUILD_PARAMS=3D"KDIR=3D${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 +}