forked from roiser/sam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nagios-plugins-wlcg-org.lhcb.spec
59 lines (48 loc) · 1.33 KB
/
nagios-plugins-wlcg-org.lhcb.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
%define site org.lhcb
%define dir %{_libexecdir}/grid-monitoring/probes/%{site}
%define dir2 /etc
%define debug_package %{nil}
Summary: WLCG Compliant Probes from %{site}
Name: nagios-plugins-wlcg-org.lhcb
Version: 0.3.5
Release: 1%{?dist}
License: ASL 2.0
Group: Network/Monitoring
Source0: %{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
#Requires:
AutoReqProv: no
BuildArch: noarch
BuildRequires: python >= 2.4
%description
IT/SAM nagios probes specific for the LHCb VO
%prep
%setup -q
%build
%install
export DONT_STRIP=1
%{__rm} -rf %{buildroot}
install --directory %{buildroot}%{dir}
install --directory %{buildroot}%{dir2}
install --directory %{buildroot}%{dir2}/ncg
%{__cp} -rpf .%dir/wnjob %{buildroot}%{dir}
%{__cp} -rpf .%dir/SRM-probe %{buildroot}%{dir}
%{__cp} -rpf .%dir/LFC-probe %{buildroot}%{dir}
%{__cp} -rpf .%dir/srmvometrics.py %{buildroot}%{dir}
%{__cp} -rpf .%dir2/ncg-metric-config.d %{buildroot}%{dir2}
%{__cp} -rpf .%dir2/ncg/ncg-localdb.d %{buildroot}%{dir2}/ncg
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{dir}/wnjob
%{dir}/SRM-probe
%{dir}/LFC-probe
%{dir}/srmvometrics.py
%{dir}/srmvometrics.pyc
%{dir}/srmvometrics.pyo
%{dir2}/ncg-metric-config.d
%{dir2}/ncg/ncg-localdb.d
%changelog
* Mon Jul 6 2009 C. Triantafyllidis <ctria@grid.auth.gr> - 0.1.0-1
- Initial build