-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathslurmmon.spec
97 lines (77 loc) · 2.95 KB
/
slurmmon.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
Name: slurmmon
Version: 0.0.2
Release: fasrc04
Summary: gather and plot data about Slurm
Packager: Harvard FAS Research Computing -- John Brunelle <[email protected]>
Group: System Environment/Base
License: BSD
Source: %{name}-%{version}.tar.bz2
Prefix: /
%description
Slurmmon is a system for gaining insight into Slurm and the jobs it runs.
It's meant for cluster administrators looking to raise cluster utilization and measure the effects of configuration changes.
%package daemon
Summary: slurmmon daemon that collects data
Group: System Environment/Base
Prefix: /etc
Prefix: /usr
%description daemon
Slurmmon is a system for gaining insight into Slurm and the jobs it runs.
It's meant for cluster administrators looking to raise cluster utilization and measure the effects of configuration changes.
This subpackage is the slurmmon daemon that collects data.
%package ganglia
Summary: slurmmon ganglia reports
Group: System Environment/Base
Prefix: /var/www/ganglia/graph.d
%description ganglia
Slurmmon is a system for gaining insight into Slurm and the jobs it runs.
It's meant for cluster administrators looking to raise cluster utilization and measure the effects of configuration changes.
This subpackage is the slurmmon ganglia reports.
%package web
Summary: slurmmon summary web pages
Group: System Environment/Base
Prefix: /etc/httpd/conf.d
Prefix: /var/www/html/slurmmon
%description web
Slurmmon is a system for gaining insight into Slurm and the jobs it runs.
It's meant for cluster administrators looking to raise cluster utilization and measure the effects of configuration changes.
This subpackage is the slurmmon web frontend.
%package python
Summary: slurmmon python library
Group: System Environment/Base
Prefix: /usr/lib/python2.6/site-packages
%description python
Slurmmon is a system for gaining insight into Slurm and the jobs it runs.
It's meant for cluster administrators looking to raise cluster utilization and measure the effects of configuration changes.
This subpackages is the general python library for interfacing with Slurm.
%prep
%setup
%build
%install
echo %{buildroot} | grep -q %{name}-%{version} && rm -rf %{buildroot}
mkdir -p %{buildroot}/
for d in etc usr var; do
rsync -av --exclude .gitignore "$d"/ %{buildroot}/"$d"/
done
mkdir -p %{buildroot}/usr/lib/python2.6/site-packages/
rsync -av lib/python/site-packages/ %{buildroot}/usr/lib/python2.6/site-packages/
%files daemon
%defattr(-,root,root,-)
/etc/init.d/slurmmond
/etc/init.d/slurmmond-computenode
/usr/sbin/slurmmond
/usr/sbin/slurmmon_whitespace_report
%config(noreplace) /etc/slurmmon.conf
%files ganglia
%defattr(-,apache,apache,-)
/var/www/ganglia/graph.d/*
%config(noreplace) /etc/slurmmon.conf
%files web
%defattr(-,root,root,-)
/var/www/html/slurmmon/index.psp
%config(noreplace) /var/www/html/slurmmon/whitespace/latest
%config(noreplace) /etc/httpd/conf.d/slurmmon.conf
%config(noreplace) /etc/slurmmon.conf
%files python
%defattr(-,root,root,-)
/usr/lib/python2.6/site-packages/*