diff options
author | Andreas Hüttel <dilfridge@gentoo.org> | 2014-10-30 21:40:51 +0000 |
---|---|---|
committer | Andreas Hüttel <dilfridge@gentoo.org> | 2014-10-30 21:40:51 +0000 |
commit | f5e3219ac59e92f69dc61b9b7b89648d86454b02 (patch) | |
tree | 2611b469174cc2959c24c74fc4c7821a4901cbd7 /sys-cluster | |
parent | Fix live ebuild. Add separate USE-flag for JIT and also fix the libpcre depend (diff) | |
download | historical-f5e3219ac59e92f69dc61b9b7b89648d86454b02.tar.gz historical-f5e3219ac59e92f69dc61b9b7b89648d86454b02.tar.bz2 historical-f5e3219ac59e92f69dc61b9b7b89648d86454b02.zip |
Drop old, acked by alexxy
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Manifest-Sign-Key: 0xEBE6A336BE19039C!
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/slurm/ChangeLog | 6 | ||||
-rw-r--r-- | sys-cluster/slurm/Manifest | 34 | ||||
-rw-r--r-- | sys-cluster/slurm/slurm-2.4.5.ebuild | 247 | ||||
-rw-r--r-- | sys-cluster/slurm/slurm-2.5.4.ebuild | 261 | ||||
-rw-r--r-- | sys-cluster/slurm/slurm-2.5.6.ebuild | 261 | ||||
-rw-r--r-- | sys-cluster/slurm/slurm-2.5.7.ebuild | 261 |
6 files changed, 22 insertions, 1048 deletions
diff --git a/sys-cluster/slurm/ChangeLog b/sys-cluster/slurm/ChangeLog index be8a88667b16..41ad91b32c6c 100644 --- a/sys-cluster/slurm/ChangeLog +++ b/sys-cluster/slurm/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-cluster/slurm # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/ChangeLog,v 1.27 2014/07/30 01:03:14 grknight Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/ChangeLog,v 1.28 2014/10/30 21:40:42 dilfridge Exp $ + + 30 Oct 2014; Andreas K. Huettel <dilfridge@gentoo.org> -slurm-2.4.5.ebuild, + -slurm-2.5.4.ebuild, -slurm-2.5.6.ebuild, -slurm-2.5.7.ebuild: + Drop old, acked by alexxy 30 Jul 2014; Brian Evans <grknight@gentoo.org> slurm-2.4.5.ebuild, slurm-2.5.4.ebuild, slurm-2.5.6.ebuild, slurm-2.5.7.ebuild, diff --git a/sys-cluster/slurm/Manifest b/sys-cluster/slurm/Manifest index 6f47c8d76323..c97eb8c0c305 100644 --- a/sys-cluster/slurm/Manifest +++ b/sys-cluster/slurm/Manifest @@ -7,26 +7,26 @@ AUX slurm.confd 155 SHA256 bc1b32f7b3c4a2fb5d97ae227ff15d40da16c346c0eed33a7956e AUX slurmctld.initd 1952 SHA256 eda111fbbc9f6493d41e2942c6ca59e3e1a56034b32d4f1c2f14f127699e3a78 SHA512 4df0dacdfc9e1b0ff240c8b1c4ba392ce1d8cdffd83c81a4b7bccb257b92c41afee040e41b4e2cc6db498b9bffe09c83452866aef4098b26c6c535b9b177ecea WHIRLPOOL 9429296b22e7e962df7970874b42affafd5b81b12487ae1fadeaa32a3fa5df02309e3ef4281d434a556d8bb7f7aa166fe5080aaf94c5cf626d6e29475150bc30 AUX slurmd.initd 2109 SHA256 1083215224462facd69418fdb6188246911cfe5ca8241fa3af65a124759bf3d1 SHA512 3f4abb168c4162763fdcb509d6706c147c4f5646e86131e6c7d10d87d4e44ca64f700305a31ca160f673efd3afb43b83a7c247f40dd7922d08b78b7392648fd7 WHIRLPOOL a010a4cabe4b938bdea0705936cbab082734f9c9307b42fc11f4574e0a0c56a5271eb2c3dcc1169aacea3a7a088552aea278175b1545de21d660bc14b69becc2 AUX slurmdbd.initd 1830 SHA256 f23e1d6fdfa935bc0830cc963cf25621c9255ef50871712742cc425ea3fb034c SHA512 4d9974f843203cb713dcc1aa5a68260593a9b802a5881980cecf887a2d6f962bb7aa73972110c9e4aad61795bae40d0130bbf0c605dda4f7ee5cfb26a7e7aed1 WHIRLPOOL 76ea5aea38e29bd47308903a0f57dd944d0f52a0df8c5096e66289de2d7ca292677b063952b33d8d75d1cc8fd543b70c0cefe06946b730547389ea0e3440d934 -DIST slurm-2.4.5.tar.bz2 5377708 SHA256 db1d2f559353e0b494cf7a29ec3f7f314cb2e6131e1b8dfe307cf189b51626a4 SHA512 5e0ed11608bfb00a0f7fa8199fc5aef4d7568fa171570b1f40a6356070f4cde7c4227be3997650d3f2c26b46fd408a2b97d48fd0d0b6aef6a3aff9ea75a22b7a WHIRLPOOL 599aa7c846ca655912711286eaadaef732c434f5bcc0ed905b6aa3bfa07be81322c8b6253bc11e7644f6a72918a2c9383682c97847e8bbd78d77c49b56f5ad9f -DIST slurm-2.5.4.tar.bz2 5497719 SHA256 c713ea74742ce14a27b88b02f1a475bc71cde22ad3a323a4d669530d8b68f09e SHA512 46231fbf0237d6afdede1ca8ff32d5e87c1cff1bc13ceb6dd61adc58f142fb5070759e7747a4ae81a54293a2ca73caf9a4fcf535786728178ee0afba141aa7bd WHIRLPOOL bad00e2c9d42a1de3ff87426124fdc5fee1fff368907e0812007ab9bc0aec0127287afe7f77c7d5b3314caec15a9f7b3a83eaf1f6520c2f0ccdfaebd74ba201d -DIST slurm-2.5.6.tar.bz2 5586165 SHA256 0bfcf9b5942792c149382c6f890a29ca9fdbc1a083d4ab1de8b08c6d3c6ce48f SHA512 4d8736b101380d04d67c3316f1948fb78f668c650740fbf69ad1b3a647f828b0fc97910659f006c70ab2ed6148883ce1803ff498b0edada3a2205aed10d0db94 WHIRLPOOL 1f1bad205d75ac563c19061ea3806341c78514e3eaa50aa832ffb3a91177a454377689e9bf0a77361bcaa720ac32d9dddd2c34cd3a7aa80a9602fceeac49dac5 -DIST slurm-2.5.7.tar.bz2 5567101 SHA256 a995524430a2833c01c86b3f79be669b7acac54765dc94609c85cbb690a4f9b5 SHA512 6147b30ad2b787675d25032ab94a92b1b579f231bfb1500ce4293cb8350f289d338e903ca1060a6a4adf725f4cc3bd2e93070f4aa8a46655410ec9a694ec5965 WHIRLPOOL 84a504390eabf906a9af170058bb3fb7d57074596d85934c76ebf9c422ba6a3ec2bc3ce804a0558a17a09b145af1a8b6d0c446df44d1ee55c6979cac5c389988 DIST slurm-2.6.3.tar.bz2 5945106 SHA256 3523f6866531d48061e6b4d769a17e005b7d440bb5cee6c6ab6a12518c884d23 SHA512 98e212db02d14d9808c3e89bf0a44f7925dbb8bae360e5084e28c71c0dea0e670a28a0baa1a1511666c42e19693ecd807f24241baa082475f385bf7285dba0cd WHIRLPOOL 5e8955df7419d15f4be78eb1584a5797f6c3b29c01b4352b3f0bf8a7c5e9b96b97aa4ef74ba6bda0f278e80723b72a860eb2c65686bd2adb383ea444d4a62e29 -EBUILD slurm-2.4.5.ebuild 7989 SHA256 221c2352c657875b0bee60c384cab409f44bd0e4c2b3b135591f06f0497dd1b5 SHA512 982228490db133472bb08cc7b474385fbaf7d7c6521f02fb2bb086225d34f2f9690b245f330decfb9c5d77ec8ea3eac7e08a5dac2e2c89ec2052aab372927115 WHIRLPOOL 62a1525fa21f16ec445890207c621cecc84e93f6bab7e64d604b9633849201586510a771b8268bf7df29e0aeced670eab8c734a38a45ef753ba3d540cd6f03c1 -EBUILD slurm-2.5.4.ebuild 8287 SHA256 d9e5349a79ef33bc28e8c5122dc2af16529e9d0225794dc535a8f9c552fb0401 SHA512 0a5992775de0759faf6f7c3af55300a61ff2afaa1f4ff31fafe94be41d285023ef1dea7137a79907209398538ba19b08c3907fb79237e5788b3fe8747e17c953 WHIRLPOOL 22f8b1ada97e1dfd0cbe647df23cf41824ac20b1da70adcb21bea4f058ca750e9473b05e9d5a571a01c623187a00bbd5bf63a7492bfaddaf8bfebfdab30c44eb -EBUILD slurm-2.5.6.ebuild 8287 SHA256 09bbbbcb67e11c2d734494874c4628bb731618d638f3dfa2a1737ab862deebe4 SHA512 18a9033a9c6fe515327520960a9826913e42a5f41c0c2478433a74a9045c252a046752c86c41269cdbddc191289660eac58073959195cd7f8cc7c2383f187ba5 WHIRLPOOL 47dc62adfe86ae102c03fd2ca22c720826339e1d0c210d15b95702a5c830eac19a074019692664b3e28005264d2f4b9d28d7639eb7a1c0ebcf332af3b3edd7f3 -EBUILD slurm-2.5.7.ebuild 8287 SHA256 c046fb63da1e029a12b35a7e741613a8b22707c93377843feb3d190bc96e9c77 SHA512 af7fd5cfd48de599d5b6d5618414d37d3727115c71f2270f5260e2f5d9bcbf3031af1df833ed771fae2af881fd7ec0393db988252064cd0bb25007a2c54b6734 WHIRLPOOL dc55ee5eaf0472cdc7adf7cf5fd23a4ad80f676a1447678377b41a81e08973d47a912361afde4b2089482abb84cc4a8c6ead4633c09bf42f63e7643dab363693 EBUILD slurm-2.6.3.ebuild 8287 SHA256 3e121ea11f24b0aa9b5ade5c238166097ebfd625914915cfdc111efcbfbee38d SHA512 528ede9d3b312f9d22e233741166f323668a6aeb503c161dc449c22e374d3632a71aeffe959b487a590ae6061428f208736914a14782457c9c7cc236f004d2cd WHIRLPOOL 43db1a7cb0854a9ed7bc19fecc5ce18cc825d752a8e42b6f523d1306b4bce80a9e900a422fd50dd8a649b2ef9d9e3bad7e6f145f5912e2b313668106d9c8a3eb -MISC ChangeLog 4617 SHA256 ea8b3d7ee74443130b3366d93aae73f13048217300a1753ac7f827e6ca60e522 SHA512 c469d32eff3b177aac9dca387431e1b08e7765f57db1e0fe30cdb21a6a01ecf5350444eb719b4c9e9bef53af75ebf3f3bf861c1bf26a716b9e417cf5ee3f884e WHIRLPOOL be7f8617bcde0608994d83fa57cdedad7fba631436e56492f00dd018c5517c81e3c88467d3af374baeb0542a7e5a95164fe0b38402a9cdb17e8181a5072fdb66 +MISC ChangeLog 4790 SHA256 24abdcd2432420ba1f5822b47bdf3f714a6209ca0cb96f67a6a04033fadba5e2 SHA512 0a274dffbf71d4d55748c7c8f5abb723948b65a790b60e02096aaeb0f47ee179e218da83988dd4ca80f9ef614b1ee9efe619e7d5e315d32bcb8fe58c39c3d781 WHIRLPOOL df0660297e9410b44db965352ef228ac55a56f27139cb9018f11738273bdceb9aeba2dff2295b19617b85dfc5f83a2cdfd404efeb64b7c62ca86cdb7ec00e634 MISC metadata.xml 564 SHA256 9f06f3b57990b43d1373d5895f59a73f3d371ed78fe5eff0eacbb143d15a15ca SHA512 bfb5b67ddb87cfcb3fc5dceeb32fed1b801f256cb898cdfd27722123abddcd34bd300c7c3599014ac0d89048645a7fec2f1cfe68a0a06817018a83953555ad54 WHIRLPOOL 9cbe2ec2eaa364467ab660f04bbdaa3199f778b9788cb66aef90c47f09853eb53fce5728571f5c15feae6bd9dfd16b0aa850e44f4c1118da9db9af331b6d369d -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2 +Version: GnuPG v2.0 -iQEcBAEBCAAGBQJT2ERUAAoJEE4V4vFnx44dCZwH/3zpFipLJVGT3pZpr+BuJTC/ -r3DmOblhWEdNkN4sxGUymhlwXoAmOxELxyP3FT/vfESmFpdWLiugUU5IX9gH3ajT -hSuylom6nDKufRMpa8M6mcDKp54TY6OzTbXABA6O5TtZS97bwAQDUE4d1CS3ynFG -eZwVjno6R/aQfRnHmeIK+nHMd6PwkWGZo8egbccWs2B96ypiETRsyDucf/QPDEBz -Wj7RYvjOpV0GYqSubg9z9kAoqyV7zhB1c8zdIjN88ypXLaSY0O0kZOSsQsFea+N2 -DzV5ehqTnzlVdyuszPI8nQwcER9IVM/AFjuxWNj/SU02GIwBpqX0lqmBwlPBCJA= -=nfLW +iQJ8BAEBCABmBQJUUrBgXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwNzlCRDk4QzA4RENBRkYzQUEwRjQzMDlF +QkU2QTMzNkJFMTkwMzlDAAoJEOvmoza+GQOctmAP/jNFRu4xgb0KFGwipsSUcTDw +Qm1fRRDGO/ETb1dPKceyarEmn6ji4yC06xoNXF/NPwbKLIy4W4Vn3MQEJpQ/8djn +6M3LWujlwhpCCO0YZH1irFddtCguILXNFkTXQ+j5wWfit1/sca34zpZ7VQfIRGf6 +qRzQID9AvFf4rtOXSgs/EAS1gpNDsyIvLPGOx4EuePQWdIhjfgIpqBejQqtzu+A5 +lblE8/d0sV+1oc8b4iuOIPjMjotNkakwGqt+AbSxuT51ZspN0ygK9tan76IjI9I/ +T3KhJwv8+i/rsSLiepDRL+1UrBX1yxFhI/Vi9eygTy66BBW+IQh/Mo3Lh/xj0COT +v1NAimBou54lGlZixFXKCI5DeXgOZpHFD/gg1hyVUT47S4AZLK146ipckEsXoAQR +WoV9XIL3AZY/QmikejR8oHlRy+9Ra0wDbWzGRvB2GWZsmVd1zDnmxTQg3N0dliIT +DTjoAb0abVJJ6V/yer55p9337dwmIOOO7LK1GF7KcZpZF6Fzfzmg3J0Rnn2q1sSJ +g8kJap9S5gEtJa0+AEqHi840woToS2lr+UvC972rF2AkjybhGBJLHZXmdISDSKky +5GI7mXmnXTRCQuIhfX50TNzsE64gGLwRuxUiRV9icra+QdijqF5iUtDm0R/8j1o6 +YIe3MxrQiKMySDQ/VB/q +=W8iZ -----END PGP SIGNATURE----- diff --git a/sys-cluster/slurm/slurm-2.4.5.ebuild b/sys-cluster/slurm/slurm-2.4.5.ebuild deleted file mode 100644 index 8d2035f29b79..000000000000 --- a/sys-cluster/slurm/slurm-2.4.5.ebuild +++ /dev/null @@ -1,247 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/slurm-2.4.5.ebuild,v 1.4 2014/07/30 01:03:14 grknight Exp $ - -EAPI=4 - -if [[ ${PV} == *9999* ]]; then - EGIT_REPO_URI="git://github.com/SchedMD/slurm.git" - INHERIT_GIT="git-2" - SRC_URI="" - KEYWORDS="" -else - inherit versionator - if [[ ${PV} == *pre* || ${PV} == *rc* ]]; then - MY_PV=$(replace_version_separator 3 '-0.') # pre-releases or release-candidate - else - MY_PV=$(replace_version_separator 3 '-') # stable releases - fi - MY_P="${PN}-${MY_PV}" - INHERIT_GIT="" - SRC_URI="http://www.schedmd.com/download/total/${MY_P}.tar.bz2" - KEYWORDS="~amd64 ~x86" - S="${WORKDIR}/${MY_P}" -fi - -inherit base eutils pam perl-module user ${INHERIT_GIT} - -DESCRIPTION="SLURM: A Highly Scalable Resource Manager" -HOMEPAGE="http://www.schedmd.com" - -LICENSE="GPL-2" -SLOT="0" -IUSE="lua maui multiple-slurmd +munge mysql pam perl postgres ssl static-libs torque ypbind" - -DEPEND=" - !sys-cluster/torque - !net-analyzer/slurm - !net-analyzer/sinfo - mysql? ( virtual/mysql ) - munge? ( sys-auth/munge ) - ypbind? ( net-nds/ypbind ) - pam? ( virtual/pam ) - postgres? ( dev-db/postgresql-base ) - ssl? ( dev-libs/openssl ) - lua? ( dev-lang/lua ) - !lua? ( !dev-lang/lua ) - >=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" - -RESTRICT="primaryuri" - -src_unpack() { - if [[ ${PV} == *9999* ]]; then - git-2_src_unpack - else - default - fi -} - -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) \ - $(use_enable multiple-slurmd) - - # --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 - rm -f "${ED}/usr/bin/mpiexec" || die - fi - use static-libs || find "${ED}" -name '*.la' -exec rm {} + - # 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 -} diff --git a/sys-cluster/slurm/slurm-2.5.4.ebuild b/sys-cluster/slurm/slurm-2.5.4.ebuild deleted file mode 100644 index 435a3859f7e1..000000000000 --- a/sys-cluster/slurm/slurm-2.5.4.ebuild +++ /dev/null @@ -1,261 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/slurm-2.5.4.ebuild,v 1.3 2014/07/30 01:03:13 grknight Exp $ - -EAPI=4 - -if [[ ${PV} == *9999* ]]; then - EGIT_REPO_URI="git://github.com/SchedMD/slurm.git" - INHERIT_GIT="git-2" - SRC_URI="" - KEYWORDS="" -else - inherit versionator - if [[ ${PV} == *pre* || ${PV} == *rc* ]]; then - MY_PV=$(replace_version_separator 3 '-0.') # pre-releases or release-candidate - else - MY_PV=$(replace_version_separator 3 '-') # stable releases - fi - MY_P="${PN}-${MY_PV}" - INHERIT_GIT="" - SRC_URI="http://www.schedmd.com/download/total/${MY_P}.tar.bz2" - KEYWORDS="~amd64 ~x86" - S="${WORKDIR}/${MY_P}" -fi - -inherit autotools base eutils pam perl-module user ${INHERIT_GIT} - -DESCRIPTION="SLURM: A Highly Scalable Resource Manager" -HOMEPAGE="http://www.schedmd.com" - -LICENSE="GPL-2" -SLOT="0" -IUSE="lua maui multiple-slurmd +munge mysql pam perl postgres ssl static-libs torque ypbind" - -DEPEND=" - !sys-cluster/torque - !net-analyzer/slurm - !net-analyzer/sinfo - mysql? ( virtual/mysql ) - munge? ( sys-auth/munge ) - ypbind? ( net-nds/ypbind ) - pam? ( virtual/pam ) - postgres? ( dev-db/postgresql-base ) - ssl? ( dev-libs/openssl ) - lua? ( dev-lang/lua ) - !lua? ( !dev-lang/lua ) - >=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" - -RESTRICT="primaryuri" - -PATCHES=( - "${FILESDIR}/${PN}-2.5.4-nogtk.patch" -) - -src_unpack() { - if [[ ${PV} == *9999* ]]; then - git-2_src_unpack - else - default - fi -} - -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" - # disable sview since it need gtk+ - sed -e '/sview/d' \ - -i configure.ac - sed -e 's:sview::g' \ - -i src/Makefile.am - # apply patches - epatch "${PATCHES[@]}" - elibtoolize - eautoreconf -} - -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) \ - $(use_enable multiple-slurmd) - - # --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 - rm -f "${ED}/usr/bin/mpiexec" || die - fi - use static-libs || find "${ED}" -name '*.la' -exec rm {} + - # install sample configs - keepdir /etc/slurm - insinto /etc/slurm - doins etc/bluegene.conf.example - doins etc/cgroup.conf.example - doins etc/cgroup_allowed_devices_file.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 -} diff --git a/sys-cluster/slurm/slurm-2.5.6.ebuild b/sys-cluster/slurm/slurm-2.5.6.ebuild deleted file mode 100644 index 73954b40b1d4..000000000000 --- a/sys-cluster/slurm/slurm-2.5.6.ebuild +++ /dev/null @@ -1,261 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/slurm-2.5.6.ebuild,v 1.2 2014/07/30 01:03:13 grknight Exp $ - -EAPI=4 - -if [[ ${PV} == *9999* ]]; then - EGIT_REPO_URI="git://github.com/SchedMD/slurm.git" - INHERIT_GIT="git-2" - SRC_URI="" - KEYWORDS="" -else - inherit versionator - if [[ ${PV} == *pre* || ${PV} == *rc* ]]; then - MY_PV=$(replace_version_separator 3 '-0.') # pre-releases or release-candidate - else - MY_PV=$(replace_version_separator 3 '-') # stable releases - fi - MY_P="${PN}-${MY_PV}" - INHERIT_GIT="" - SRC_URI="http://www.schedmd.com/download/total/${MY_P}.tar.bz2" - KEYWORDS="~amd64 ~x86" - S="${WORKDIR}/${MY_P}" -fi - -inherit autotools base eutils pam perl-module user ${INHERIT_GIT} - -DESCRIPTION="SLURM: A Highly Scalable Resource Manager" -HOMEPAGE="http://www.schedmd.com" - -LICENSE="GPL-2" -SLOT="0" -IUSE="lua maui multiple-slurmd +munge mysql pam perl postgres ssl static-libs torque ypbind" - -DEPEND=" - !sys-cluster/torque - !net-analyzer/slurm - !net-analyzer/sinfo - mysql? ( virtual/mysql ) - munge? ( sys-auth/munge ) - ypbind? ( net-nds/ypbind ) - pam? ( virtual/pam ) - postgres? ( dev-db/postgresql-base ) - ssl? ( dev-libs/openssl ) - lua? ( dev-lang/lua ) - !lua? ( !dev-lang/lua ) - >=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" - -RESTRICT="primaryuri" - -PATCHES=( - "${FILESDIR}/${PN}-2.5.4-nogtk.patch" -) - -src_unpack() { - if [[ ${PV} == *9999* ]]; then - git-2_src_unpack - else - default - fi -} - -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" - # disable sview since it need gtk+ - sed -e '/sview/d' \ - -i configure.ac - sed -e 's:sview::g' \ - -i src/Makefile.am - # apply patches - epatch "${PATCHES[@]}" - elibtoolize - eautoreconf -} - -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) \ - $(use_enable multiple-slurmd) - - # --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 - rm -f "${ED}/usr/bin/mpiexec" || die - fi - use static-libs || find "${ED}" -name '*.la' -exec rm {} + - # install sample configs - keepdir /etc/slurm - insinto /etc/slurm - doins etc/bluegene.conf.example - doins etc/cgroup.conf.example - doins etc/cgroup_allowed_devices_file.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 -} diff --git a/sys-cluster/slurm/slurm-2.5.7.ebuild b/sys-cluster/slurm/slurm-2.5.7.ebuild deleted file mode 100644 index ede9d7001ed0..000000000000 --- a/sys-cluster/slurm/slurm-2.5.7.ebuild +++ /dev/null @@ -1,261 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/slurm-2.5.7.ebuild,v 1.2 2014/07/30 01:03:14 grknight Exp $ - -EAPI=4 - -if [[ ${PV} == *9999* ]]; then - EGIT_REPO_URI="git://github.com/SchedMD/slurm.git" - INHERIT_GIT="git-2" - SRC_URI="" - KEYWORDS="" -else - inherit versionator - if [[ ${PV} == *pre* || ${PV} == *rc* ]]; then - MY_PV=$(replace_version_separator 3 '-0.') # pre-releases or release-candidate - else - MY_PV=$(replace_version_separator 3 '-') # stable releases - fi - MY_P="${PN}-${MY_PV}" - INHERIT_GIT="" - SRC_URI="http://www.schedmd.com/download/total/${MY_P}.tar.bz2" - KEYWORDS="~amd64 ~x86" - S="${WORKDIR}/${MY_P}" -fi - -inherit autotools base eutils pam perl-module user ${INHERIT_GIT} - -DESCRIPTION="SLURM: A Highly Scalable Resource Manager" -HOMEPAGE="http://www.schedmd.com" - -LICENSE="GPL-2" -SLOT="0" -IUSE="lua maui multiple-slurmd +munge mysql pam perl postgres ssl static-libs torque ypbind" - -DEPEND=" - !sys-cluster/torque - !net-analyzer/slurm - !net-analyzer/sinfo - mysql? ( virtual/mysql ) - munge? ( sys-auth/munge ) - ypbind? ( net-nds/ypbind ) - pam? ( virtual/pam ) - postgres? ( dev-db/postgresql-base ) - ssl? ( dev-libs/openssl ) - lua? ( dev-lang/lua ) - !lua? ( !dev-lang/lua ) - >=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" - -RESTRICT="primaryuri" - -PATCHES=( - "${FILESDIR}/${PN}-2.5.4-nogtk.patch" -) - -src_unpack() { - if [[ ${PV} == *9999* ]]; then - git-2_src_unpack - else - default - fi -} - -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" - # disable sview since it need gtk+ - sed -e '/sview/d' \ - -i configure.ac - sed -e 's:sview::g' \ - -i src/Makefile.am - # apply patches - epatch "${PATCHES[@]}" - elibtoolize - eautoreconf -} - -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) \ - $(use_enable multiple-slurmd) - - # --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 - rm -f "${ED}/usr/bin/mpiexec" || die - fi - use static-libs || find "${ED}" -name '*.la' -exec rm {} + - # install sample configs - keepdir /etc/slurm - insinto /etc/slurm - doins etc/bluegene.conf.example - doins etc/cgroup.conf.example - doins etc/cgroup_allowed_devices_file.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 -} |