1 |
commit: 20e2bddc173c4d3f4ace38b33c7c69ac0b7dd418 |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 3 22:37:57 2011 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 3 22:37:57 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=20e2bddc |
7 |
|
8 |
Add maui with slurm and pbs integration |
9 |
|
10 |
(Portage version: 2.2.0_alpha43/git/Linux x86_64, signed Manifest commit with key F82F92E6) |
11 |
|
12 |
--- |
13 |
sys-cluster/maui/ChangeLog | 99 ++++++++++++++++++++ |
14 |
.../files/3.2.6_p21-autoconf-2.60-compat.patch | 11 ++ |
15 |
sys-cluster/maui/files/maui.initd | 24 +++++ |
16 |
sys-cluster/maui/maui-3.3.1-r2.ebuild | 53 +++++++++++ |
17 |
sys-cluster/maui/metadata.xml | 9 ++ |
18 |
5 files changed, 196 insertions(+), 0 deletions(-) |
19 |
|
20 |
diff --git a/sys-cluster/maui/ChangeLog b/sys-cluster/maui/ChangeLog |
21 |
new file mode 100644 |
22 |
index 0000000..aa592fe |
23 |
--- /dev/null |
24 |
+++ b/sys-cluster/maui/ChangeLog |
25 |
@@ -0,0 +1,99 @@ |
26 |
+# ChangeLog for sys-cluster/maui |
27 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/ChangeLog,v 1.21 2011/06/30 08:28:12 xarthisius Exp $ |
29 |
+ |
30 |
+ 30 Jun 2011; Kacper Kowalik <xarthisius@g.o> maui-3.3.1-r1.ebuild: |
31 |
+ maui->PN, fix order of vars |
32 |
+ |
33 |
+ 29 Jun 2011; Alexey Shvetsov <alexxy@g.o> files/maui.initd: |
34 |
+ Fix typo in init.d |
35 |
+ |
36 |
+ 29 Jun 2011; Alexey Shvetsov <alexxy@g.o> maui-3.3.1-r1.ebuild: |
37 |
+ Reloacte spool to var not to usr |
38 |
+ |
39 |
+*maui-3.3.1-r1 (29 Jun 2011) |
40 |
+ |
41 |
+ 29 Jun 2011; Alexey Shvetsov <alexxy@g.o> -maui-3.3.1.ebuild, |
42 |
+ +maui-3.3.1-r1.ebuild, +files/maui.initd: |
43 |
+ Add init.d |
44 |
+ |
45 |
+*maui-3.3.1 (05 Mar 2011) |
46 |
+ |
47 |
+ 05 Mar 2011; Kacper Kowalik <xarthisius@g.o> +maui-3.3.1.ebuild: |
48 |
+ Version bump wrt #357493 |
49 |
+ |
50 |
+*maui-3.3 (14 Jul 2010) |
51 |
+ |
52 |
+ 14 Jul 2010; Justin Lecher <jlec@g.o> +maui-3.3.ebuild: |
53 |
+ Version Bump and prefix support |
54 |
+ |
55 |
+*maui-3.2.6_p21-r1 (24 Mar 2010) |
56 |
+ |
57 |
+ 24 Mar 2010; Justin Bronder <jsbronder@g.o> |
58 |
+ +maui-3.2.6_p21-r1.ebuild, +files/maui-3.2.6_p21-pbs-nodefile.patch: |
59 |
+ Fix incorrect PBS_NODEFILE with newer glibc fix. #309755 |
60 |
+ |
61 |
+ 02 Mar 2010; Justin Bronder <jsbronder@g.o> maui-3.2.6_p16.ebuild, |
62 |
+ maui-3.2.6_p21.ebuild: |
63 |
+ Update deps |
64 |
+ |
65 |
+ 15 Jan 2010; Thilo Bangert <bangert@g.o> Manifest: |
66 |
+ rebuild manifest (#164373) |
67 |
+ |
68 |
+ 23 Sep 2009; Patrick Lauer <patrick@g.o> maui-3.2.6_p16.ebuild, |
69 |
+ maui-3.2.6_p21.ebuild: |
70 |
+ Remove virtual/libc |
71 |
+ |
72 |
+ 21 Jan 2009; weaver <weaver@g.o> ChangeLog: |
73 |
+ Tweak patch to avoid obscure build failure with autoconf |
74 |
+ |
75 |
+*maui-3.2.6_p21 (02 Jan 2009) |
76 |
+ |
77 |
+ 02 Jan 2009; weaver <weaver@g.o> |
78 |
+ +files/3.2.6_p21-autoconf-2.60-compat.patch, +maui-3.2.6_p21.ebuild: |
79 |
+ Version bump, bug 164373. Drop 2 patches merged upstream. |
80 |
+ |
81 |
+ 31 Jan 2008; Donnie Berkholz <dberkholz@g.o>; |
82 |
+ -maui-3.2.6_p13.ebuild, -maui-3.2.6_p13-r1.ebuild: |
83 |
+ Clean up. |
84 |
+ |
85 |
+ 02 Jul 2007; Piotr Jaroszyński <peper@g.o> maui-3.2.6_p13.ebuild, |
86 |
+ maui-3.2.6_p13-r1.ebuild, maui-3.2.6_p16.ebuild: |
87 |
+ (QA) RESTRICT clean up. |
88 |
+ |
89 |
+ 12 May 2007; Donnie Berkholz <dberkholz@g.o>; |
90 |
+ maui-3.2.6_p16.ebuild: |
91 |
+ Remove blocker on old openpbs, since it's out of the tree. |
92 |
+ |
93 |
+ 26 Apr 2007; Donnie Berkholz <dberkholz@g.o>; metadata.xml: |
94 |
+ Update for cluster herd split to hp-cluster and ha-cluster. |
95 |
+ |
96 |
+*maui-3.2.6_p16 (26 Sep 2006) |
97 |
+ |
98 |
+ 26 Sep 2006; Donnie Berkholz <dberkholz@g.o>; |
99 |
+ +files/3.2.6_p16-autoconf-2.60-compat.patch, |
100 |
+ +files/3.2.6_p16-link-pbs-after-moab.patch, |
101 |
+ +files/3.2.6_p16-set-pbs-cflags-ldflags.patch, +maui-3.2.6_p16.ebuild: |
102 |
+ Bump. Works with PBS installed to /usr/libdir/pbs/lib, so blocks on older |
103 |
+ openpbs. May not work on torque 1.x either. |
104 |
+ |
105 |
+ 25 Sep 2006; Donnie Berkholz <dberkholz@g.o>; |
106 |
+ maui-3.2.6_p13-r1.ebuild: |
107 |
+ (#118197) need to inherit multilib.eclass to use get_libdir(). |
108 |
+ |
109 |
+ 03 Jan 2006; Joel Martin <kanaka@g.o> maui-3.2.6_p13-r1.ebuild: |
110 |
+ Add ~amd64 |
111 |
+ |
112 |
+*maui-3.2.6_p13-r1 (05 Jul 2005) |
113 |
+ |
114 |
+ 05 Jul 2005; Robin H. Johnson <robbat2@g.o> |
115 |
+ +maui-3.2.6_p13-r1.ebuild: |
116 |
+ Move to virtual/pbs. And libpbs back in /usr/lib. |
117 |
+ |
118 |
+*maui-3.2.6_p13 (05 Jul 2005) |
119 |
+ |
120 |
+ 05 Jul 2005; Robin H. Johnson <robbat2@g.o> +metadata.xml, |
121 |
+ +maui-3.2.6_p13.ebuild: |
122 |
+ Initial commit of sys-cluster/maui. Ebuild by Pat Lougheed <patl@×××.ca> and |
123 |
+ Robin Hugh Johnson <robbat2@g.o>. |
124 |
+ |
125 |
|
126 |
diff --git a/sys-cluster/maui/files/3.2.6_p21-autoconf-2.60-compat.patch b/sys-cluster/maui/files/3.2.6_p21-autoconf-2.60-compat.patch |
127 |
new file mode 100644 |
128 |
index 0000000..9b77a27 |
129 |
--- /dev/null |
130 |
+++ b/sys-cluster/maui/files/3.2.6_p21-autoconf-2.60-compat.patch |
131 |
@@ -0,0 +1,11 @@ |
132 |
+--- maui-3.2.6p21.orig/Makefile.in 2006-05-23 15:20:49.000000000 -0700 |
133 |
++++ maui-3.2.6p21/Makefile.in 2006-09-25 20:42:24.000000000 -0700 |
134 |
+@@ -18,7 +18,7 @@ |
135 |
+ # ============================ |
136 |
+ # Resource Manager section |
137 |
+ # ============================ |
138 |
+-@ll_definitions@@sdr_definitions@@pbs_definitions@@sge_definitions@@lsf_definitions@@mx_definitions@@pcre_definitions@ |
139 |
++@pbs_definitions@ |
140 |
+ |
141 |
+ # ============================ |
142 |
+ # Master Makefile for @PACKAGE_NAME@-@PACKAGE_VERSION@ |
143 |
|
144 |
diff --git a/sys-cluster/maui/files/maui.initd b/sys-cluster/maui/files/maui.initd |
145 |
new file mode 100644 |
146 |
index 0000000..03d654f |
147 |
--- /dev/null |
148 |
+++ b/sys-cluster/maui/files/maui.initd |
149 |
@@ -0,0 +1,24 @@ |
150 |
+#!/sbin/runscript |
151 |
+# Copyright 1999-2011 Gentoo Foundation |
152 |
+# Distributed under the terms of the GNU General Public License v2 |
153 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/files/maui.initd,v 1.2 2011/06/29 16:15:04 alexxy Exp $ |
154 |
+ |
155 |
+depend() { |
156 |
+ need net |
157 |
+ after pbs_server slurmctld |
158 |
+ before pbs_mom slurmd |
159 |
+ after logger |
160 |
+} |
161 |
+ |
162 |
+start() { |
163 |
+ ebegin "Starting Maui scheduler" |
164 |
+ start-stop-daemon --start --exec /usr/sbin/maui |
165 |
+ eend ${?} |
166 |
+} |
167 |
+ |
168 |
+stop() { |
169 |
+ ebegin "Stopping Maui scheduler" |
170 |
+ start-stop-daemon --stop -p /var/spool/maui/maui.pid |
171 |
+ eend ${?} |
172 |
+} |
173 |
+# vim:ts=4 |
174 |
|
175 |
diff --git a/sys-cluster/maui/maui-3.3.1-r2.ebuild b/sys-cluster/maui/maui-3.3.1-r2.ebuild |
176 |
new file mode 100644 |
177 |
index 0000000..493bb3a |
178 |
--- /dev/null |
179 |
+++ b/sys-cluster/maui/maui-3.3.1-r2.ebuild |
180 |
@@ -0,0 +1,53 @@ |
181 |
+# Copyright 1999-2011 Gentoo Foundation |
182 |
+# Distributed under the terms of the GNU General Public License v2 |
183 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/maui-3.3.1-r1.ebuild,v 1.3 2011/06/30 08:28:12 xarthisius Exp $ |
184 |
+ |
185 |
+EAPI="4" |
186 |
+ |
187 |
+inherit autotools eutils multilib |
188 |
+ |
189 |
+DESCRIPTION="Maui Cluster Scheduler" |
190 |
+HOMEPAGE="http://www.clusterresources.com/products/maui/" |
191 |
+SRC_URI="http://www.adaptivecomputing.com/download/${PN}/${P}.tar.gz" |
192 |
+ |
193 |
+LICENSE="maui" |
194 |
+SLOT="0" |
195 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux" |
196 |
+IUSE="pbs slurm" |
197 |
+ |
198 |
+REQUIRED_USE="^^ ( pbs slurm )" |
199 |
+ |
200 |
+DEPEND=" |
201 |
+ pbs? ( sys-cluster/torque ) |
202 |
+ slurm? ( sys-cluster/slurm )" |
203 |
+RDEPEND="${DEPEND}" |
204 |
+ |
205 |
+RESTRICT="fetch mirror" |
206 |
+ |
207 |
+src_prepare() { |
208 |
+ epatch "${FILESDIR}"/3.2.6_p21-autoconf-2.60-compat.patch |
209 |
+ sed -e "s:\$(INST_DIR)/lib:\$(INST_DIR)/$(get_libdir):" \ |
210 |
+ -i src/{moab,server,mcom}/Makefile || die |
211 |
+ eautoreconf |
212 |
+} |
213 |
+ |
214 |
+src_configure() { |
215 |
+ local myconf |
216 |
+ use pbs && myconf="--with-pbs="${EPREFIX}"/usr" |
217 |
+ use slurm && myconf="--with-wiki" |
218 |
+ econf \ |
219 |
+ --with-spooldir="${EPREFIX}"/var/spool/${PN} \ |
220 |
+ ${myconf} |
221 |
+} |
222 |
+ |
223 |
+src_install() { |
224 |
+ emake BUILDROOT="${D}" INST_DIR="${ED}/usr" install || die |
225 |
+ dodoc docs/README CHANGELOG || die |
226 |
+ dohtml docs/mauidocs.html || die |
227 |
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} || die |
228 |
+} |
229 |
+ |
230 |
+pkg_nofetch() { |
231 |
+ einfo "Please visit ${HOMEPAGE}, obtain the file" |
232 |
+ einfo "${P}.tar.gz and put it in ${DISTDIR}" |
233 |
+} |
234 |
|
235 |
diff --git a/sys-cluster/maui/metadata.xml b/sys-cluster/maui/metadata.xml |
236 |
new file mode 100644 |
237 |
index 0000000..3d65f12 |
238 |
--- /dev/null |
239 |
+++ b/sys-cluster/maui/metadata.xml |
240 |
@@ -0,0 +1,9 @@ |
241 |
+<?xml version="1.0" encoding="UTF-8"?> |
242 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
243 |
+<pkgmetadata> |
244 |
+ <herd>cluster</herd> |
245 |
+ <use> |
246 |
+ <flag name='pbs'>Enable pbs integration</flag> |
247 |
+ <flag name='slurm'>Enable slurm integration</flag> |
248 |
+ </use> |
249 |
+</pkgmetadata> |