From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-commits+bounces-359604-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QdS4b-0001g5-Oo
	for garchives@archives.gentoo.org; Sun, 03 Jul 2011 19:11:18 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id A0FE921C027;
	Sun,  3 Jul 2011 19:10:04 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 1CB9A21C031
	for <gentoo-commits@lists.gentoo.org>; Sun,  3 Jul 2011 19:10:04 +0000 (UTC)
Received: from pelican.gentoo.org (unknown [66.219.59.40])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 000C82AC157
	for <gentoo-commits@lists.gentoo.org>; Sun,  3 Jul 2011 16:41:51 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by pelican.gentoo.org (Postfix) with ESMTP id 585E98003D
	for <gentoo-commits@lists.gentoo.org>; Sun,  3 Jul 2011 16:41:51 +0000 (UTC)
From: "Alexey Shvetsov" <alexxy@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" <alexxy@gentoo.org>
Message-ID: <70cccd04ce59de9737af9d6d25629b28c952b0b4.alexxy@gentoo>
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/slurm/
X-VCS-Repository: proj/sci
X-VCS-Files: sys-cluster/slurm/metadata.xml sys-cluster/slurm/slurm-2.2.7.ebuild
X-VCS-Directories: sys-cluster/slurm/
X-VCS-Committer: alexxy
X-VCS-Committer-Name: Alexey Shvetsov
X-VCS-Revision: 70cccd04ce59de9737af9d6d25629b28c952b0b4
Date: Sun,  3 Jul 2011 16:41:51 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: 53e8779a295a300fa7ca9cb2c402f2de

commit:     70cccd04ce59de9737af9d6d25629b28c952b0b4
Author:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  3 16:40:03 2011 +0000
Commit:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Sun Jul  3 16:40:55 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc=
ommit;h=3D70cccd04

[sys-cluster/slurm] Initial import

(Portage version: 2.2.0_alpha43/git/Linux x86_64, signed Manifest commit =
with key F82F92E6)

---
 sys-cluster/slurm/metadata.xml       |   11 ++++++++
 sys-cluster/slurm/slurm-2.2.7.ebuild |   45 ++++++++++++++++++++++++++++=
++++++
 2 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/sys-cluster/slurm/metadata.xml b/sys-cluster/slurm/metadata.=
xml
new file mode 100644
index 0000000..c28e41a
--- /dev/null
+++ b/sys-cluster/slurm/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version=3D"1.0" encoding=3D"UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<herd>cluster</herd>
+	<maintainer>
+		<email>alexxy@gentoo.org</email>
+	</maintainer>
+	<use>
+		<flag name=3D'munge'>Enable authentication via munge.</flag>
+	</use>
+</pkgmetadata>

diff --git a/sys-cluster/slurm/slurm-2.2.7.ebuild b/sys-cluster/slurm/slu=
rm-2.2.7.ebuild
new file mode 100644
index 0000000..f5f29ee
--- /dev/null
+++ b/sys-cluster/slurm/slurm-2.2.7.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3D4
+
+inherit eutils pam
+
+DESCRIPTION=3D"SLURM: A Highly Scalable Resource Manager"
+HOMEPAGE=3D"https://computing.llnl.gov/linux/slurm/"
+SRC_URI=3D"mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE=3D"GPL-2"
+SLOT=3D"0"
+KEYWORDS=3D"~amd64"
+IUSE=3D"munge mysql pam postgres ssl static"
+
+DEPEND=3D"
+	mysql? ( dev-db/mysql )
+	munge? ( sys-auth/munge )
+	pam? ( virtual/pam )
+	postgres? ( dev-db/postgresql-base )
+	ssl? ( dev-libs/openssl )
+	>=3Dsys-apps/hwloc-1.1.1-r1"
+RDEPEND=3D"${DEPEND}"
+
+pkg_setup() {
+	enewgroup slurm
+	enewuser slurm -1 -1 /var/spool/slurm slurm
+}
+
+pkg_config() {
+	local myconf=3D(
+			--sysconfdir=3D"${EPREFIX}/etc/${PN}"
+			--with-hwloc=3D"${ED}/usr"
+			)
+	use pam && myconf+=3D( --with_pam_dir=3D$(getpam_mod_dir) )
+	use mysql && myconf+=3D( --with-mysql_config=3D"${EPREFIX}/usr/bin/mysq=
l_config" )
+	use postgres && myconf+=3D( --with-pg_config=3D"${EPREFIX}/usr/bin/pg_c=
onfig" )
+	econf "${myconf[@]}" \
+		$(use_enable pam) \
+		$(use_with ssl) \
+		$(use_with munge) \
+		$(use_enable static)
+}