1 |
commit: 6da8f69a1b9abfe92d9118b4ddfd6c225f6ff674 |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 3 23:58:02 2011 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 3 23:58:02 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=6da8f69a |
7 |
|
8 |
Moved to tree |
9 |
|
10 |
--- |
11 |
sys-cluster/maui/ChangeLog | 99 ---------------- |
12 |
.../files/3.2.6_p21-autoconf-2.60-compat.patch | 11 -- |
13 |
sys-cluster/maui/files/maui.initd | 24 ---- |
14 |
sys-cluster/maui/maui-3.3.1-r2.ebuild | 53 --------- |
15 |
sys-cluster/maui/metadata.xml | 9 -- |
16 |
sys-cluster/slurm/files/slurm.confd | 5 - |
17 |
sys-cluster/slurm/files/slurmctld.initd | 46 -------- |
18 |
sys-cluster/slurm/files/slurmd.initd | 46 -------- |
19 |
sys-cluster/slurm/files/slurmdbd.initd | 44 ------- |
20 |
sys-cluster/slurm/metadata.xml | 13 -- |
21 |
sys-cluster/slurm/slurm-2.2.7.ebuild | 121 -------------------- |
22 |
11 files changed, 0 insertions(+), 471 deletions(-) |
23 |
|
24 |
diff --git a/sys-cluster/maui/ChangeLog b/sys-cluster/maui/ChangeLog |
25 |
deleted file mode 100644 |
26 |
index aa592fe..0000000 |
27 |
--- a/sys-cluster/maui/ChangeLog |
28 |
+++ /dev/null |
29 |
@@ -1,99 +0,0 @@ |
30 |
-# ChangeLog for sys-cluster/maui |
31 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
32 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/ChangeLog,v 1.21 2011/06/30 08:28:12 xarthisius Exp $ |
33 |
- |
34 |
- 30 Jun 2011; Kacper Kowalik <xarthisius@g.o> maui-3.3.1-r1.ebuild: |
35 |
- maui->PN, fix order of vars |
36 |
- |
37 |
- 29 Jun 2011; Alexey Shvetsov <alexxy@g.o> files/maui.initd: |
38 |
- Fix typo in init.d |
39 |
- |
40 |
- 29 Jun 2011; Alexey Shvetsov <alexxy@g.o> maui-3.3.1-r1.ebuild: |
41 |
- Reloacte spool to var not to usr |
42 |
- |
43 |
-*maui-3.3.1-r1 (29 Jun 2011) |
44 |
- |
45 |
- 29 Jun 2011; Alexey Shvetsov <alexxy@g.o> -maui-3.3.1.ebuild, |
46 |
- +maui-3.3.1-r1.ebuild, +files/maui.initd: |
47 |
- Add init.d |
48 |
- |
49 |
-*maui-3.3.1 (05 Mar 2011) |
50 |
- |
51 |
- 05 Mar 2011; Kacper Kowalik <xarthisius@g.o> +maui-3.3.1.ebuild: |
52 |
- Version bump wrt #357493 |
53 |
- |
54 |
-*maui-3.3 (14 Jul 2010) |
55 |
- |
56 |
- 14 Jul 2010; Justin Lecher <jlec@g.o> +maui-3.3.ebuild: |
57 |
- Version Bump and prefix support |
58 |
- |
59 |
-*maui-3.2.6_p21-r1 (24 Mar 2010) |
60 |
- |
61 |
- 24 Mar 2010; Justin Bronder <jsbronder@g.o> |
62 |
- +maui-3.2.6_p21-r1.ebuild, +files/maui-3.2.6_p21-pbs-nodefile.patch: |
63 |
- Fix incorrect PBS_NODEFILE with newer glibc fix. #309755 |
64 |
- |
65 |
- 02 Mar 2010; Justin Bronder <jsbronder@g.o> maui-3.2.6_p16.ebuild, |
66 |
- maui-3.2.6_p21.ebuild: |
67 |
- Update deps |
68 |
- |
69 |
- 15 Jan 2010; Thilo Bangert <bangert@g.o> Manifest: |
70 |
- rebuild manifest (#164373) |
71 |
- |
72 |
- 23 Sep 2009; Patrick Lauer <patrick@g.o> maui-3.2.6_p16.ebuild, |
73 |
- maui-3.2.6_p21.ebuild: |
74 |
- Remove virtual/libc |
75 |
- |
76 |
- 21 Jan 2009; weaver <weaver@g.o> ChangeLog: |
77 |
- Tweak patch to avoid obscure build failure with autoconf |
78 |
- |
79 |
-*maui-3.2.6_p21 (02 Jan 2009) |
80 |
- |
81 |
- 02 Jan 2009; weaver <weaver@g.o> |
82 |
- +files/3.2.6_p21-autoconf-2.60-compat.patch, +maui-3.2.6_p21.ebuild: |
83 |
- Version bump, bug 164373. Drop 2 patches merged upstream. |
84 |
- |
85 |
- 31 Jan 2008; Donnie Berkholz <dberkholz@g.o>; |
86 |
- -maui-3.2.6_p13.ebuild, -maui-3.2.6_p13-r1.ebuild: |
87 |
- Clean up. |
88 |
- |
89 |
- 02 Jul 2007; Piotr Jaroszyński <peper@g.o> maui-3.2.6_p13.ebuild, |
90 |
- maui-3.2.6_p13-r1.ebuild, maui-3.2.6_p16.ebuild: |
91 |
- (QA) RESTRICT clean up. |
92 |
- |
93 |
- 12 May 2007; Donnie Berkholz <dberkholz@g.o>; |
94 |
- maui-3.2.6_p16.ebuild: |
95 |
- Remove blocker on old openpbs, since it's out of the tree. |
96 |
- |
97 |
- 26 Apr 2007; Donnie Berkholz <dberkholz@g.o>; metadata.xml: |
98 |
- Update for cluster herd split to hp-cluster and ha-cluster. |
99 |
- |
100 |
-*maui-3.2.6_p16 (26 Sep 2006) |
101 |
- |
102 |
- 26 Sep 2006; Donnie Berkholz <dberkholz@g.o>; |
103 |
- +files/3.2.6_p16-autoconf-2.60-compat.patch, |
104 |
- +files/3.2.6_p16-link-pbs-after-moab.patch, |
105 |
- +files/3.2.6_p16-set-pbs-cflags-ldflags.patch, +maui-3.2.6_p16.ebuild: |
106 |
- Bump. Works with PBS installed to /usr/libdir/pbs/lib, so blocks on older |
107 |
- openpbs. May not work on torque 1.x either. |
108 |
- |
109 |
- 25 Sep 2006; Donnie Berkholz <dberkholz@g.o>; |
110 |
- maui-3.2.6_p13-r1.ebuild: |
111 |
- (#118197) need to inherit multilib.eclass to use get_libdir(). |
112 |
- |
113 |
- 03 Jan 2006; Joel Martin <kanaka@g.o> maui-3.2.6_p13-r1.ebuild: |
114 |
- Add ~amd64 |
115 |
- |
116 |
-*maui-3.2.6_p13-r1 (05 Jul 2005) |
117 |
- |
118 |
- 05 Jul 2005; Robin H. Johnson <robbat2@g.o> |
119 |
- +maui-3.2.6_p13-r1.ebuild: |
120 |
- Move to virtual/pbs. And libpbs back in /usr/lib. |
121 |
- |
122 |
-*maui-3.2.6_p13 (05 Jul 2005) |
123 |
- |
124 |
- 05 Jul 2005; Robin H. Johnson <robbat2@g.o> +metadata.xml, |
125 |
- +maui-3.2.6_p13.ebuild: |
126 |
- Initial commit of sys-cluster/maui. Ebuild by Pat Lougheed <patl@×××.ca> and |
127 |
- Robin Hugh Johnson <robbat2@g.o>. |
128 |
- |
129 |
|
130 |
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 |
131 |
deleted file mode 100644 |
132 |
index 9b77a27..0000000 |
133 |
--- a/sys-cluster/maui/files/3.2.6_p21-autoconf-2.60-compat.patch |
134 |
+++ /dev/null |
135 |
@@ -1,11 +0,0 @@ |
136 |
---- maui-3.2.6p21.orig/Makefile.in 2006-05-23 15:20:49.000000000 -0700 |
137 |
-+++ maui-3.2.6p21/Makefile.in 2006-09-25 20:42:24.000000000 -0700 |
138 |
-@@ -18,7 +18,7 @@ |
139 |
- # ============================ |
140 |
- # Resource Manager section |
141 |
- # ============================ |
142 |
--@ll_definitions@@sdr_definitions@@pbs_definitions@@sge_definitions@@lsf_definitions@@mx_definitions@@pcre_definitions@ |
143 |
-+@pbs_definitions@ |
144 |
- |
145 |
- # ============================ |
146 |
- # Master Makefile for @PACKAGE_NAME@-@PACKAGE_VERSION@ |
147 |
|
148 |
diff --git a/sys-cluster/maui/files/maui.initd b/sys-cluster/maui/files/maui.initd |
149 |
deleted file mode 100644 |
150 |
index 03d654f..0000000 |
151 |
--- a/sys-cluster/maui/files/maui.initd |
152 |
+++ /dev/null |
153 |
@@ -1,24 +0,0 @@ |
154 |
-#!/sbin/runscript |
155 |
-# Copyright 1999-2011 Gentoo Foundation |
156 |
-# Distributed under the terms of the GNU General Public License v2 |
157 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/maui/files/maui.initd,v 1.2 2011/06/29 16:15:04 alexxy Exp $ |
158 |
- |
159 |
-depend() { |
160 |
- need net |
161 |
- after pbs_server slurmctld |
162 |
- before pbs_mom slurmd |
163 |
- after logger |
164 |
-} |
165 |
- |
166 |
-start() { |
167 |
- ebegin "Starting Maui scheduler" |
168 |
- start-stop-daemon --start --exec /usr/sbin/maui |
169 |
- eend ${?} |
170 |
-} |
171 |
- |
172 |
-stop() { |
173 |
- ebegin "Stopping Maui scheduler" |
174 |
- start-stop-daemon --stop -p /var/spool/maui/maui.pid |
175 |
- eend ${?} |
176 |
-} |
177 |
-# vim:ts=4 |
178 |
|
179 |
diff --git a/sys-cluster/maui/maui-3.3.1-r2.ebuild b/sys-cluster/maui/maui-3.3.1-r2.ebuild |
180 |
deleted file mode 100644 |
181 |
index 493bb3a..0000000 |
182 |
--- a/sys-cluster/maui/maui-3.3.1-r2.ebuild |
183 |
+++ /dev/null |
184 |
@@ -1,53 +0,0 @@ |
185 |
-# Copyright 1999-2011 Gentoo Foundation |
186 |
-# Distributed under the terms of the GNU General Public License v2 |
187 |
-# $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 $ |
188 |
- |
189 |
-EAPI="4" |
190 |
- |
191 |
-inherit autotools eutils multilib |
192 |
- |
193 |
-DESCRIPTION="Maui Cluster Scheduler" |
194 |
-HOMEPAGE="http://www.clusterresources.com/products/maui/" |
195 |
-SRC_URI="http://www.adaptivecomputing.com/download/${PN}/${P}.tar.gz" |
196 |
- |
197 |
-LICENSE="maui" |
198 |
-SLOT="0" |
199 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux" |
200 |
-IUSE="pbs slurm" |
201 |
- |
202 |
-REQUIRED_USE="^^ ( pbs slurm )" |
203 |
- |
204 |
-DEPEND=" |
205 |
- pbs? ( sys-cluster/torque ) |
206 |
- slurm? ( sys-cluster/slurm )" |
207 |
-RDEPEND="${DEPEND}" |
208 |
- |
209 |
-RESTRICT="fetch mirror" |
210 |
- |
211 |
-src_prepare() { |
212 |
- epatch "${FILESDIR}"/3.2.6_p21-autoconf-2.60-compat.patch |
213 |
- sed -e "s:\$(INST_DIR)/lib:\$(INST_DIR)/$(get_libdir):" \ |
214 |
- -i src/{moab,server,mcom}/Makefile || die |
215 |
- eautoreconf |
216 |
-} |
217 |
- |
218 |
-src_configure() { |
219 |
- local myconf |
220 |
- use pbs && myconf="--with-pbs="${EPREFIX}"/usr" |
221 |
- use slurm && myconf="--with-wiki" |
222 |
- econf \ |
223 |
- --with-spooldir="${EPREFIX}"/var/spool/${PN} \ |
224 |
- ${myconf} |
225 |
-} |
226 |
- |
227 |
-src_install() { |
228 |
- emake BUILDROOT="${D}" INST_DIR="${ED}/usr" install || die |
229 |
- dodoc docs/README CHANGELOG || die |
230 |
- dohtml docs/mauidocs.html || die |
231 |
- newinitd "${FILESDIR}/${PN}.initd" ${PN} || die |
232 |
-} |
233 |
- |
234 |
-pkg_nofetch() { |
235 |
- einfo "Please visit ${HOMEPAGE}, obtain the file" |
236 |
- einfo "${P}.tar.gz and put it in ${DISTDIR}" |
237 |
-} |
238 |
|
239 |
diff --git a/sys-cluster/maui/metadata.xml b/sys-cluster/maui/metadata.xml |
240 |
deleted file mode 100644 |
241 |
index 3d65f12..0000000 |
242 |
--- a/sys-cluster/maui/metadata.xml |
243 |
+++ /dev/null |
244 |
@@ -1,9 +0,0 @@ |
245 |
-<?xml version="1.0" encoding="UTF-8"?> |
246 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
247 |
-<pkgmetadata> |
248 |
- <herd>cluster</herd> |
249 |
- <use> |
250 |
- <flag name='pbs'>Enable pbs integration</flag> |
251 |
- <flag name='slurm'>Enable slurm integration</flag> |
252 |
- </use> |
253 |
-</pkgmetadata> |
254 |
|
255 |
diff --git a/sys-cluster/slurm/files/slurm.confd b/sys-cluster/slurm/files/slurm.confd |
256 |
deleted file mode 100644 |
257 |
index 13b6914..0000000 |
258 |
--- a/sys-cluster/slurm/files/slurm.confd |
259 |
+++ /dev/null |
260 |
@@ -1,5 +0,0 @@ |
261 |
-# /etc/conf.d/slurm: config file for /etc/init.d/slurm* |
262 |
-SLURMCTLD_OPTIONS="" |
263 |
-SLURMDBD_OPTIONS="" |
264 |
-SLURMD_OPTIONS="" |
265 |
-SLURM_USE_MUNGE="0" |
266 |
|
267 |
diff --git a/sys-cluster/slurm/files/slurmctld.initd b/sys-cluster/slurm/files/slurmctld.initd |
268 |
deleted file mode 100644 |
269 |
index 8cd7fa5..0000000 |
270 |
--- a/sys-cluster/slurm/files/slurmctld.initd |
271 |
+++ /dev/null |
272 |
@@ -1,46 +0,0 @@ |
273 |
-#!/sbin/runscript |
274 |
-# Copyright 1999-2011 Gentoo Foundation |
275 |
-# Distributed under the terms of the GNU General Public License v2 |
276 |
-# $Header: $ |
277 |
- |
278 |
-opts="reload" |
279 |
- |
280 |
-[[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm |
281 |
- |
282 |
-depend() { |
283 |
- local _need="net" |
284 |
- [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" |
285 |
- after logger |
286 |
- need ${_need} |
287 |
-} |
288 |
- |
289 |
-checkconfig() { |
290 |
- if [ ! -e "/etc/slurm/slurm.conf" ]; then |
291 |
- eerror "Missing config /etc/slurm/slurm.conf" |
292 |
- eerror "Customize sample one or generate new by configurator.html" |
293 |
- eerror "in slurm doc directory" |
294 |
- return 1 |
295 |
- fi |
296 |
-} |
297 |
- |
298 |
-start() { |
299 |
- ebegin "Starting slurm control daemon" |
300 |
- start-stop-daemon --start --quiet --background \ |
301 |
- --pidfile /var/run/slurm/slurmctld.pid \ |
302 |
- --user slurm \ |
303 |
- --group slurm \ |
304 |
- --exec /usr/sbin/slurmctld -- ${SLURMCTLD_OPTS} |
305 |
- eend $? |
306 |
-} |
307 |
- |
308 |
-stop() { |
309 |
- ebegin "Stopping slurm control daemon" |
310 |
- start-stop-daemon --stop --pidfile /var/run/slurm/slurmctld.pid |
311 |
- eend $? |
312 |
-} |
313 |
- |
314 |
-reload() { |
315 |
- ebegin "Reloading slurm daemon configuration" |
316 |
- killproc slurmctld -HUP |
317 |
- eend $? |
318 |
-} |
319 |
|
320 |
diff --git a/sys-cluster/slurm/files/slurmd.initd b/sys-cluster/slurm/files/slurmd.initd |
321 |
deleted file mode 100644 |
322 |
index 7a0449d..0000000 |
323 |
--- a/sys-cluster/slurm/files/slurmd.initd |
324 |
+++ /dev/null |
325 |
@@ -1,46 +0,0 @@ |
326 |
-#!/sbin/runscript |
327 |
-# Copyright 1999-2011 Gentoo Foundation |
328 |
-# Distributed under the terms of the GNU General Public License v2 |
329 |
-# $Header: $ |
330 |
- |
331 |
-opts="reload" |
332 |
- |
333 |
-[[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm |
334 |
- |
335 |
-depend() { |
336 |
- local _need="net" |
337 |
- [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" |
338 |
- after logger |
339 |
- need ${_need} |
340 |
-} |
341 |
- |
342 |
-checkconfig() { |
343 |
- if [ ! -e "/etc/slurm/slurm.conf" ]; then |
344 |
- eerror "Missing config /etc/slurm/slurm.conf" |
345 |
- eerror "Customize sample one or generate new by configurator.html" |
346 |
- eerror "in slurm doc directory" |
347 |
- return 1 |
348 |
- fi |
349 |
-} |
350 |
- |
351 |
-start() { |
352 |
- ebegin "Starting slurm daemon" |
353 |
- start-stop-daemon --start --quiet --background \ |
354 |
- --pidfile /var/run/slurm/slurmd.pid \ |
355 |
- --user slurm \ |
356 |
- --group slurm \ |
357 |
- --exec /usr/sbin/slurmd -- ${SLURMD_OPTS} |
358 |
- eend $? |
359 |
-} |
360 |
- |
361 |
-stop() { |
362 |
- ebegin "Stopping slurm daemon" |
363 |
- start-stop-daemon --stop --pidfile /var/run/slurm/slurmd.pid |
364 |
- eend $? |
365 |
-} |
366 |
- |
367 |
-reload() { |
368 |
- ebegin "Reloading slurm daemon configuration" |
369 |
- killproc slurmd -HUP |
370 |
- eend $? |
371 |
-} |
372 |
|
373 |
diff --git a/sys-cluster/slurm/files/slurmdbd.initd b/sys-cluster/slurm/files/slurmdbd.initd |
374 |
deleted file mode 100644 |
375 |
index 17cfd2c..0000000 |
376 |
--- a/sys-cluster/slurm/files/slurmdbd.initd |
377 |
+++ /dev/null |
378 |
@@ -1,44 +0,0 @@ |
379 |
-#!/sbin/runscript |
380 |
-# Copyright 1999-2011 Gentoo Foundation |
381 |
-# Distributed under the terms of the GNU General Public License v2 |
382 |
-# $Header: $ |
383 |
- |
384 |
-opts="reload" |
385 |
- |
386 |
-[[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm |
387 |
- |
388 |
-depend() { |
389 |
- local _need="net" |
390 |
- [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" |
391 |
- after logger |
392 |
- need ${_need} |
393 |
-} |
394 |
- |
395 |
-checkconfig() { |
396 |
- if [ ! -e "/etc/slurm/slurmdbd.conf" ]; then |
397 |
- eerror "Missing config /etc/slurm/slurmdbd.conf" |
398 |
- return 1 |
399 |
- fi |
400 |
-} |
401 |
- |
402 |
-start() { |
403 |
- ebegin "Starting slurmdb daemon" |
404 |
- start-stop-daemon --start --quiet --background \ |
405 |
- --pidfile /var/run/slurm/slurmddb.pid \ |
406 |
- --user slurm \ |
407 |
- --group slurm \ |
408 |
- --exec /usr/sbin/slurmddb -- ${SLURMD_OPTS} |
409 |
- eend $? |
410 |
-} |
411 |
- |
412 |
-stop() { |
413 |
- ebegin "Stopping slurmdb daemon" |
414 |
- start-stop-daemon --stop --pidfile /var/run/slurm/slurmdbd.pid |
415 |
- eend $? |
416 |
-} |
417 |
- |
418 |
-reload() { |
419 |
- ebegin "Reloading slurmdb daemon configuration" |
420 |
- killproc slurmdbd -HUP |
421 |
- eend $? |
422 |
-} |
423 |
|
424 |
diff --git a/sys-cluster/slurm/metadata.xml b/sys-cluster/slurm/metadata.xml |
425 |
deleted file mode 100644 |
426 |
index 56f2fa2..0000000 |
427 |
--- a/sys-cluster/slurm/metadata.xml |
428 |
+++ /dev/null |
429 |
@@ -1,13 +0,0 @@ |
430 |
-<?xml version="1.0" encoding="UTF-8"?> |
431 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
432 |
-<pkgmetadata> |
433 |
- <herd>cluster</herd> |
434 |
- <maintainer> |
435 |
- <email>alexxy@g.o</email> |
436 |
- </maintainer> |
437 |
- <use> |
438 |
- <flag name='maui'>Enable maui scheduler support</flag> |
439 |
- <flag name='munge'>Enable authentication via munge</flag> |
440 |
- <flag name='pbs-compat'>Enable pbs wrappers (qsub,qdel,qstat, etc..)</flag> |
441 |
- </use> |
442 |
-</pkgmetadata> |
443 |
|
444 |
diff --git a/sys-cluster/slurm/slurm-2.2.7.ebuild b/sys-cluster/slurm/slurm-2.2.7.ebuild |
445 |
deleted file mode 100644 |
446 |
index 8142585..0000000 |
447 |
--- a/sys-cluster/slurm/slurm-2.2.7.ebuild |
448 |
+++ /dev/null |
449 |
@@ -1,121 +0,0 @@ |
450 |
-# Copyright 1999-2011 Gentoo Foundation |
451 |
-# Distributed under the terms of the GNU General Public License v2 |
452 |
-# $Header: $ |
453 |
- |
454 |
-EAPI=4 |
455 |
- |
456 |
-inherit eutils pam |
457 |
- |
458 |
-DESCRIPTION="SLURM: A Highly Scalable Resource Manager" |
459 |
-HOMEPAGE="https://computing.llnl.gov/linux/slurm/" |
460 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
461 |
- |
462 |
-LICENSE="GPL-2" |
463 |
-SLOT="0" |
464 |
-KEYWORDS="~amd64 ~x86" |
465 |
-IUSE="maui +munge mysql pam +pbs-compat postgres ssl static-libs" |
466 |
- |
467 |
-DEPEND=" |
468 |
- mysql? ( dev-db/mysql ) |
469 |
- munge? ( sys-auth/munge ) |
470 |
- pam? ( virtual/pam ) |
471 |
- pbs-compat? ( !sys-cluster/torque ) |
472 |
- postgres? ( dev-db/postgresql-base ) |
473 |
- ssl? ( dev-libs/openssl ) |
474 |
- >=sys-apps/hwloc-1.1.1-r1" |
475 |
-RDEPEND="${DEPEND} |
476 |
- maui? ( sys-cluster/maui[slurm] )" |
477 |
- |
478 |
-pkg_setup() { |
479 |
- enewgroup slurm |
480 |
- enewuser slurm -1 -1 /var/spool/slurm slurm |
481 |
-} |
482 |
- |
483 |
-src_prepare() { |
484 |
- # gentoo uses /sys/fs/cgroup instead of /dev/cgroup |
485 |
- sed -e 's:/dev/cgroup:/sys/fs/cgroup:g' \ |
486 |
- -i "${S}/doc/man/man5/cgroup.conf.5" \ |
487 |
- -i "${S}/etc/cgroup.conf.example" \ |
488 |
- -i "${S}/etc/cgroup.release_agent" \ |
489 |
- -i "${S}/src/plugins/proctrack/cgroup/xcgroup.h" \ |
490 |
- || die |
491 |
- # also we running slurm daemons under slurm user |
492 |
- sed -e '#SlurmdUser=root:SlurmdUser=slurm:g' \ |
493 |
- -i "${S}/etc/slurm.conf.example" |
494 |
- # and pids should go to /var/run/slurm |
495 |
- sed -e 's:/var/run/slurmctld.pid:/var/run/slurm/slurmctld.pid:g' \ |
496 |
- -e 's:/var/run/slurmd.pid:/var/run/slurm/slurmd.pid:g' \ |
497 |
- -i "${S}/etc/slurm.conf.example" |
498 |
- # also state dirs are in /var/spool/slurm |
499 |
- sed -e 's:StateSaveLocation=/tmp:StateSaveLocation=/var/spool/slurm:g' \ |
500 |
- -e 's:SlurmdSpoolDir=/tmp/slurmd:SlurmdSpoolDir=/var/spool/slurm/slurmd:g' \ |
501 |
- -i "${S}/etc/slurm.conf.example" |
502 |
-} |
503 |
- |
504 |
-src_configure() { |
505 |
- local myconf=( |
506 |
- --sysconfdir="${EPREFIX}/etc/${PN}" |
507 |
- --with-hwloc="${EPREFIX}/usr" |
508 |
- ) |
509 |
- use pam && myconf+=( --with-pam_dir=$(getpam_mod_dir) ) |
510 |
- use mysql && myconf+=( --with-mysql_config="${EPREFIX}/usr/bin/mysql_config" ) |
511 |
- use postgres && myconf+=( --with-pg_config="${EPREFIX}/usr/bin/pg_config" ) |
512 |
- econf "${myconf[@]}" \ |
513 |
- $(use_enable pam) \ |
514 |
- $(use_with ssl) \ |
515 |
- $(use_with munge) \ |
516 |
- $(use_enable static-libs static) |
517 |
-} |
518 |
- |
519 |
-src_compile() { |
520 |
- default |
521 |
- use pam && emake -C contribs/pam || die |
522 |
-} |
523 |
- |
524 |
-src_install() { |
525 |
- default |
526 |
- use pam && emake DESTDIR="${D}" -C contribs/pam install || die |
527 |
- use pbs-compat && emake DESTDIR="${D}" -C contribs/torque install || die |
528 |
- use static-libs || find "${ED}" -name '*.la' -exec rm {} + |
529 |
- # we dont need it |
530 |
- rm "${ED}/usr/bin/mpiexec" || die |
531 |
- # install sample configs |
532 |
- keepdir /etc/slurm |
533 |
- keepdir /var/log/slurm |
534 |
- keepdir /var/spool/slurm |
535 |
- keepdir /var/run/slurm |
536 |
- insinto /etc/slurm |
537 |
- doins etc/cgroup.conf.example |
538 |
- doins etc/federation.conf.example |
539 |
- doins etc/slurm.conf.example |
540 |
- doins etc/slurmdbd.conf.example |
541 |
- exeinto /etc/slurm |
542 |
- doexe etc/cgroup.release_agent |
543 |
- doexe etc/slurm.epilog.clean |
544 |
- # install init.d files |
545 |
- newinitd "${FILESDIR}/slurmd.initd" slurmd |
546 |
- newinitd "${FILESDIR}/slurmctld.initd" slurmctld |
547 |
- newinitd "${FILESDIR}/slurmdbd.initd" slurmdbd |
548 |
- # install conf.d files |
549 |
- newconfd "${FILESDIR}/slurm.confd" slurm |
550 |
-} |
551 |
- |
552 |
-pkg_preinst() { |
553 |
- if use munge; then |
554 |
- sed -i 's,\(PBS_USE_MUNGE=\).*,\11,' "${D}"etc/conf.d/slurm || die |
555 |
- fi |
556 |
-} |
557 |
- |
558 |
-pkg_postinst() { |
559 |
- einfo "Fixing permissions in /var/spool/${PN}" |
560 |
- chown -R ${PN}:${PN} /var/spool/${PN} |
561 |
- einfo "Fixing permissions in /var/run/${PN}" |
562 |
- chown -R ${PN}:${PN} /var/run/${PN} |
563 |
- einfo "Fixing permissions in /var/log/${PN}" |
564 |
- chown -R ${PN}:${PN} /var/log/${PN} |
565 |
- echo |
566 |
- |
567 |
- elog "Please visit the file '/usr/share/doc/${P}/html/configurator.html" |
568 |
- elog "through a (javascript enabled) browser to create a configureation file." |
569 |
- elog "Copy that file to /etc/slurm.conf on all nodes (including the headnode) of your cluster." |
570 |
-} |