summaryrefslogtreecommitdiff
path: root/sys-cluster/maui
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-cluster/maui
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-cluster/maui')
-rw-r--r--sys-cluster/maui/Manifest10
-rw-r--r--sys-cluster/maui/files/3.2.6_p21-autoconf-2.60-compat.patch11
-rw-r--r--sys-cluster/maui/files/maui-3.2.6_p21-pbs-nodefile.patch23
-rw-r--r--sys-cluster/maui/files/maui-3.3.1-torque_4.patch14
-rw-r--r--sys-cluster/maui/files/maui.initd23
-rw-r--r--sys-cluster/maui/maui-3.3.1-r2.ebuild59
-rw-r--r--sys-cluster/maui/maui-3.3.1-r3.ebuild61
-rw-r--r--sys-cluster/maui/metadata.xml12
8 files changed, 213 insertions, 0 deletions
diff --git a/sys-cluster/maui/Manifest b/sys-cluster/maui/Manifest
new file mode 100644
index 000000000000..2b8293c19662
--- /dev/null
+++ b/sys-cluster/maui/Manifest
@@ -0,0 +1,10 @@
+AUX 3.2.6_p21-autoconf-2.60-compat.patch 476 SHA256 52847580ae728a650c9812d017323d2ca9b2ee8b60fb4a81e8c6d68f213156c0 SHA512 28575326cd87c14421fe60ec7f27f8c16e43a8468104082938fa2f0eefb2b477d1fb62a3b0ab584374a0a32be287d4525cfd1c959a9db4b91df00e8668f1e3a5 WHIRLPOOL d461add28eae14b3dcd81eeddc0fb87ce0ed8a03d7444f74ee7fecc2bc4166fecbf55d4746dd9703250f89f0d017d3b0f43af9c5c0906fdcb5f3ceaf8d5928b2
+AUX maui-3.2.6_p21-pbs-nodefile.patch 554 SHA256 3030b9fcdffdb67fca02e691206cfe0acbbcadd5427cbdf05bb903fec6a9f02e SHA512 e488c7e814cf686e14d163d87df98e64de14ee45e00937d4b7eb023d0baebd7132ae4efb5c1db5eda2128f9f080b833ef0d309618a8fac0f5fd2449a8dc81efd WHIRLPOOL 980c8a282745c218cef4aeffb19191bac337d3c9caefb36d5cd43fe9a3a696c19805d026363d5c487d0117e5bbe5f5eadeae7be372d1d12d484b40e221f2e4a7
+AUX maui-3.3.1-torque_4.patch 568 SHA256 1cd02d24716616d554485bbb9d1cb6f2c00e356919f3c0efc61fe27a0e74ac04 SHA512 ac493718454e9d08f9d94aa38ce7a9f6baa58643928eb9d6af738be94aa7dd2b685de98ed0516170656ca94a52b6838a3203c87d64642dfebe81733efc461f18 WHIRLPOOL 3c38e62eabdd46dfbadb5053e9bcce8e81200324bb4725797a79edff6e886dc0c2af646907bc73b0f2473534fe0aa3272fc25de6d275676ac7e43147e51b9413
+AUX maui.initd 477 SHA256 4be34a42832db7447ba552329d724070948793b812e1f2a1dc6120c6816b6f7b SHA512 73748cba13d55a56d7db3e3b36d52726c3e6eb54a177f87dc14aec655e7c19614932116719d121da6808227c9216c3ca59697b4327b3a5fb828ef8c2f6645b3f WHIRLPOOL 2da5699311ae2e3f386310da4ffba13fa34842f283ffb7d8415f811923b50f2247fddb4fdeeb4598d7624d244461f785401b0d952ca852a644a63790015e519c
+DIST maui-3.3.1.tar.gz 901179 SHA256 033a1ab40da69bc091ce5d01199ac599de0b6bbdfa404b9b1631ee964dc711a1 SHA512 e22a0f08b40d810792175b5bc15a53831e84eeab43ddc79ebc3e10a2d5c0b77a4634ff67975f9dae06fbb84f84cb3a95e9cbfcb8086734dbd41caee3359675b0 WHIRLPOOL 0d3bcb6284b852881b2ac4faf83abf7d8668db53e94938f82ba73e7f8f4ca9e5e3fbb698b984fd1d053ffa1514431bf18d958915e783045a94578767cd675bf6
+EBUILD maui-3.3.1-r2.ebuild 1353 SHA256 2365f3971e54b202a02e809daa64073b889ae168f24ec9f2eca1a5c3defceabd SHA512 3e4a6d00464c9c6d99c5ce148e13bb72f9b92039d0b2ef6524cb5734df259b9fffe04e9f31ae33be469842cbe971f911caaf9358d48ac9be3bd40bf110673c11 WHIRLPOOL 0aabdc6a0248d0232b468572d992b44f55a068c1e7d0f8c7504d7ea6b3f9017420461d8f80e3fb395a911c52685e538637564954a50f0fd0990843fccaa0706e
+EBUILD maui-3.3.1-r3.ebuild 1400 SHA256 e41fe5434e586551e389445fde528ddeca1a460ab158174337a02174a7c48eae SHA512 bba6f57085c1a081d8b0eba96854a12f24bee3cee3eda5f7b81431e5dae5dcc24449021e092ef332b6f6a14e8d2135c269b905c5a7603c95e70b2fec5628629b WHIRLPOOL 738d905410eeb0b24691cfceb7c60566b774f3f8a071415dfe70999468b3a4677878f52533964bfcb445bf4a007ffe1749953215ed399cb3f5cfd3e38e4975b4
+MISC ChangeLog 3106 SHA256 e1b4161ca17a54efaa1aa463a504ab066af67f469e33f2f9489f4e3d9f61ac88 SHA512 4a66a4e4f9be4f9673fcbe2801371ee45022c0c33e9f2220e58c4f056c88985d4fbdd11e9610a4f4bafa4fb69516f1f5ab691053062b385ca024c7183dd66427 WHIRLPOOL dfdfa17ab40b9c2b2ee685edfd889bf77a35a1b747f9dcb8416ca0935caa91c295ec79f265969721be26f60aaf73eedb30c869c7a15401d0bdca6549f307d3fa
+MISC ChangeLog-2015 4361 SHA256 656f0497e93df9453bbf6f7fcbadeb4210951d505bdd6e815f71aef8302a5018 SHA512 cd182a61ca803033c8020b10d78a1fd178d09e234483309678c4d098f23b2c7ea0cb6a7f114654f5e53708751fa026d01a6369fa9661d9a0b8614373e44addcb WHIRLPOOL 1734975a11d843052e8ab9b7064eeae1e5c1c4cd3e3b5b1db2b6bf1337cadeaf3beb3429b4e6c39189a92b1a2da7a77c1b5aa043fd9a27cca6011161c42b4d5d
+MISC metadata.xml 386 SHA256 79682c24b648f701f226006eba4c53cc2b9253e97e08ef78743323731e1d42c4 SHA512 15a026ae2a40cc79038965dc0cff98f4dc4a5c2e231a9a59f46c1360c6b32e2195e1d354be34870cc7ef3033c9182d4b933c1e7625dd1053d062f12321c8130e WHIRLPOOL eaac5ec23157eb8c9f3f4f31ba621fc9d5c3b21f2a3c6f738ac0cab09d17da58617c830f8985283c2e959adf511e76728fd7b82d016472fcbfb35ef2557c4cf1
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
new file mode 100644
index 000000000000..9b77a27f88df
--- /dev/null
+++ b/sys-cluster/maui/files/3.2.6_p21-autoconf-2.60-compat.patch
@@ -0,0 +1,11 @@
+--- maui-3.2.6p21.orig/Makefile.in 2006-05-23 15:20:49.000000000 -0700
++++ maui-3.2.6p21/Makefile.in 2006-09-25 20:42:24.000000000 -0700
+@@ -18,7 +18,7 @@
+ # ============================
+ # Resource Manager section
+ # ============================
+-@ll_definitions@@sdr_definitions@@pbs_definitions@@sge_definitions@@lsf_definitions@@mx_definitions@@pcre_definitions@
++@pbs_definitions@
+
+ # ============================
+ # Master Makefile for @PACKAGE_NAME@-@PACKAGE_VERSION@
diff --git a/sys-cluster/maui/files/maui-3.2.6_p21-pbs-nodefile.patch b/sys-cluster/maui/files/maui-3.2.6_p21-pbs-nodefile.patch
new file mode 100644
index 000000000000..90bf80ca661a
--- /dev/null
+++ b/sys-cluster/maui/files/maui-3.2.6_p21-pbs-nodefile.patch
@@ -0,0 +1,23 @@
+--- maui-3.2.6p21/src/moab/MPBSI.c.orig 2010-03-16 12:54:09.000000000 +0100
++++ maui-3.2.6p21/src/moab/MPBSI.c 2010-03-16 12:57:07.000000000 +0100
+@@ -6406,6 +6406,7 @@
+ int tindex;
+
+ char tmpHostName[MAX_MLINE];
++ char tmpTaskList[MAX_MLINE+10];
+
+ mnode_t *N;
+
+@@ -6458,10 +6459,10 @@
+ }
+ else
+ {
+- sprintf(TSBuf,"%s%s:ppn=%d",
+- TSBuf,
++ snprintf (tmpTaskList,MAX_MLINE+10,"%s:ppn=%d",
+ tmpHostName,
+ NL[tindex].TC);
++ MUStrCat(TSBuf,tmpTaskList,BufSize);
+ }
+ } /* END for (tindex) */
+
diff --git a/sys-cluster/maui/files/maui-3.3.1-torque_4.patch b/sys-cluster/maui/files/maui-3.3.1-torque_4.patch
new file mode 100644
index 000000000000..1e0631555736
--- /dev/null
+++ b/sys-cluster/maui/files/maui-3.3.1-torque_4.patch
@@ -0,0 +1,14 @@
+diff -ur maui-3.3.1.orig/src/moab/MPBSI.c maui-3.3.1/src/moab/MPBSI.c
+--- maui-3.3.1.orig/src/moab/MPBSI.c 2013-07-31 09:36:31.831849229 -0700
++++ maui-3.3.1/src/moab/MPBSI.c 2013-07-31 09:37:12.951107957 -0700
+@@ -174,8 +174,8 @@
+
+ extern int pbs_errno;
+
+-extern int get_svrport(const char *,char *,int);
+-extern int openrm(char *,int);
++extern unsigned int get_svrport(char *,char *,unsigned int);
++extern int openrm(char *,unsigned int);
+ extern int addreq(int,char *);
+ extern int closerm(int);
+ extern int pbs_stagein(int,char *,char *,char *);
diff --git a/sys-cluster/maui/files/maui.initd b/sys-cluster/maui/files/maui.initd
new file mode 100644
index 000000000000..df4f64474f1f
--- /dev/null
+++ b/sys-cluster/maui/files/maui.initd
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+ after pbs_server slurmctld
+ before pbs_mom slurmd
+ after logger
+}
+
+start() {
+ ebegin "Starting Maui scheduler"
+ start-stop-daemon --start --exec /usr/sbin/maui
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping Maui scheduler"
+ start-stop-daemon --stop -p /var/spool/maui/maui.pid
+ eend ${?}
+}
+# vim:ts=4
diff --git a/sys-cluster/maui/maui-3.3.1-r2.ebuild b/sys-cluster/maui/maui-3.3.1-r2.ebuild
new file mode 100644
index 000000000000..95d331c38e1e
--- /dev/null
+++ b/sys-cluster/maui/maui-3.3.1-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils multilib
+
+DESCRIPTION="Maui Cluster Scheduler"
+HOMEPAGE="http://www.adaptivecomputing.com/products/open-source/maui/"
+SRC_URI="http://www.adaptivecomputing.com/download/${PN}/${P}.tar.gz"
+
+LICENSE="maui"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="pbs slurm"
+
+REQUIRED_USE="^^ ( pbs slurm )"
+
+DEPEND="
+ pbs? ( sys-cluster/torque )
+ slurm? ( sys-cluster/slurm )"
+RDEPEND="${DEPEND}"
+
+RESTRICT="fetch mirror"
+
+pkg_setup() {
+ if use slurm; then
+ if [ -z ${MAUI_KEY} ]; then
+ eerror "You should set MAUI_KEY to any integer value in make.conf"
+ return 1
+ fi
+ fi
+}
+
+src_prepare() {
+ sed -e "s:\$(INST_DIR)/lib:\$(INST_DIR)/$(get_libdir):" \
+ -i src/{moab,server,mcom}/Makefile || die
+}
+
+src_configure() {
+ local myconf
+ use pbs && myconf="--with-pbs=${EPREFIX}/usr"
+ use slurm && myconf+=" --with-wiki --with-key=${MAUI_KEY}"
+ econf \
+ --with-spooldir="${EPREFIX}"/var/spool/${PN} \
+ ${myconf}
+}
+
+src_install() {
+ emake BUILDROOT="${D}" INST_DIR="${ED}/usr" install || die
+ dodoc docs/README CHANGELOG || die
+ dohtml docs/mauidocs.html || die
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
+}
+
+pkg_nofetch() {
+ einfo "Please visit ${HOMEPAGE}, obtain the file"
+ einfo "${P}.tar.gz and put it in ${DISTDIR}"
+}
diff --git a/sys-cluster/maui/maui-3.3.1-r3.ebuild b/sys-cluster/maui/maui-3.3.1-r3.ebuild
new file mode 100644
index 000000000000..a21bb11735c7
--- /dev/null
+++ b/sys-cluster/maui/maui-3.3.1-r3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils multilib
+
+DESCRIPTION="Maui Cluster Scheduler"
+HOMEPAGE="http://www.adaptivecomputing.com/products/open-source/maui/"
+SRC_URI="http://www.adaptivecomputing.com/download/${PN}/${P}.tar.gz"
+
+LICENSE="maui"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="pbs slurm"
+
+REQUIRED_USE="^^ ( pbs slurm )"
+
+DEPEND="
+ pbs? ( >=sys-cluster/torque-4 )
+ slurm? ( sys-cluster/slurm )"
+RDEPEND="${DEPEND}"
+
+RESTRICT="fetch mirror"
+
+pkg_setup() {
+ if use slurm; then
+ if [ -z ${MAUI_KEY} ]; then
+ eerror "You should set MAUI_KEY to any integer value in make.conf"
+ return 1
+ fi
+ fi
+}
+
+src_prepare() {
+ sed -e "s:\$(INST_DIR)/lib:\$(INST_DIR)/$(get_libdir):" \
+ -i src/{moab,server,mcom}/Makefile || die
+
+ epatch "${FILESDIR}"/${P}-torque_4.patch
+}
+
+src_configure() {
+ local myconf
+ use pbs && myconf="--with-pbs=${EPREFIX}/usr"
+ use slurm && myconf+=" --with-wiki --with-key=${MAUI_KEY}"
+ econf \
+ --with-spooldir="${EPREFIX}"/var/spool/${PN} \
+ ${myconf}
+}
+
+src_install() {
+ emake BUILDROOT="${D}" INST_DIR="${ED}/usr" install || die
+ dodoc docs/README CHANGELOG || die
+ dohtml docs/mauidocs.html || die
+ newinitd "${FILESDIR}/${PN}.initd" ${PN} || die
+}
+
+pkg_nofetch() {
+ einfo "Please visit ${HOMEPAGE}, obtain the file"
+ einfo "${P}.tar.gz and put it in ${DISTDIR}"
+}
diff --git a/sys-cluster/maui/metadata.xml b/sys-cluster/maui/metadata.xml
new file mode 100644
index 000000000000..9baf5ea25211
--- /dev/null
+++ b/sys-cluster/maui/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+ </maintainer>
+ <use>
+ <flag name="pbs">Enable pbs integration</flag>
+ <flag name="slurm">Enable slurm integration</flag>
+ </use>
+</pkgmetadata>