Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/open-mx: open-mx-1.5.0.ebuild ChangeLog metadata.xml open-mx-1.4.0.ebuild
Date: Wed, 31 Aug 2011 18:34:26
Message-Id: 20110831183414.9FDEF20051@flycatcher.gentoo.org
1 alexxy 11/08/31 18:34:14
2
3 Added: open-mx-1.5.0.ebuild ChangeLog metadata.xml
4 open-mx-1.4.0.ebuild
5 Log:
6 [sys-cluster/open-mx] Initial import
7
8 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 sys-cluster/open-mx/open-mx-1.5.0.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/open-mx-1.5.0.ebuild?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/open-mx-1.5.0.ebuild?rev=1.1&content-type=text/plain
15
16 Index: open-mx-1.5.0.ebuild
17 ===================================================================
18 # Copyright 1999-2011 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $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 $
21
22 EAPI=4
23
24 inherit autotools linux-mod multilib
25
26 DESCRIPTION="Open-MX - Myrinet Express over Generic Ethernet Hardware"
27 HOMEPAGE="http://open-mx.gforge.inria.fr/"
28 SRC_URI="http://gforge.inria.fr/frs/download.php/28871/${P}.tar.gz"
29
30 LICENSE="GPL-2 LGPL-2"
31 SLOT="0"
32 KEYWORDS="~amd64 ~x86"
33 IUSE="debug modules static-libs"
34
35 DEPEND="
36 sys-apps/hwloc
37 virtual/linux-sources"
38 RDEPEND="
39 sys-apps/hwloc
40 sys-apps/module-init-tools"
41
42 MODULE_NAMES="open-mx(misc:${S}/driver/linux)"
43 BUILD_TARGETS="all"
44 BUILD_PARAMS="KDIR=${KERNEL_DIR}"
45
46 pkg_setup() {
47 einfo "You can set desired mtu by setting OPEN_MX_MTU in make.conf"
48 linux-mod_pkg_setup
49 }
50
51 src_prepare() {
52 # We still want to configure driver but dont want to build it at all
53 epatch "${FILESDIR}/open-mx-1.4.0-driver.patch"
54 # We dont want tests
55 sed -e 's:tests/mx::g' \
56 -e 's:tests::g' \
57 -i Makefile.am || die "sed failed"
58 eautoreconf
59 }
60
61 src_configure() {
62 econf \
63 --with-mtu=${OPEN_MX_MTU:-9000} \
64 $(use_enable static-libs static) \
65 $(use_enable debug)
66 }
67
68 src_compile() {
69 default
70 if use modules; then
71 cd "${S}/driver/linux"
72 linux-mod_src_compile || die "failed to build driver"
73 fi
74 }
75
76 src_install() {
77 default
78 use static-libs || find "${ED}" -name '*.*a' -exec rm {} +
79 # Drop init scripts
80 rm -rf "${ED}/usr/sbin" || die
81 rm "${ED}/usr/bin/omx_check"
82 # install udev rules
83 insinto /etc/udev/rules.d
84 doins "${ED}/etc/open-mx/10-open-mx.rules"
85 dodoc "${ED}/usr/share/open-mx/FAQ.html"
86 # Drop misc stuff
87 rm "${ED}/etc/open-mx/10-open-mx.rules" || die
88 rm -rf "${ED}/usr/share/open-mx" || die
89 newinitd "${FILESDIR}/omxoed.initd" omxoed
90 if use modules; then
91 cd "${S}/driver/linux"
92 linux-mod_src_install || die "failed to install driver"
93 fi
94 }
95
96
97
98 1.1 sys-cluster/open-mx/ChangeLog
99
100 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/ChangeLog?rev=1.1&view=markup
101 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/ChangeLog?rev=1.1&content-type=text/plain
102
103 Index: ChangeLog
104 ===================================================================
105 # ChangeLog for sys-cluster/open-mx
106 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
107 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/open-mx/ChangeLog,v 1.1 2011/08/31 18:34:14 alexxy Exp $
108
109 *open-mx-1.5.0 (31 Aug 2011)
110 *open-mx-1.4.0 (31 Aug 2011)
111
112 31 Aug 2011; Alexey Shvetsov <alexxy@g.o> +open-mx-1.4.0.ebuild,
113 +files/open-mx-1.4.0-driver.patch, +open-mx-1.5.0.ebuild,
114 +files/omxoed.initd, +metadata.xml:
115 Initial import
116
117
118
119
120 1.1 sys-cluster/open-mx/metadata.xml
121
122 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/metadata.xml?rev=1.1&view=markup
123 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/metadata.xml?rev=1.1&content-type=text/plain
124
125 Index: metadata.xml
126 ===================================================================
127 <?xml version="1.0" encoding="UTF-8"?>
128 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
129 <pkgmetadata>
130 <herd>cluster</herd>
131 <maintainer>
132 <email>alexxy@g.o</email>
133 <name>Alexey Shvetsov</name>
134 </maintainer>
135 </pkgmetadata>
136
137
138
139 1.1 sys-cluster/open-mx/open-mx-1.4.0.ebuild
140
141 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/open-mx-1.4.0.ebuild?rev=1.1&view=markup
142 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/open-mx/open-mx-1.4.0.ebuild?rev=1.1&content-type=text/plain
143
144 Index: open-mx-1.4.0.ebuild
145 ===================================================================
146 # Copyright 1999-2011 Gentoo Foundation
147 # Distributed under the terms of the GNU General Public License v2
148 # $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 $
149
150 EAPI=4
151
152 inherit autotools linux-mod multilib
153
154 DESCRIPTION="Open-MX - Myrinet Express over Generic Ethernet Hardware"
155 HOMEPAGE="http://open-mx.gforge.inria.fr/"
156 SRC_URI="http://gforge.inria.fr/frs/download.php/28399/${P}.tar.gz"
157
158 LICENSE="GPL-2 LGPL-2"
159 SLOT="0"
160 KEYWORDS="~amd64 ~x86"
161 IUSE="debug modules static-libs"
162
163 DEPEND="
164 sys-apps/hwloc
165 virtual/linux-sources"
166 RDEPEND="
167 sys-apps/hwloc
168 sys-apps/module-init-tools"
169
170 MODULE_NAMES="open-mx(misc:${S}/driver/linux)"
171 BUILD_TARGETS="all"
172 BUILD_PARAMS="KDIR=${KERNEL_DIR}"
173
174 src_prepare() {
175 # We still want to configure driver but dont want to build it at all
176 epatch "${FILESDIR}/open-mx-1.4.0-driver.patch"
177 # We dont want tests
178 sed -e 's:tests/mx::g' \
179 -e 's:tests::g' \
180 -i Makefile.am || die "sed failed"
181 eautoreconf
182 }
183
184 src_configure() {
185 econf \
186 $(use_enable static-libs static) \
187 $(use_enable debug)
188 }
189
190 src_compile() {
191 default
192 if use modules; then
193 cd "${S}/driver/linux"
194 linux-mod_src_compile || die "failed to build driver"
195 fi
196 }
197
198 src_install() {
199 default
200 use static-libs || find "${ED}" -name '*.*a' -exec rm {} +
201 # Drop init scripts
202 rm -rf "${ED}/usr/sbin" || die
203 rm "${ED}/usr/bin/omx_check"
204 # install udev rules
205 insinto /etc/udev/rules.d
206 doins "${ED}/etc/open-mx/10-open-mx.rules"
207 dodoc "${ED}/usr/share/open-mx/FAQ.html"
208 # Drop misc stuff
209 rm "${ED}/etc/open-mx/10-open-mx.rules" || die
210 rm -rf "${ED}/usr/share/open-mx" || die
211 newinitd "${FILESDIR}/omxoed.initd" omxoed
212 if use modules; then
213 cd "${S}/driver/linux"
214 linux-mod_src_install || die "failed to install driver"
215 fi
216 }