Lines 1-26
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/slurm/slurm-2.4.3.ebuild,v 1.2 2012/10/14 18:27:42 alexxy Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
RESTRICT="primaryuri" |
|
|
7 |
|
6 |
|
8 |
inherit eutils versionator pam perl-module user |
7 |
if [[ ${PV} == *9999* ]]; then |
|
|
8 |
EGIT_REPO_URI="git://github.com/SchedMD/slurm.git" |
9 |
INHERIT_GIT="git-2" |
10 |
SRC_URI="" |
11 |
KEYWORDS="" |
12 |
else |
13 |
inherit versionator |
14 |
if [[ ${PV} == *pre* || ${PV} == *rc* ]]; then |
15 |
MY_PV=$(replace_version_separator 3 '-0.') # pre-releases or release-candidate |
16 |
else |
17 |
MY_PV=$(replace_version_separator 3 '-') # stable releases |
18 |
fi |
19 |
MY_P="${PN}-${MY_PV}" |
20 |
INHERIT_GIT="" |
21 |
SRC_URI="http://www.schedmd.com/download/total/${MY_P}.tar.bz2" |
22 |
KEYWORDS="~amd64 ~x86" |
23 |
S="${WORKDIR}/${MY_P}" |
24 |
fi |
9 |
|
25 |
|
10 |
MY_PV=$(replace_version_separator 3 '-') # stable releases |
26 |
inherit eutils pam perl-module ${INHERIT_GIT} |
11 |
#MY_PV=$(replace_version_separator 3 '-0.') # pre-releases |
|
|
12 |
MY_P="${PN}-${MY_PV}" |
13 |
MY_branch="latest" |
14 |
#MY_branch="development" |
15 |
|
27 |
|
16 |
DESCRIPTION="SLURM: A Highly Scalable Resource Manager" |
28 |
DESCRIPTION="SLURM: A Highly Scalable Resource Manager" |
17 |
HOMEPAGE="https://computing.llnl.gov/linux/slurm/" |
29 |
HOMEPAGE="http://www.schedmd.com" |
18 |
SRC_URI="http://www.schedmd.com/download/${MY_branch}/${MY_P}.tar.bz2" |
|
|
19 |
|
30 |
|
20 |
LICENSE="GPL-2" |
31 |
LICENSE="GPL-2" |
21 |
SLOT="0" |
32 |
SLOT="0" |
22 |
KEYWORDS="~amd64 ~x86" |
33 |
IUSE="lua maui multiple-slurmd +munge mysql pam perl postgres ssl static-libs torque ypbind" |
23 |
IUSE="maui +munge mysql pam perl postgres ssl static-libs torque ypbind" |
|
|
24 |
|
34 |
|
25 |
DEPEND=" |
35 |
DEPEND=" |
26 |
!sys-cluster/torque |
36 |
!sys-cluster/torque |
Lines 32-37
Link Here
|
32 |
pam? ( virtual/pam ) |
42 |
pam? ( virtual/pam ) |
33 |
postgres? ( dev-db/postgresql-base ) |
43 |
postgres? ( dev-db/postgresql-base ) |
34 |
ssl? ( dev-libs/openssl ) |
44 |
ssl? ( dev-libs/openssl ) |
|
|
45 |
lua? ( dev-lang/lua ) |
46 |
!lua? ( !dev-lang/lua ) |
35 |
>=sys-apps/hwloc-1.1.1-r1" |
47 |
>=sys-apps/hwloc-1.1.1-r1" |
36 |
RDEPEND="${DEPEND} |
48 |
RDEPEND="${DEPEND} |
37 |
dev-libs/libcgroup |
49 |
dev-libs/libcgroup |
Lines 39-49
Link Here
|
39 |
|
51 |
|
40 |
REQUIRED_USE="torque? ( perl )" |
52 |
REQUIRED_USE="torque? ( perl )" |
41 |
|
53 |
|
42 |
S="${WORKDIR}/${MY_P}" |
|
|
43 |
|
44 |
LIBSLURM_PERL_S="${WORKDIR}/${P}/contribs/perlapi/libslurm/perl" |
54 |
LIBSLURM_PERL_S="${WORKDIR}/${P}/contribs/perlapi/libslurm/perl" |
45 |
LIBSLURMDB_PERL_S="${WORKDIR}/${P}/contribs/perlapi/libslurmdb/perl" |
55 |
LIBSLURMDB_PERL_S="${WORKDIR}/${P}/contribs/perlapi/libslurmdb/perl" |
46 |
|
56 |
|
|
|
57 |
RESTRICT="primaryuri" |
58 |
|
59 |
src_unpack() { |
60 |
if [[ ${PV} == *9999* ]]; then |
61 |
git-2_src_unpack |
62 |
else |
63 |
[[ "${A}" != "" ]] && unpack ${A} |
64 |
fi |
65 |
|
66 |
cd ${S} |
67 |
for patch_file in ${FILESDIR}/${P}*.patch; do |
68 |
[[ -e ${patch_file} ]] && epatch ${patch_file} |
69 |
done |
70 |
} |
71 |
|
47 |
pkg_setup() { |
72 |
pkg_setup() { |
48 |
enewgroup slurm 500 |
73 |
enewgroup slurm 500 |
49 |
enewuser slurm 500 -1 /var/spool/slurm slurm |
74 |
enewuser slurm 500 -1 /var/spool/slurm slurm |
Lines 73-80
Link Here
|
73 |
sed -e 's:/tmp:/var/tmp:g' \ |
98 |
sed -e 's:/tmp:/var/tmp:g' \ |
74 |
-i "${S}/etc/slurm.conf.example" \ |
99 |
-i "${S}/etc/slurm.conf.example" \ |
75 |
|| die "Can't sed for StateSaveLocation=*./tmp" |
100 |
|| die "Can't sed for StateSaveLocation=*./tmp" |
76 |
|
|
|
77 |
epatch "${FILESDIR}"/${PN}-2.3.4-glibc2.16.patch |
78 |
} |
101 |
} |
79 |
|
102 |
|
80 |
src_configure() { |
103 |
src_configure() { |
Lines 91-97
Link Here
|
91 |
$(use_enable pam) \ |
114 |
$(use_enable pam) \ |
92 |
$(use_with ssl) \ |
115 |
$(use_with ssl) \ |
93 |
$(use_with munge) \ |
116 |
$(use_with munge) \ |
94 |
$(use_enable static-libs static) |
117 |
$(use_enable static-libs static) \ |
|
|
118 |
$(use_enable multiple-slurmd) |
95 |
|
119 |
|
96 |
# --htmldir does not seems to propagate... Documentations are installed |
120 |
# --htmldir does not seems to propagate... Documentations are installed |
97 |
# in /usr/share/doc/slurm-2.3.0/html |
121 |
# in /usr/share/doc/slurm-2.3.0/html |