1 |
commit: 6d359ca848d188d27a64405a2b7ddfe5672f7fdc |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 22 10:39:26 2020 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 22 10:39:26 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d359ca8 |
7 |
|
8 |
sys-cluster/slurm: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
sys-cluster/slurm/Manifest | 1 - |
14 |
sys-cluster/slurm/slurm-20.02.2.1.ebuild | 263 ------------------------------- |
15 |
2 files changed, 264 deletions(-) |
16 |
|
17 |
diff --git a/sys-cluster/slurm/Manifest b/sys-cluster/slurm/Manifest |
18 |
index 03b6460a4c5..35918cfdb8f 100644 |
19 |
--- a/sys-cluster/slurm/Manifest |
20 |
+++ b/sys-cluster/slurm/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST slurm-20-02-2-1.tar.gz 8680227 BLAKE2B 9058c5161a3e087201b17484fbb8430d2af392b4abec4cfea3b6a882609bb978987a8e6aeda512b08def8010403c9f0893827632358225c15c374d15a583432f SHA512 6ed8628be442138c90f0f497846679eb2a4ea8e2c612d31c1276cc451333663bf310719a8f823dc873536343065186dc5f26871ce80340c0bdb71ab564620513 |
23 |
DIST slurm-20-02-3-1.tar.gz 8686608 BLAKE2B bbb1776c6c39ea81d636f0bf8f8534c508c1842e93d5bd70e49f8b63cf78b9d7be46f6cf2855517ebaaf294d00048f65b17dba91f2316ab0706342f68f7c2c3a SHA512 4c9f847b18052f9373694f91346eb8e0532c3a71060e5b8e4fd837534014ad5813adb93d2b60f7047e355f57919f2bef59b10c6540e13576aaa47ee0ba2b5a22 |
24 |
|
25 |
diff --git a/sys-cluster/slurm/slurm-20.02.2.1.ebuild b/sys-cluster/slurm/slurm-20.02.2.1.ebuild |
26 |
deleted file mode 100644 |
27 |
index a2a4e4bd829..00000000000 |
28 |
--- a/sys-cluster/slurm/slurm-20.02.2.1.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,263 +0,0 @@ |
31 |
-# Copyright 1999-2020 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
- |
36 |
-if [[ ${PV} == *9999* ]]; then |
37 |
- EGIT_REPO_URI="https://github.com/SchedMD/slurm.git" |
38 |
- INHERIT_GIT="git-r3" |
39 |
- MY_P="${P}" |
40 |
-else |
41 |
- if [[ ${PV} == *pre* || ${PV} == *rc* ]]; then |
42 |
- MY_PV=$(ver_rs '-0.') # pre-releases or release-candidate |
43 |
- else |
44 |
- MY_PV=$(ver_rs 1-3 '-') # stable releases |
45 |
- fi |
46 |
- MY_P="${PN}-${MY_PV}" |
47 |
- INHERIT_GIT="" |
48 |
- SRC_URI="https://github.com/SchedMD/slurm/archive/${MY_P}.tar.gz" |
49 |
- KEYWORDS="~amd64 ~x86" |
50 |
-fi |
51 |
- |
52 |
-inherit autotools bash-completion-r1 pam perl-module prefix toolchain-funcs systemd ${INHERIT_GIT} |
53 |
- |
54 |
-DESCRIPTION="A Highly Scalable Resource Manager" |
55 |
-HOMEPAGE="https://www.schedmd.com https://github.com/SchedMD/slurm" |
56 |
- |
57 |
-LICENSE="GPL-2" |
58 |
-SLOT="0" |
59 |
-IUSE="debug hdf5 html ipmi json lua multiple-slurmd +munge mysql netloc numa ofed pam perl slurmdbd static-libs ucx torque X" |
60 |
- |
61 |
-COMMON_DEPEND=" |
62 |
- !sys-cluster/torque |
63 |
- !net-analyzer/slurm |
64 |
- !net-analyzer/sinfo |
65 |
- || ( sys-cluster/pmix[-pmi] >=sys-cluster/openmpi-2.0.0 ) |
66 |
- mysql? ( |
67 |
- || ( dev-db/mariadb-connector-c dev-db/mysql-connector-c ) |
68 |
- slurmdbd? ( || ( dev-db/mariadb dev-db/mysql ) ) |
69 |
- ) |
70 |
- munge? ( sys-auth/munge ) |
71 |
- pam? ( sys-libs/pam ) |
72 |
- lua? ( dev-lang/lua:0= ) |
73 |
- !lua? ( !dev-lang/lua ) |
74 |
- ipmi? ( sys-libs/freeipmi ) |
75 |
- json? ( dev-libs/json-c:= ) |
76 |
- amd64? ( netloc? ( sys-apps/netloc ) ) |
77 |
- hdf5? ( sci-libs/hdf5:= ) |
78 |
- numa? ( sys-process/numactl ) |
79 |
- ofed? ( sys-fabric/ofed ) |
80 |
- ucx? ( sys-cluster/ucx ) |
81 |
- X? ( net-libs/libssh2 ) |
82 |
- >=sys-apps/hwloc-1.1.1-r1 |
83 |
- sys-libs/ncurses:0= |
84 |
- app-arch/lz4:0= |
85 |
- sys-libs/readline:0=" |
86 |
-DEPEND="${COMMON_DEPEND} |
87 |
- html? ( sys-apps/man2html )" |
88 |
-RDEPEND="${OMMON_DEPEND} |
89 |
- acct-user/slurm |
90 |
- acct-group/slurm |
91 |
- dev-libs/libcgroup" |
92 |
- |
93 |
-REQUIRED_USE="torque? ( perl )" |
94 |
- |
95 |
-S="${WORKDIR}/${PN}-${MY_P}" |
96 |
- |
97 |
-LIBSLURM_PERL_S="${S}/contribs/perlapi/libslurm/perl" |
98 |
-LIBSLURMDB_PERL_S="${S}/contribs/perlapi/libslurmdb/perl" |
99 |
- |
100 |
-RESTRICT="test" |
101 |
- |
102 |
-src_unpack() { |
103 |
- if [[ ${PV} == *9999* ]]; then |
104 |
- git-r3_src_unpack |
105 |
- else |
106 |
- default |
107 |
- fi |
108 |
-} |
109 |
- |
110 |
-src_prepare() { |
111 |
- tc-ld-disable-gold |
112 |
- default |
113 |
- |
114 |
- # pids should go to /var/run/slurm |
115 |
- sed \ |
116 |
- -e 's:/tmp:/var/tmp:g' \ |
117 |
- -e "s:/var/run/slurmctld.pid:${EPREFIX}/run/slurm/slurmctld.pid:g" \ |
118 |
- -e "s:/var/run/slurmd.pid:${EPREFIX}/run/slurm/slurmd.pid:g" \ |
119 |
- -e "s:StateSaveLocation=.*:StateSaveLocation=${EPREFIX}/var/spool/slurm:g" \ |
120 |
- -e "s:SlurmdSpoolDir=.*:SlurmdSpoolDir=${EPREFIX}/var/spool/slurm/slurmd:g" \ |
121 |
- -i "${S}/etc/slurm.conf.example" \ |
122 |
- || die "Can't sed for /var/run/slurmctld.pid" |
123 |
- sed \ |
124 |
- -e "s:/var/run/slurmdbd.pid:${EPREFIX}/run/slurm/slurmdbd.pid:g" \ |
125 |
- -i "${S}/etc/slurmdbd.conf.example" \ |
126 |
- || die "Can't sed for /var/run/slurmdbd.pid" |
127 |
- # gentooify systemd services |
128 |
- sed \ |
129 |
- -e 's:sysconfig/.*:conf.d/slurm:g' \ |
130 |
- -e 's:var/run/:run/slurm/:g' \ |
131 |
- -e '/^EnvironmentFile=.*/d' \ |
132 |
- -i "${S}/etc"/*.service.in \ |
133 |
- || die "Can't sed systemd services for sysconfig or var/run/" |
134 |
- |
135 |
- sed -e '/AM_PATH_GTK_2_0/d' -i configure.ac || die |
136 |
- |
137 |
- hprefixify auxdir/{ax_check_zlib,x_ac_{lz4,ofed,munge}}.m4 |
138 |
- eautoreconf |
139 |
-} |
140 |
- |
141 |
-src_configure() { |
142 |
- local myconf=( |
143 |
- --sysconfdir="${EPREFIX}/etc/${PN}" |
144 |
- --with-hwloc="${EPREFIX}/usr" |
145 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}" |
146 |
- ) |
147 |
- use pam && myconf+=( --with-pam_dir=$(getpam_mod_dir) ) |
148 |
- use mysql || myconf+=( --without-mysql_config ) |
149 |
- use amd64 && myconf+=( $(use_with netloc) ) |
150 |
- econf "${myconf[@]}" \ |
151 |
- $(use_enable debug) \ |
152 |
- $(use_enable pam) \ |
153 |
- $(use_enable X x11) \ |
154 |
- $(use_with munge) \ |
155 |
- $(use_with json) \ |
156 |
- $(use_with hdf5) \ |
157 |
- $(use_with ofed) \ |
158 |
- $(use_with ucx) \ |
159 |
- $(use_enable static-libs static) \ |
160 |
- $(use_enable multiple-slurmd) |
161 |
- |
162 |
- # --htmldir does not seems to propagate... Documentations are installed |
163 |
- # in /usr/share/doc/slurm-2.3.0/html |
164 |
- # instead of /usr/share/doc/slurm-2.3.0.2/html |
165 |
- sed \ |
166 |
- -e "s|htmldir = .*/html|htmldir = \${prefix}/share/doc/slurm-${PVR}/html|g" \ |
167 |
- -i doc/html/Makefile || die |
168 |
- if use perl ; then |
169 |
- # small hack to make it compile |
170 |
- mkdir -p "${S}/src/api/.libs" || die |
171 |
- mkdir -p "${S}/src/db_api/.libs" || die |
172 |
- touch "${S}/src/api/.libs/libslurm.so" || die |
173 |
- touch "${S}/src/db_api/.libs/libslurmdb.so" || die |
174 |
- cd "${LIBSLURM_PERL_S}" || die |
175 |
- S="${LIBSLURM_PERL_S}" SRC_PREP="no" perl-module_src_configure |
176 |
- cd "${LIBSLURMDB_PERL_S}" || die |
177 |
- S="${LIBSLURMDB_PERL_S}" SRC_PREP="no" perl-module_src_configure |
178 |
- cd "${S}" || die |
179 |
- rm -rf "${S}/src/api/.libs" "${S}/src/db_api/.libs" || die |
180 |
- fi |
181 |
-} |
182 |
- |
183 |
-src_compile() { |
184 |
- default |
185 |
- use pam && emake -C contribs/pam |
186 |
- if use perl ; then |
187 |
- cd "${LIBSLURM_PERL_S}" || die |
188 |
- S="${LIBSLURM_PERL_S}" perl-module_src_compile |
189 |
- cd "${LIBSLURMDB_PERL_S}" || die |
190 |
- S="${LIBSLURMDB_PERL_S}" perl-module_src_compile |
191 |
- cd "${S}" || die |
192 |
- fi |
193 |
- use torque && emake -C contribs/torque |
194 |
-} |
195 |
- |
196 |
-src_install() { |
197 |
- default |
198 |
- use pam && emake DESTDIR="${D}" -C contribs/pam install |
199 |
- if use perl; then |
200 |
- cd "${LIBSLURM_PERL_S}" || die |
201 |
- S="${LIBSLURM_PERL_S}" perl-module_src_install |
202 |
- cd "${LIBSLURMDB_PERL_S}" || die |
203 |
- S="${LIBSLURMDB_PERL_S}" perl-module_src_install |
204 |
- cd "${S}" || die |
205 |
- fi |
206 |
- if use torque; then |
207 |
- emake DESTDIR="${D}" -C contribs/torque |
208 |
- rm -f "${D}"/usr/bin/mpiexec || die |
209 |
- fi |
210 |
- use static-libs || find "${ED}" -name '*.la' -exec rm {} + |
211 |
- # install sample configs |
212 |
- keepdir /etc/slurm |
213 |
- insinto /etc/slurm |
214 |
- doins \ |
215 |
- etc/prolog.example \ |
216 |
- etc/cgroup.conf.example \ |
217 |
- etc/slurm.conf.example \ |
218 |
- etc/slurmdbd.conf.example |
219 |
- exeinto /etc/slurm |
220 |
- keepdir /etc/slurm/layouts.d |
221 |
- insinto /etc/slurm/layouts.d |
222 |
- newins etc/layouts.d.power.conf.example power.conf.example |
223 |
- newins etc/layouts.d.power_cpufreq.conf.example power_cpufreq.conf.example |
224 |
- newins etc/layouts.d.unit.conf.example unit.conf.example |
225 |
- # install init.d files |
226 |
- newinitd "$(prefixify_ro "${FILESDIR}/slurmd.initd")" slurmd |
227 |
- newinitd "$(prefixify_ro "${FILESDIR}/slurmctld.initd")" slurmctld |
228 |
- newinitd "$(prefixify_ro "${FILESDIR}/slurmdbd.initd")" slurmdbd |
229 |
- # install conf.d files |
230 |
- newconfd "${FILESDIR}/slurm.confd" slurm |
231 |
- # install logrotate file |
232 |
- insinto /etc/logrotate.d |
233 |
- newins "${FILESDIR}/logrotate" slurm |
234 |
- # install bashcomp |
235 |
- newbashcomp contribs/slurm_completion_help/slurm_completion.sh scontrol |
236 |
- bashcomp_alias scontrol \ |
237 |
- sreport sacctmgr squeue scancel sshare sbcast sinfo \ |
238 |
- sprio sacct salloc sbatch srun sattach sdiag sstat |
239 |
- # install systemd files |
240 |
- systemd_newtmpfilesd "${FILESDIR}/slurm.tmpfiles" slurm.conf |
241 |
- systemd_dounit etc/slurmd.service etc/slurmctld.service etc/slurmdbd.service |
242 |
-} |
243 |
- |
244 |
-pkg_preinst() { |
245 |
- if use munge; then |
246 |
- sed -i 's,\(SLURM_USE_MUNGE=\).*,\11,' "${D}"/etc/conf.d/slurm || die |
247 |
- fi |
248 |
-} |
249 |
- |
250 |
-create_folders_and_fix_permissions() { |
251 |
- einfo "Fixing permissions in ${@}" |
252 |
- mkdir -p ${@} || die |
253 |
- chown -R ${PN}:${PN} ${@} || die |
254 |
-} |
255 |
- |
256 |
-pkg_postinst() { |
257 |
- paths=( |
258 |
- "${EROOT}"/var/${PN}/checkpoint |
259 |
- "${EROOT}"/var/${PN} |
260 |
- "${EROOT}"/var/spool/${PN}/slurmd |
261 |
- "${EROOT}"/var/spool/${PN} |
262 |
- "${EROOT}"/var/log/${PN} |
263 |
- /var/tmp/${PN}/${PN}d |
264 |
- /var/tmp/${PN} |
265 |
- /run/${PN} |
266 |
- ) |
267 |
- local folder_path |
268 |
- for folder_path in ${paths[@]}; do |
269 |
- create_folders_and_fix_permissions $folder_path |
270 |
- done |
271 |
- echo |
272 |
- |
273 |
- elog "Please visit the file '/usr/share/doc/${P}/html/configurator.html" |
274 |
- elog "through a (javascript enabled) browser to create a configureation file." |
275 |
- elog "Copy that file to /etc/slurm/slurm.conf on all nodes (including the headnode) of your cluster." |
276 |
- echo |
277 |
- elog "For cgroup support, please see https://www.schedmd.com/slurmdocs/cgroup.conf.html" |
278 |
- elog "Your kernel must be compiled with the wanted cgroup feature:" |
279 |
- elog " For the proctrack plugin:" |
280 |
- elog " freezer" |
281 |
- elog " For the task plugin:" |
282 |
- elog " cpuset, memory, devices" |
283 |
- elog " For the accounting plugin:" |
284 |
- elog " cpuacct, memory, blkio" |
285 |
- elog "Then, set these options in /etc/slurm/slurm.conf:" |
286 |
- elog " ProctrackType=proctrack/cgroup" |
287 |
- elog " TaskPlugin=task/cgroup" |
288 |
- einfo |
289 |
- ewarn "Paths were created for slurm. Please use these paths in /etc/slurm/slurm.conf:" |
290 |
- for folder_path in ${paths[@]}; do |
291 |
- ewarn " ${folder_path}" |
292 |
- done |
293 |
-} |