Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/slurm/
Date: Sun, 03 Jul 2011 19:11:18
Message-Id: 70cccd04ce59de9737af9d6d25629b28c952b0b4.alexxy@gentoo
1 commit: 70cccd04ce59de9737af9d6d25629b28c952b0b4
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 3 16:40:03 2011 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 16:40:55 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=70cccd04
7
8 [sys-cluster/slurm] Initial import
9
10 (Portage version: 2.2.0_alpha43/git/Linux x86_64, signed Manifest commit with key F82F92E6)
11
12 ---
13 sys-cluster/slurm/metadata.xml | 11 ++++++++
14 sys-cluster/slurm/slurm-2.2.7.ebuild | 45 ++++++++++++++++++++++++++++++++++
15 2 files changed, 56 insertions(+), 0 deletions(-)
16
17 diff --git a/sys-cluster/slurm/metadata.xml b/sys-cluster/slurm/metadata.xml
18 new file mode 100644
19 index 0000000..c28e41a
20 --- /dev/null
21 +++ b/sys-cluster/slurm/metadata.xml
22 @@ -0,0 +1,11 @@
23 +<?xml version="1.0" encoding="UTF-8"?>
24 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
25 +<pkgmetadata>
26 + <herd>cluster</herd>
27 + <maintainer>
28 + <email>alexxy@g.o</email>
29 + </maintainer>
30 + <use>
31 + <flag name='munge'>Enable authentication via munge.</flag>
32 + </use>
33 +</pkgmetadata>
34
35 diff --git a/sys-cluster/slurm/slurm-2.2.7.ebuild b/sys-cluster/slurm/slurm-2.2.7.ebuild
36 new file mode 100644
37 index 0000000..f5f29ee
38 --- /dev/null
39 +++ b/sys-cluster/slurm/slurm-2.2.7.ebuild
40 @@ -0,0 +1,45 @@
41 +# Copyright 1999-2011 Gentoo Foundation
42 +# Distributed under the terms of the GNU General Public License v2
43 +# $Header: $
44 +
45 +EAPI=4
46 +
47 +inherit eutils pam
48 +
49 +DESCRIPTION="SLURM: A Highly Scalable Resource Manager"
50 +HOMEPAGE="https://computing.llnl.gov/linux/slurm/"
51 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +KEYWORDS="~amd64"
56 +IUSE="munge mysql pam postgres ssl static"
57 +
58 +DEPEND="
59 + mysql? ( dev-db/mysql )
60 + munge? ( sys-auth/munge )
61 + pam? ( virtual/pam )
62 + postgres? ( dev-db/postgresql-base )
63 + ssl? ( dev-libs/openssl )
64 + >=sys-apps/hwloc-1.1.1-r1"
65 +RDEPEND="${DEPEND}"
66 +
67 +pkg_setup() {
68 + enewgroup slurm
69 + enewuser slurm -1 -1 /var/spool/slurm slurm
70 +}
71 +
72 +pkg_config() {
73 + local myconf=(
74 + --sysconfdir="${EPREFIX}/etc/${PN}"
75 + --with-hwloc="${ED}/usr"
76 + )
77 + use pam && myconf+=( --with_pam_dir=$(getpam_mod_dir) )
78 + use mysql && myconf+=( --with-mysql_config="${EPREFIX}/usr/bin/mysql_config" )
79 + use postgres && myconf+=( --with-pg_config="${EPREFIX}/usr/bin/pg_config" )
80 + econf "${myconf[@]}" \
81 + $(use_enable pam) \
82 + $(use_with ssl) \
83 + $(use_with munge) \
84 + $(use_enable static)
85 +}