diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2012-04-18 13:53:04 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2012-04-18 13:53:04 +0000 |
commit | ddbfdb8b8e3659a1e4d6fc1b857294f4f494b2d0 (patch) | |
tree | be3f6213714e98683f1bc6b0419f70215f4ffb63 | |
parent | sys-boot/plymouth-openrc-plugin: Dropped aidecoe's maintainership. (diff) | |
download | historical-ddbfdb8b8e3659a1e4d6fc1b857294f4f494b2d0.tar.gz historical-ddbfdb8b8e3659a1e4d6fc1b857294f4f494b2d0.tar.bz2 historical-ddbfdb8b8e3659a1e4d6fc1b857294f4f494b2d0.zip |
[sys-cluster/slurm] Version bump. Fix bug #410087 Thanks to Daniel M. Weeks. Also incorporate changes from bug #385871. Thanks to Nicolas Bigaouette
Package-Manager: portage-2.2.0_alpha100/cvs/Linux x86_64
-rw-r--r-- | sys-cluster/slurm/ChangeLog | 11 | ||||
-rw-r--r-- | sys-cluster/slurm/Manifest | 48 | ||||
-rw-r--r-- | sys-cluster/slurm/files/logrotate | 20 | ||||
-rw-r--r-- | sys-cluster/slurm/files/slurm.confd | 1 | ||||
-rw-r--r-- | sys-cluster/slurm/files/slurmctld.initd | 31 | ||||
-rw-r--r-- | sys-cluster/slurm/files/slurmd.initd | 32 | ||||
-rw-r--r-- | sys-cluster/slurm/files/slurmdbd.initd | 33 | ||||
-rw-r--r-- | sys-cluster/slurm/metadata.xml | 1 | ||||
-rw-r--r-- | sys-cluster/slurm/slurm-2.2.7-r1.ebuild | 119 | ||||
-rw-r--r-- | sys-cluster/slurm/slurm-2.2.7-r2.ebuild | 160 | ||||
-rw-r--r-- | sys-cluster/slurm/slurm-2.3.3.ebuild | 153 | ||||
-rw-r--r-- | sys-cluster/slurm/slurm-2.3.4.ebuild | 225 |
12 files changed, 364 insertions, 470 deletions
diff --git a/sys-cluster/slurm/ChangeLog b/sys-cluster/slurm/ChangeLog index f93b515f4dea..4484aa0f979a 100644 --- a/sys-cluster/slurm/ChangeLog +++ b/sys-cluster/slurm/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sys-cluster/slurm # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/ChangeLog,v 1.9 2012/03/15 22:09:57 alexxy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/ChangeLog,v 1.10 2012/04/18 13:53:03 alexxy Exp $ + +*slurm-2.3.4 (18 Apr 2012) + + 18 Apr 2012; Alexey Shvetsov <alexxy@gentoo.org> +files/logrotate, + +slurm-2.3.4.ebuild, -slurm-2.2.7-r1.ebuild, -slurm-2.2.7-r2.ebuild, + -slurm-2.3.3.ebuild, files/slurm.confd, files/slurmctld.initd, + files/slurmd.initd, files/slurmdbd.initd, metadata.xml: + [sys-cluster/slurm] Version bump. Fix bug #410087 Thanks to Daniel M. Weeks. + Also incorporate changes from bug #385871. Thanks to Nicolas Bigaouette 15 Mar 2012; Alexey Shvetsov <alexxy@gentoo.org> slurm-2.3.3.ebuild: Add missing dep diff --git a/sys-cluster/slurm/Manifest b/sys-cluster/slurm/Manifest index 070e7c706fd5..6d496bc4370b 100644 --- a/sys-cluster/slurm/Manifest +++ b/sys-cluster/slurm/Manifest @@ -1,31 +1,29 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 -AUX slurm.confd 135 RMD160 06c96613c42ec09d4a21ef3bf6334026e89d9838 SHA1 0f5ed287f8a6f7280ccf977dae8388811484bc34 SHA256 3cfc9c56046911d3e77214e35fbf6a5ffc153eb2205b2158986abbb111a49433 -AUX slurmctld.initd 1161 RMD160 5a5c8c8e2cf467467e7ba1858109789a750cc423 SHA1 c05dd34a84397d9293e1cee38b23271ddd6443d7 SHA256 e7620a54c47d94c02755be549d11365714fffe7f20a36f16c3ffb7f1d12becc5 -AUX slurmd.initd 1125 RMD160 1b5f8a9a719ebfa05125c597cb5d3bf149e9a6e0 SHA1 08b8265c0a4727b0bba04c1eae37fb6f4a47f1a7 SHA256 6dbd921451209bdd62c3354e5e5c0c000de3af7cf4e4f809bac7fda59bff663b -AUX slurmdbd.initd 1046 RMD160 dd897cbdc0a5e64a24ad43b76c2b85b8a7515824 SHA1 b7ba92782a5010e6bca4b5b4903e9f57f16ca921 SHA256 ddf8c11886a1bce77b7ce8e73f6b91ceb5a994fbb3665e9e3f51468eae02fe48 -DIST slurm-2.2.7.tar.bz2 4454740 RMD160 37ee3ef3382e3ca00cff99901020825bbf0c0b03 SHA1 b5e62504f31007f593d6ce6d90415579273a7b0f SHA256 8dfd8ec1b447caa1c8d83817a90414e19bc5b8cc9caf2c7ec4b6d2cb6bcd0a7e -DIST slurm-2.3.3.tar.bz2 5079379 RMD160 9a6584a23afbadbf6e307ea9efa583478475e53a SHA1 d307747c1ab3ba5f8908e4ac466e4f094255f5dd SHA256 75baa014e2ca569644c37b5cd5c4c599aa57a6fbb73c81b1272a00678050e3d2 -EBUILD slurm-2.2.7-r1.ebuild 3545 RMD160 1a3caa7458e44254cdef1b968b5a95d03045723a SHA1 1e6eaacb65c00a8041d4c5503ec93b35c594d8b2 SHA256 7d246aa7a8685a02b6cd3915a811020360b8b8893c054ee4cbc611de9faac063 -EBUILD slurm-2.2.7-r2.ebuild 4759 RMD160 4bdef83b56c928f76306ad4b5e8f3b5da9f6c3ee SHA1 98ea9cf3a27f6a9da78f82da1ee9df0cc85fabf1 SHA256 293090530af8db24db6192f1101f347e9088386b8f0e64d710eed74559f0fedd -EBUILD slurm-2.3.3.ebuild 4433 RMD160 2b4baaa99cd431ed9b77655d0f2aecabcf03f328 SHA1 f3a5cc0d2ca272a0037280256307be67ba37cf29 SHA256 1a5fa5268cba4c7dc761ed048faf7e63b42beb53f730a0418a277834c59c4c75 -MISC ChangeLog 1452 RMD160 c6061822e16272c0c7f3454035a6f31db01af3c8 SHA1 baf65d5f57c40c78ca8839ff42a806ac1d8b1dfa SHA256 519251116e84c1b7005b98b28cbe04a700c1a5ec336e82767edf5eaefe9dfdad -MISC metadata.xml 443 RMD160 0a1990a76e09e35f4828dd4d354386fb0466f863 SHA1 18f4c31746d23a579bb56dbc0bd3a341cd3bc1b3 SHA256 d72c661300e641a22f67fed77fa1c9ffc8a4723222fd785df11a2ca1249e065a +AUX logrotate 360 RMD160 80cd0bcd242413dc2e69dfca7ccd6698b02e82ae SHA1 eac0e307c40f7575060662d4d570d66f135e06fe SHA256 22a0e4bf21c9387f34245ec3cdd3a59512e377f6a0509451088b17e6c5201f89 +AUX slurm.confd 155 RMD160 73a90f9f7fa3fe02a77ac10fbb81c337fa3f2469 SHA1 937e5a3898b7102bac37ee8540c2b3105073d2f5 SHA256 bc1b32f7b3c4a2fb5d97ae227ff15d40da16c346c0eed33a7956ed780a1a0d96 +AUX slurmctld.initd 1952 RMD160 780eab8a019e1b3cf984e1a1bcb349d9ab04ec1f SHA1 b58efc209c5f0e62791863342aa878ce2dae1d09 SHA256 eda111fbbc9f6493d41e2942c6ca59e3e1a56034b32d4f1c2f14f127699e3a78 +AUX slurmd.initd 2109 RMD160 871a020158f99501d223f2799c24c57af495885e SHA1 e289687ff005b4abdb7cc4261f31117b91f1bfb3 SHA256 1083215224462facd69418fdb6188246911cfe5ca8241fa3af65a124759bf3d1 +AUX slurmdbd.initd 1830 RMD160 a7910486720458d8c24cdba297064100059bd972 SHA1 95d10303b0aa4a2796b36de7a4333c0100c7389d SHA256 f23e1d6fdfa935bc0830cc963cf25621c9255ef50871712742cc425ea3fb034c +DIST slurm-2.3.4.tar.bz2 5082579 RMD160 5dbad2f6b2535366ee47fad0b6a192a4c38881d6 SHA1 198ef06298f6f46edad097a0b6e7be63cff61914 SHA256 2a221316077c4b70df42042d1c94bc552b38060fe2b775bf2827543eef63aeb4 +EBUILD slurm-2.3.4.ebuild 7564 RMD160 793a17998ca44177f25097b284edb3059e1597fd SHA1 0b6419c285bcf5bc1614a750205d5d2a94d2b138 SHA256 51723f22bdaaa4062d4623b5962235fe98ded480fd817109dab8e901f27c1b83 +MISC ChangeLog 1898 RMD160 6f3b470ceb933e7546278aeca7284fcd9bfd864f SHA1 568faf440240fdcadfff895ddc378a7315d2210d SHA256 2b601589072c327c5f614c3147572b0c8101e652e7aca05a4711024f2ff87e7e +MISC metadata.xml 497 RMD160 c7cea24c46cbba00b9d9f6a5b227067941f44f59 SHA1 01cfa11a96fbbd63bdea8806b32693f12dd259da SHA256 3cff82ac54ff70daf04862ee4ef12c7684563244af8d4996b04937654b155c38 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.18 (GNU/Linux) +Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCAAGBQJPYmikAAoJEOf+E+/4L5LmvUIQAK+Wg1ZrqAGTKZ0FgJ0hsqbn -dvJQDRy7LAhaZ6I08q0ZvXjsGC5Unp3KDZ8eoWebN7FF8mqh2AGhdrFooJQ5mJ8u -Sn43jrBeYsypxQhVcdclKAr/CvIN6Q/vQ1qc3nkoeNSlBhYBwXJrKPzgZC86xroL -r4nT4XlrtbZ3XVne16b7H0TdVaD/3Po+IuK5QNFIsiAvXjwDgs5CDjqegtwGa5BE -GiDANC8XOxPJAPfdfrDRYOOywQwLgNKIFMfyT5wwDy95f5K20uv4hOTbTLaGnvPO -6mscSDG44BT38x/d7Gn6WYWWIK7GyBNjh0M6CNjzqVGFE3d52LoxUQD1yfovtSXy -q3YoZkZWQxROZxxfmDnmU2eF204jTWxUy3B6NYgJBVbu+D4iz05bHTG2QMilbnwR -ZG0Xwibx1cgnovzd9mSSVLFoGyNflwiBfgYRBOxmM6M0lu91eHkE7YRsBLNDKKV0 -75el+XcuUJP6V9SVsHmUIubQehAl2kC8N1heJblfZkKQGxdQTTlWOljPrAjfeTS4 -uuxpCiSo3PTZkhXjDWXn5OAGS7CL1NmGrGn44vGUVCnlRwVA/yqd7WvQON2xRXtb -rpnWbQKPazF6atg2SpKGVeoD+MPvNKpBFgy7yLZcCTaEeH3ZWoDOO8DZApDObw+4 -8mKDimQpRn3PDpYPGstb -=jLeB +iQIcBAEBCAAGBQJPjsc/AAoJEOf+E+/4L5Lmu/IP/1t3gjLNTPaZo7TRshfZVG32 +ig17n4yzjH6HXeDe8xZz9YwpbbdxlU0Xfp4FjLCqXxhtc1ecU4caAKmc6+Z37hCH +Tps33m3y0WigO743WSVWG2NDKgTNvIPPjt8RagbSPudAzMg7YKJ6ou9gWxCQ9uDA +Az0Mq5iZfEu+gpUf9SnqtSBBiBTOiqoXfsMe+bF2zoEeIemr7xYvpxnioqTLsSjV +OBjyA0CYM1bv4sPropbPfiJXMInVTYxjD3m9lFC+AIYTOsgXsAdu5V5OrIYwGtRB +oRwxh5ZL7jxanQCo2cq8NM1Jj7x2RhL9v6zGlN1ktUe+3CGkhyAPYFzVHaHt5rVw +ovay9XpRlSTog191r6KgWvFx004BqgjYMjfJh2AmST37K/71DfsBDORV7W4K4xnw +eOmltcCctMb064QOo+RQfwGHDaPRGoCQmSQmQORn55Q1eTcKmcLh7BIjAgzXbD+2 +YturiT1MeOb+8bYl87zFpUHvunxHpePtTRsh1jAzwPOhZ0sA7POxVl7KVyLmIvlQ +BmLyTeabOqjwprnzpkzu99H/frDkpFTmvwbTINoroiZrnhCHGvkREaEOfPx+8C/B +HyAf/Unu4ftM2XXn5A+Sgd1zgufXo7bEVeq7ySU7R8xVJ72Oxoyj5qf/VPWZuPns +xQWc1Hd3SPYjNILT0mTY +=3uGe -----END PGP SIGNATURE----- diff --git a/sys-cluster/slurm/files/logrotate b/sys-cluster/slurm/files/logrotate new file mode 100644 index 000000000000..978a869eb993 --- /dev/null +++ b/sys-cluster/slurm/files/logrotate @@ -0,0 +1,20 @@ +/var/log/slurm/*.log { + weekly + compress + missingok + nocopytruncate + nocreate + nodelaycompress + nomail + notifempty + noolddir + rotate 5 + sharedscripts + size=5M + create 640 slurm slurm + postrotate + /etc/init.d/slurmd reload + /etc/init.d/slurmctld reload + /etc/init.d/slurmdbd reload + endscript +} diff --git a/sys-cluster/slurm/files/slurm.confd b/sys-cluster/slurm/files/slurm.confd index 13b69146e921..c406dc3f2a2c 100644 --- a/sys-cluster/slurm/files/slurm.confd +++ b/sys-cluster/slurm/files/slurm.confd @@ -3,3 +3,4 @@ SLURMCTLD_OPTIONS="" SLURMDBD_OPTIONS="" SLURMD_OPTIONS="" SLURM_USE_MUNGE="0" +SLURM_USE_YPBIND="0"
\ No newline at end of file diff --git a/sys-cluster/slurm/files/slurmctld.initd b/sys-cluster/slurm/files/slurmctld.initd index 133aaa62923d..75cb21ef28fb 100644 --- a/sys-cluster/slurm/files/slurmctld.initd +++ b/sys-cluster/slurm/files/slurmctld.initd @@ -1,19 +1,34 @@ #!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/files/slurmctld.initd,v 1.2 2011/07/04 10:15:30 alexxy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/files/slurmctld.initd,v 1.3 2012/04/18 13:53:03 alexxy Exp $ -opts="reload" +extra_commands="reload" [[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm depend() { local _need="net" [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" - after logger + [[ ${SLURM_USE_YPBIND} -ne 0 ]] && _need="${_need} ypbind" + after logger slurmdbd need ${_need} } +create_folder_and_set_permission() { + folder=${1} + # Fix permissions (/tmp is wiped at boot) + if [[ "${folder}" == "/tmp" ]]; then + eerror "SLURM: folder == ${folder} == /tmp" + exit + fi + if [[ "${folder}" == "/var/tmp" ]]; then + eerror "SLURM: folder == ${folder} == /var/tmp" + exit + fi + checkpath -d -o slurm:slurm ${folder} +} + checkconfig() { if [ ! -e "/etc/slurm/slurm.conf" ]; then eerror "Missing config /etc/slurm/slurm.conf" @@ -21,10 +36,18 @@ checkconfig() { eerror "in slurm doc directory" return 1 fi + + # Make sure folders exists + . /etc/slurm/slurm.conf + folders=(${SlurmdSpoolDir} `dirname ${SlurmctldLogFile}` `dirname ${SlurmctldPidFile}` `dirname ${SlurmdLogFile}` `dirname ${SlurmdPidFile}` ${SlurmdSpoolDir} ${StateSaveLocation}) + for folder in ${folders[*]}; do + create_folder_and_set_permission ${folder} + done } start() { ebegin "Starting slurm control daemon" + checkconfig start-stop-daemon --start --quiet --background \ --pidfile /var/run/slurm/slurmctld.pid \ --user slurm \ diff --git a/sys-cluster/slurm/files/slurmd.initd b/sys-cluster/slurm/files/slurmd.initd index a1a4be242759..a3ce9a92c7ad 100644 --- a/sys-cluster/slurm/files/slurmd.initd +++ b/sys-cluster/slurm/files/slurmd.initd @@ -1,19 +1,34 @@ #!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/files/slurmd.initd,v 1.3 2011/07/04 10:15:30 alexxy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/files/slurmd.initd,v 1.4 2012/04/18 13:53:03 alexxy Exp $ -opts="reload" +extra_commands="reload" [[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm depend() { local _need="net" [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" + [[ ${SLURM_USE_YPBIND} -ne 0 ]] && _need="${_need} ypbind" after logger need ${_need} } +create_folder_and_set_permission() { + folder=${1} + # Fix permissions (/tmp is wiped at boot) + if [[ "${folder}" == "/tmp" ]]; then + eerror "SLURM: folder == ${folder} == /tmp" + exit + fi + if [[ "${folder}" == "/var/tmp" ]]; then + eerror "SLURM: folder == ${folder} == /var/tmp" + exit + fi + checkpath -d -o slurm:slurm ${folder} +} + checkconfig() { if [ ! -e "/etc/slurm/slurm.conf" ]; then eerror "Missing config /etc/slurm/slurm.conf" @@ -21,10 +36,21 @@ checkconfig() { eerror "in slurm doc directory" return 1 fi + # Make sure folders exists + . /etc/slurm/slurm.conf + folders=(${SlurmdSpoolDir} `dirname ${SlurmctldLogFile}` `dirname ${SlurmctldPidFile}` `dirname ${SlurmdLogFile}` `dirname ${SlurmdPidFile}` ${SlurmdSpoolDir} ${StateSaveLocation}) + for folder in ${folders[*]}; do + create_folder_and_set_permission ${folder} + done } start() { ebegin "Starting slurm daemon" + checkconfig + # Slurm does not propagate limits, which can brakes InfiniBand + # See http://www.open-mpi.org/faq/?category=openfabrics + # and https://computing.llnl.gov/linux/slurm/faq.html#rlimit + ulimit -l unlimited start-stop-daemon --start --quiet --background \ --pidfile /var/run/slurm/slurmd.pid \ --user root \ diff --git a/sys-cluster/slurm/files/slurmdbd.initd b/sys-cluster/slurm/files/slurmdbd.initd index c8512c516293..9a012c704cac 100644 --- a/sys-cluster/slurm/files/slurmdbd.initd +++ b/sys-cluster/slurm/files/slurmdbd.initd @@ -1,33 +1,56 @@ #!/sbin/runscript -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/files/slurmdbd.initd,v 1.2 2011/07/04 10:15:30 alexxy Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/files/slurmdbd.initd,v 1.3 2012/04/18 13:53:03 alexxy Exp $ -opts="reload" +extra_commands="reload" [[ -f /etc/conf.d/slurm ]] && . /etc/conf.d/slurm depend() { local _need="net" [[ ${SLURM_USE_MUNGE} -ne 0 ]] && _need="${_need} munged" + [[ ${SLURM_USE_YPBIND} -ne 0 ]] && _need="${_need} ypbind" after logger need ${_need} } +create_folder_and_set_permission() { + folder=${1} + # Fix permissions (/tmp is wiped at boot) + if [[ "${folder}" == "/tmp" ]]; then + eerror "SLURM: folder == ${folder} == /tmp" + exit + fi + if [[ "${folder}" == "/var/tmp" ]]; then + eerror "SLURM: folder == ${folder} == /var/tmp" + exit + fi + checkpath -d -o slurm:slurm ${folder} +} + checkconfig() { if [ ! -e "/etc/slurm/slurmdbd.conf" ]; then eerror "Missing config /etc/slurm/slurmdbd.conf" return 1 fi + + # Make sure folders exists + . /etc/slurm/slurm.conf + folders=(${SlurmdSpoolDir} `dirname ${SlurmctldLogFile}` `dirname ${SlurmctldPidFile}` `dirname ${SlurmdLogFile}` `dirname ${SlurmdPidFile}` ${SlurmdSpoolDir} ${StateSaveLocation}) + for folder in ${folders[*]}; do + create_folder_and_set_permission ${folder} + done } start() { ebegin "Starting slurmdb daemon" + checkconfig start-stop-daemon --start --quiet --background \ - --pidfile /var/run/slurm/slurmddb.pid \ + --pidfile /var/run/slurm/slurmdbd.pid \ --user slurm \ --group slurm \ - --exec /usr/sbin/slurmddb -- ${SLURMD_OPTS} + --exec /usr/sbin/slurmdbd -- ${SLURMD_OPTS} eend $? } diff --git a/sys-cluster/slurm/metadata.xml b/sys-cluster/slurm/metadata.xml index 654f3e95a4d0..9882145f156b 100644 --- a/sys-cluster/slurm/metadata.xml +++ b/sys-cluster/slurm/metadata.xml @@ -8,6 +8,7 @@ <use> <flag name='maui'>Enable maui scheduler support</flag> <flag name='munge'>Enable authentication via munge</flag> + <flag name='ypbind'>Enable ypbind based auth</flag> <flag name='torque'>Enable perl scripts that emulates pbs (qstat, qsub etc.)</flag> </use> </pkgmetadata> diff --git a/sys-cluster/slurm/slurm-2.2.7-r1.ebuild b/sys-cluster/slurm/slurm-2.2.7-r1.ebuild deleted file mode 100644 index 3e62f364ed90..000000000000 --- a/sys-cluster/slurm/slurm-2.2.7-r1.ebuild +++ /dev/null @@ -1,119 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/slurm-2.2.7-r1.ebuild,v 1.1 2011/08/31 15:32:17 alexxy Exp $ - -EAPI=4 - -inherit eutils pam - -DESCRIPTION="SLURM: A Highly Scalable Resource Manager" -HOMEPAGE="https://computing.llnl.gov/linux/slurm/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="maui +munge mysql pam postgres ssl static-libs" - -DEPEND=" - !sys-cluster/torque - !net-analyzer/slurm - mysql? ( dev-db/mysql ) - munge? ( sys-auth/munge ) - pam? ( virtual/pam ) - postgres? ( dev-db/postgresql-base ) - ssl? ( dev-libs/openssl ) - >=sys-apps/hwloc-1.1.1-r1" -RDEPEND="${DEPEND} - maui? ( sys-cluster/maui[slurm] )" - -pkg_setup() { - enewgroup slurm 500 - enewuser slurm 500 -1 /var/spool/slurm slurm -} - -src_prepare() { - # gentoo uses /sys/fs/cgroup instead of /dev/cgroup - sed -e 's:/dev/cgroup:/sys/fs/cgroup:g' \ - -i "${S}/doc/man/man5/cgroup.conf.5" \ - -i "${S}/etc/cgroup.conf.example" \ - -i "${S}/etc/cgroup.release_agent" \ - -i "${S}/src/plugins/proctrack/cgroup/xcgroup.h" \ - || die - # and pids should go to /var/run/slurm - sed -e 's:/var/run/slurmctld.pid:/var/run/slurm/slurmctld.pid:g' \ - -e 's:/var/run/slurmd.pid:/var/run/slurm/slurmd.pid:g' \ - -i "${S}/etc/slurm.conf.example" - # also state dirs are in /var/spool/slurm - sed -e 's:StateSaveLocation=/tmp:StateSaveLocation=/var/spool/slurm:g' \ - -e 's:SlurmdSpoolDir=/tmp/slurmd:SlurmdSpoolDir=/var/spool/slurm/slurmd:g' \ - -i "${S}/etc/slurm.conf.example" -} - -src_configure() { - local myconf=( - --sysconfdir="${EPREFIX}/etc/${PN}" - --with-hwloc="${EPREFIX}/usr" - ) - use pam && myconf+=( --with-pam_dir=$(getpam_mod_dir) ) - use mysql || myconf+=( --without-mysql_config ) - use postgres || myconf+=( --without-pg_config ) - econf "${myconf[@]}" \ - $(use_enable pam) \ - $(use_with ssl) \ - $(use_with munge) \ - $(use_enable static-libs static) -} - -src_compile() { - default - use pam && emake -C contribs/pam || die -} - -src_install() { - default - emake DESTDIR="${D}" -C contribs/torque install || die - use pam && emake DESTDIR="${D}" -C contribs/pam install || die - use static-libs || find "${ED}" -name '*.la' -exec rm {} + - # we dont need it - rm "${ED}/usr/bin/mpiexec" || die - # install sample configs - keepdir /etc/slurm - keepdir /var/log/slurm - keepdir /var/spool/slurm - keepdir /var/run/slurm - insinto /etc/slurm - doins etc/cgroup.conf.example - doins etc/federation.conf.example - doins etc/slurm.conf.example - doins etc/slurmdbd.conf.example - exeinto /etc/slurm - doexe etc/cgroup.release_agent - doexe etc/slurm.epilog.clean - # install init.d files - newinitd "${FILESDIR}/slurmd.initd" slurmd - newinitd "${FILESDIR}/slurmctld.initd" slurmctld - newinitd "${FILESDIR}/slurmdbd.initd" slurmdbd - # install conf.d files - newconfd "${FILESDIR}/slurm.confd" slurm -} - -pkg_preinst() { - if use munge; then - sed -i 's,\(PBS_USE_MUNGE=\).*,\11,' "${D}"etc/conf.d/slurm || die - fi -} - -pkg_postinst() { - einfo "Fixing permissions in /var/spool/${PN}" - chown -R ${PN}:${PN} /var/spool/${PN} - einfo "Fixing permissions in /var/run/${PN}" - chown -R ${PN}:${PN} /var/run/${PN} - einfo "Fixing permissions in /var/log/${PN}" - chown -R ${PN}:${PN} /var/log/${PN} - echo - - elog "Please visit the file '/usr/share/doc/${P}/html/configurator.html" - elog "through a (javascript enabled) browser to create a configureation file." - elog "Copy that file to /etc/slurm.conf on all nodes (including the headnode) of your cluster." -} diff --git a/sys-cluster/slurm/slurm-2.2.7-r2.ebuild b/sys-cluster/slurm/slurm-2.2.7-r2.ebuild deleted file mode 100644 index e4d6c9968ea5..000000000000 --- a/sys-cluster/slurm/slurm-2.2.7-r2.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/slurm-2.2.7-r2.ebuild,v 1.2 2011/10/26 16:00:57 alexxy Exp $ - -EAPI=4 - -inherit eutils pam perl-module - -DESCRIPTION="SLURM: A Highly Scalable Resource Manager" -HOMEPAGE="https://computing.llnl.gov/linux/slurm/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="maui +munge mysql pam +perl postgres ssl static-libs +torque" - -DEPEND=" - !net-analyzer/slurm - mysql? ( dev-db/mysql ) - munge? ( sys-auth/munge ) - pam? ( virtual/pam ) - perl? ( perl-core/Switch ) - postgres? ( dev-db/postgresql-base ) - ssl? ( dev-libs/openssl ) - torque? ( !sys-cluster/torque ) - >=sys-apps/hwloc-1.1.1-r1 - " -RDEPEND="${DEPEND} - maui? ( sys-cluster/maui[slurm] ) - " - -REQUIRED_USE="torque? ( perl )" - -LIBSLURM_PERL_S="${WORKDIR}/${P}/contribs/perlapi/libslurm/perl" -LIBSLURMDB_PERL_S="${WORKDIR}/${P}/contribs/perlapi/libslurmdb/perl" - -pkg_setup() { - enewgroup slurm 500 - enewuser slurm 500 -1 /var/spool/slurm slurm -} - -src_prepare() { - # gentoo uses /sys/fs/cgroup instead of /dev/cgroup - sed -e 's:/dev/cgroup:/sys/fs/cgroup:g' \ - -i "${S}/doc/man/man5/cgroup.conf.5" \ - -i "${S}/etc/cgroup.conf.example" \ - -i "${S}/etc/cgroup.release_agent" \ - -i "${S}/src/plugins/proctrack/cgroup/xcgroup.h" \ - || die - # and pids should go to /var/run/slurm - sed -e 's:/var/run/slurmctld.pid:/var/run/slurm/slurmctld.pid:g' \ - -e 's:/var/run/slurmd.pid:/var/run/slurm/slurmd.pid:g' \ - -i "${S}/etc/slurm.conf.example" - # also state dirs are in /var/spool/slurm - sed -e 's:StateSaveLocation=/tmp:StateSaveLocation=/var/spool/slurm:g' \ - -e 's:SlurmdSpoolDir=/tmp/slurmd:SlurmdSpoolDir=/var/spool/slurm/slurmd:g' \ - -i "${S}/etc/slurm.conf.example" -} - -src_configure() { - local myconf=( - --sysconfdir="${EPREFIX}/etc/${PN}" - --with-hwloc="${EPREFIX}/usr" - ) - use pam && myconf+=( --with-pam_dir=$(getpam_mod_dir) ) - use mysql || myconf+=( --without-mysql_config ) - use postgres || myconf+=( --without-pg_config ) - econf "${myconf[@]}" \ - $(use_enable pam) \ - $(use_with ssl) \ - $(use_with munge) \ - $(use_enable static-libs static) - if use perl ; then - # small hack to make it compile - mkdir -p "${S}/src/api/.libs" - mkdir -p "${S}/src/db_api/.libs" - touch "${S}/src/api/.libs/libslurm.so" - touch "${S}/src/db_api/.libs/libslurmdb.so" - cd "${LIBSLURM_PERL_S}" - S="${LIBSLURM_PERL_S}" SRC_PREP="no" perl-module_src_configure - cd "${LIBSLURMDB_PERL_S}" - S="${LIBSLURMDB_PERL_S}" SRC_PREP="no" perl-module_src_configure - cd "${S}" - rm -rf "${S}/src/api/.libs" "${S}/src/db_api/.libs" - fi -} - -src_compile() { - default - use pam && emake -C contribs/pam || die - if use perl ; then - cd "${LIBSLURM_PERL_S}" - S="${LIBSLURM_PERL_S}" perl-module_src_compile - cd "${LIBSLURMDB_PERL_S}" - S="${LIBSLURMDB_PERL_S}" perl-module_src_compile - cd "${S}" - fi - if use torque ;then - emake -C contribs/torque || die - fi -} - -src_install() { - default - emake DESTDIR="${D}" -C contribs/torque install || die - use pam && emake DESTDIR="${D}" -C contribs/pam install || die - if use perl; then - cd "${LIBSLURM_PERL_S}" - S="${LIBSLURM_PERL_S}" perl-module_src_install - cd "${LIBSLURMDB_PERL_S}" - S="${LIBSLURMDB_PERL_S}" perl-module_src_install - cd "${S}" - fi - if use torque; then - emake DESTDIR="${D}" -C contribs/torque || die - fi - use static-libs || find "${ED}" -name '*.la' -exec rm {} + - # we dont need it - rm "${ED}/usr/bin/mpiexec" || die - # install sample configs - keepdir /etc/slurm - keepdir /var/log/slurm - keepdir /var/spool/slurm - keepdir /var/run/slurm - insinto /etc/slurm - doins etc/cgroup.conf.example - doins etc/federation.conf.example - doins etc/slurm.conf.example - doins etc/slurmdbd.conf.example - exeinto /etc/slurm - doexe etc/cgroup.release_agent - doexe etc/slurm.epilog.clean - # install init.d files - newinitd "${FILESDIR}/slurmd.initd" slurmd - newinitd "${FILESDIR}/slurmctld.initd" slurmctld - newinitd "${FILESDIR}/slurmdbd.initd" slurmdbd - # install conf.d files - newconfd "${FILESDIR}/slurm.confd" slurm -} - -pkg_preinst() { - if use munge; then - sed -i 's,\(PBS_USE_MUNGE=\).*,\11,' "${D}"etc/conf.d/slurm || die - fi -} - -pkg_postinst() { - einfo "Fixing permissions in /var/spool/${PN}" - chown -R ${PN}:${PN} /var/spool/${PN} - einfo "Fixing permissions in /var/run/${PN}" - chown -R ${PN}:${PN} /var/run/${PN} - einfo "Fixing permissions in /var/log/${PN}" - chown -R ${PN}:${PN} /var/log/${PN} - echo - - elog "Please visit the file '/usr/share/doc/${P}/html/configurator.html" - elog "through a (javascript enabled) browser to create a configureation file." - elog "Copy that file to /etc/slurm.conf on all nodes (including the headnode) of your cluster." -} diff --git a/sys-cluster/slurm/slurm-2.3.3.ebuild b/sys-cluster/slurm/slurm-2.3.3.ebuild deleted file mode 100644 index 2117e22b812b..000000000000 --- a/sys-cluster/slurm/slurm-2.3.3.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/slurm-2.3.3.ebuild,v 1.2 2012/03/15 22:09:57 alexxy Exp $ - -EAPI=4 - -inherit eutils pam perl-module - -DESCRIPTION="SLURM: A Highly Scalable Resource Manager" -HOMEPAGE="https://computing.llnl.gov/linux/slurm/" -SRC_URI=" - http://www.schedmd.com/download/latest/${P}.tar.bz2 - http://www.schedmd.com/download/archive/${P}.tar.bz2 - " - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="maui +munge mysql pam +perl postgres ssl static-libs +torque" - -DEPEND=" - !net-analyzer/slurm - mysql? ( dev-db/mysql ) - munge? ( sys-auth/munge ) - pam? ( virtual/pam ) - perl? ( perl-core/Switch ) - postgres? ( dev-db/postgresql-base ) - ssl? ( dev-libs/openssl ) - torque? ( !sys-cluster/torque ) - >=sys-apps/hwloc-1.1.1-r1 - " -RDEPEND="${DEPEND} - dev-libs/libcgroup - maui? ( sys-cluster/maui[slurm] ) - " - -REQUIRED_USE="torque? ( perl )" - -LIBSLURM_PERL_S="${WORKDIR}/${P}/contribs/perlapi/libslurm/perl" -LIBSLURMDB_PERL_S="${WORKDIR}/${P}/contribs/perlapi/libslurmdb/perl" - -pkg_setup() { - enewgroup slurm 500 - enewuser slurm 500 -1 /var/spool/slurm slurm -} - -src_prepare() { - # and pids should go to /var/run/slurm - sed -e 's:/var/run/slurmctld.pid:/var/run/slurm/slurmctld.pid:g' \ - -e 's:/var/run/slurmd.pid:/var/run/slurm/slurmd.pid:g' \ - -i "${S}/etc/slurm.conf.example" - # also state dirs are in /var/spool/slurm - sed -e 's:StateSaveLocation=/tmp:StateSaveLocation=/var/spool/slurm:g' \ - -e 's:SlurmdSpoolDir=/tmp/slurmd:SlurmdSpoolDir=/var/spool/slurm/slurmd:g' \ - -i "${S}/etc/slurm.conf.example" -} - -src_configure() { - local myconf=( - --sysconfdir="${EPREFIX}/etc/${PN}" - --with-hwloc="${EPREFIX}/usr" - ) - use pam && myconf+=( --with-pam_dir=$(getpam_mod_dir) ) - use mysql || myconf+=( --without-mysql_config ) - use postgres || myconf+=( --without-pg_config ) - econf "${myconf[@]}" \ - $(use_enable pam) \ - $(use_with ssl) \ - $(use_with munge) \ - $(use_enable static-libs static) - if use perl ; then - # small hack to make it compile - mkdir -p "${S}/src/api/.libs" - mkdir -p "${S}/src/db_api/.libs" - touch "${S}/src/api/.libs/libslurm.so" - touch "${S}/src/db_api/.libs/libslurmdb.so" - cd "${LIBSLURM_PERL_S}" - S="${LIBSLURM_PERL_S}" SRC_PREP="no" perl-module_src_configure - cd "${LIBSLURMDB_PERL_S}" - S="${LIBSLURMDB_PERL_S}" SRC_PREP="no" perl-module_src_configure - cd "${S}" - rm -rf "${S}/src/api/.libs" "${S}/src/db_api/.libs" - fi -} - -src_compile() { - default - use pam && emake -C contribs/pam || die - if use perl ; then - cd "${LIBSLURM_PERL_S}" - S="${LIBSLURM_PERL_S}" perl-module_src_compile - cd "${LIBSLURMDB_PERL_S}" - S="${LIBSLURMDB_PERL_S}" perl-module_src_compile - cd "${S}" - fi - if use torque ;then - emake -C contribs/torque || die - fi -} - -src_install() { - default - emake DESTDIR="${D}" -C contribs/torque install || die - use pam && emake DESTDIR="${D}" -C contribs/pam install || die - if use perl; then - cd "${LIBSLURM_PERL_S}" - S="${LIBSLURM_PERL_S}" perl-module_src_install - cd "${LIBSLURMDB_PERL_S}" - S="${LIBSLURMDB_PERL_S}" perl-module_src_install - cd "${S}" - fi - if use torque; then - emake DESTDIR="${D}" -C contribs/torque || die - fi - use static-libs || find "${ED}" -name '*.la' -exec rm {} + - # we dont need it - rm "${ED}/usr/bin/mpiexec" || die - # install sample configs - keepdir /etc/slurm - keepdir /var/log/slurm - keepdir /var/spool/slurm - keepdir /var/run/slurm - insinto /etc/slurm - doins etc/*.example - exeinto /etc/slurm - doexe etc/slurm.epilog.clean - # install init.d files - newinitd "${FILESDIR}/slurmd.initd" slurmd - newinitd "${FILESDIR}/slurmctld.initd" slurmctld - newinitd "${FILESDIR}/slurmdbd.initd" slurmdbd - # install conf.d files - newconfd "${FILESDIR}/slurm.confd" slurm -} - -pkg_preinst() { - if use munge; then - sed -i 's,\(PBS_USE_MUNGE=\).*,\11,' "${D}"etc/conf.d/slurm || die - fi -} - -pkg_postinst() { - einfo "Fixing permissions in /var/spool/${PN}" - chown -R ${PN}:${PN} /var/spool/${PN} - einfo "Fixing permissions in /var/run/${PN}" - chown -R ${PN}:${PN} /var/run/${PN} - einfo "Fixing permissions in /var/log/${PN}" - chown -R ${PN}:${PN} /var/log/${PN} - echo - - elog "Please visit the file '/usr/share/doc/${P}/html/configurator.html" - elog "through a (javascript enabled) browser to create a configureation file." - elog "Copy that file to /etc/slurm.conf on all nodes (including the headnode) of your cluster." -} diff --git a/sys-cluster/slurm/slurm-2.3.4.ebuild b/sys-cluster/slurm/slurm-2.3.4.ebuild new file mode 100644 index 000000000000..0297c626c5a4 --- /dev/null +++ b/sys-cluster/slurm/slurm-2.3.4.ebuild @@ -0,0 +1,225 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/slurm-2.3.4.ebuild,v 1.1 2012/04/18 13:53:03 alexxy Exp $ + +RESTRICT="primaryuri" + +EAPI=4 +inherit eutils versionator pam perl-module + +MY_PV=$(replace_version_separator 3 '-') # stable releases +#MY_PV=$(replace_version_separator 3 '-0.') # pre-releases +MY_P="${PN}-${MY_PV}" +MY_branch="latest" +#MY_branch="development" + +DESCRIPTION="SLURM: A Highly Scalable Resource Manager" +HOMEPAGE="https://computing.llnl.gov/linux/slurm/" +SRC_URI="http://www.schedmd.com/download/${MY_branch}/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="maui +munge mysql pam perl postgres ssl static-libs torque ypbind" + +DEPEND=" + !sys-cluster/torque + !net-analyzer/slurm + mysql? ( dev-db/mysql ) + munge? ( sys-auth/munge ) + ypbind? ( net-nds/ypbind ) + pam? ( virtual/pam ) + postgres? ( dev-db/postgresql-base ) + ssl? ( dev-libs/openssl ) + >=sys-apps/hwloc-1.1.1-r1" +RDEPEND="${DEPEND} + maui? ( sys-cluster/maui[slurm] )" + +REQUIRED_USE="torque? ( perl )" + +S="${WORKDIR}/${MY_P}" + +LIBSLURM_PERL_S="${WORKDIR}/${P}/contribs/perlapi/libslurm/perl" +LIBSLURMDB_PERL_S="${WORKDIR}/${P}/contribs/perlapi/libslurmdb/perl" + +pkg_setup() { + enewgroup slurm 500 + enewuser slurm 500 -1 /var/spool/slurm slurm +} + +src_prepare() { + # Gentoo uses /sys/fs/cgroup instead of /cgroup + # FIXME: Can the "^/cgroup" and "\([ =\"]\)/cgroup" patterns be merged? + sed \ + -e 's|\([ =\"]\)/cgroup|\1/sys/fs/cgroup|g' \ + -e "s|^/cgroup|/sys/fs/cgroup|g" \ + -i "${S}/doc/man/man5/cgroup.conf.5" \ + -i "${S}/etc/cgroup.release_common.example" \ + -i "${S}/src/common/xcgroup_read_config.c" \ + || die "Can't sed /cgroup for /sys/fs/cgroup" + # and pids should go to /var/run/slurm + sed -e 's:/var/run/slurmctld.pid:/var/run/slurm/slurmctld.pid:g' \ + -e 's:/var/run/slurmd.pid:/var/run/slurm/slurmd.pid:g' \ + -i "${S}/etc/slurm.conf.example" \ + || die "Can't sed for /var/run/slurmctld.pid" + # also state dirs are in /var/spool/slurm + sed -e 's:StateSaveLocation=*.:StateSaveLocation=/var/spool/slurm:g' \ + -e 's:SlurmdSpoolDir=*.:SlurmdSpoolDir=/var/spool/slurm/slurmd:g' \ + -i "${S}/etc/slurm.conf.example" \ + || die "Can't sed ${S}/etc/slurm.conf.example for StateSaveLocation=*. or SlurmdSpoolDir=*" + # and tmp should go to /var/tmp/slurm + sed -e 's:/tmp:/var/tmp:g' \ + -i "${S}/etc/slurm.conf.example" \ + || die "Can't sed for StateSaveLocation=*./tmp" +} + +src_configure() { + local myconf=( + --sysconfdir="${EPREFIX}/etc/${PN}" + --with-hwloc="${EPREFIX}/usr" + --docdir="${EPREFIX}/usr/share/doc/${P}" + --htmldir="${EPREFIX}/usr/share/doc/${P}" + ) + use pam && myconf+=( --with-pam_dir=$(getpam_mod_dir) ) + use mysql || myconf+=( --without-mysql_config ) + use postgres || myconf+=( --without-pg_config ) + econf "${myconf[@]}" \ + $(use_enable pam) \ + $(use_with ssl) \ + $(use_with munge) \ + $(use_enable static-libs static) + + # --htmldir does not seems to propagate... Documentations are installed + # in /usr/share/doc/slurm-2.3.0/html + # instead of /usr/share/doc/slurm-2.3.0.2/html + sed -e "s|htmldir = .*/html|htmldir = \${prefix}/share/doc/slurm-${PVR}/html|g" -i doc/html/Makefile || die + if use perl ; then + # small hack to make it compile + mkdir -p "${S}/src/api/.libs" + mkdir -p "${S}/src/db_api/.libs" + touch "${S}/src/api/.libs/libslurm.so" + touch "${S}/src/db_api/.libs/libslurmdb.so" + cd "${LIBSLURM_PERL_S}" + S="${LIBSLURM_PERL_S}" SRC_PREP="no" perl-module_src_configure + cd "${LIBSLURMDB_PERL_S}" + S="${LIBSLURMDB_PERL_S}" SRC_PREP="no" perl-module_src_configure + cd "${S}" + rm -rf "${S}/src/api/.libs" "${S}/src/db_api/.libs" + fi +} + +src_compile() { + default + use pam && emake -C contribs/pam || die + if use perl ; then + cd "${LIBSLURM_PERL_S}" + S="${LIBSLURM_PERL_S}" perl-module_src_compile + cd "${LIBSLURMDB_PERL_S}" + S="${LIBSLURMDB_PERL_S}" perl-module_src_compile + cd "${S}" + fi + if use torque ; then + emake -C contribs/torque || die + fi +} + +src_install() { + default + use pam && emake DESTDIR="${D}" -C contribs/pam install || die + if use perl; then + cd "${LIBSLURM_PERL_S}" + S="${LIBSLURM_PERL_S}" perl-module_src_install + cd "${LIBSLURMDB_PERL_S}" + S="${LIBSLURMDB_PERL_S}" perl-module_src_install + cd "${S}" + fi + if use torque; then + emake DESTDIR="${D}" -C contribs/torque || die + fi + use static-libs || find "${ED}" -name '*.la' -exec rm {} + + # we dont need it + rm "${ED}/usr/bin/mpiexec" || die + # install sample configs + keepdir /etc/slurm + insinto /etc/slurm + doins etc/cgroup.conf.example + doins etc/federation.conf.example + doins etc/slurm.conf.example + doins etc/slurmdbd.conf.example + exeinto /etc/slurm + doexe etc/cgroup.release_common.example + doexe etc/slurm.epilog.clean + # install init.d files + newinitd "${FILESDIR}/slurmd.initd" slurmd + newinitd "${FILESDIR}/slurmctld.initd" slurmctld + newinitd "${FILESDIR}/slurmdbd.initd" slurmdbd + # install conf.d files + newconfd "${FILESDIR}/slurm.confd" slurm + # Install logrotate file + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotate" slurm || die + # cgroups support + exeinto /etc/slurm/cgroup + doexe etc/cgroup.release_common.example + mv "${D}"/etc/slurm/cgroup/cgroup.release_common.example "${D}"/etc/slurm/cgroup/release_common || die "Can't move cgroup.release_common.example" + ln -s release_common "${D}"/etc/slurm/cgroup/release_cpuset || die "Can't create symbolic link release_cpuset" + ln -s release_common "${D}"/etc/slurm/cgroup/release_devices || die "Can't create symbolic link release_devices" + ln -s release_common "${D}"/etc/slurm/cgroup/release_freezer || die "Can't create symbolic link release_freezer" +} + +pkg_preinst() { + if use munge; then + sed -i 's,\(SLURM_USE_MUNGE=\).*,\11,' "${D}"etc/conf.d/slurm || die + fi + if use ypbind; then + sed -i 's,\(SLURM_USE_YPBIND=\).*,\11,' "${D}"etc/conf.d/slurm || die + fi +} + +create_folders_and_fix_permissions() { + einfo "Fixing permissions in ${@}" + mkdir -p ${@} + chown -R ${PN}:${PN} ${@} +} + +pkg_postinst() { + paths=( + /var/${PN}/checkpoint + /var/${PN} + /var/spool/${PN}/slurmd + /var/spool/${PN} + /var/run/${PN} + /var/log/${PN} + /var/tmp/${PN}/${PN}d + /var/tmp/${PN} + ) + for folder_path in ${paths[@]}; do + create_folders_and_fix_permissions $folder_path + done + einfo + + elog "Please visit the file '/usr/share/doc/${P}/html/configurator.html" + elog "through a (javascript enabled) browser to create a configureation file." + elog "Copy that file to /etc/slurm/slurm.conf on all nodes (including the headnode) of your cluster." + einfo + elog "For cgroup support, please see http://www.schedmd.com/slurmdocs/cgroup.conf.html" + elog "Your kernel must be compiled with the wanted cgroup feature:" + elog " General setup --->" + elog " [*] Control Group support --->" + elog " [*] Freezer cgroup subsystem" + elog " [*] Device controller for cgroups" + elog " [*] Cpuset support" + elog " [*] Simple CPU accounting cgroup subsystem" + elog " [*] Resource counters" + elog " [*] Memory Resource Controller for Control Groups" + elog " [*] Group CPU scheduler --->" + elog " [*] Group scheduling for SCHED_OTHER" + elog "Then, set these options in /etc/slurm/slurm.conf:" + elog " ProctrackType=proctrack/cgroup" + elog " TaskPlugin=task/cgroup" + einfo + ewarn "Paths were created for slurm. Please use these paths in /etc/slurm/slurm.conf:" + for folder_path in ${paths[@]}; do + ewarn " ${folder_path}" + done +} |