Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

dcdb-pusher-0.3.spec 1.57 KB
Newer Older
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
Name: dcdb-pusher
Summary: Pusher component of the DCDB project
Version: 0.3
Release: 1

License: GPLv2+
URL: https://dcdb.it/
Source: https://gitlab.lrz.de/dcdb/dcdb/tree/master/dcdbpusher
Packager: DCDB project <info@dcdb.it>

Requires: dcdb-pusher-libs

BuildRequires: systemd-rpm-macros
BuildRequires: sed

%description
Pusher is the data acquisition component for the DataCenter Data Base (DCDB)
project. DCDB is a holistic monitoring solution for HPC environments. This
package bundles the Pusher framework binary as well as the following plugin
libraries: sysfs, perfevent, ipmi, pdu, bacnet, snmp, procfs, tester, gpfsmon,
opa, msr.

More information, source code, and the full DCDB project can be found at
 https://dcdb.it

%prep
#nothing to prepare

%build
#nothing to build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/lib
mkdir -p %{buildroot}/bin
#mkdir -p %{buildroot}%{_libdir}
#mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysconfdir}
cd ../../dcdbpusher
make DCDBDEPLOYPATH=%{buildroot} install
make DCDBDEPLOYPATH=%{buildroot} install_conf
cd ../scripts
sed -e 's|%%DCDB_PREFIX%%|''|g' pusher.service > %{buildroot}%{_unitdir}/pusher.service

%post
%systemd_post pusher.service

%clean
rm -rf %{buildroot}

%preun
%systemd_preun pusher.service

%postun
%systemd_postun_with_restart pusher.service

%files
%defattr(-,root,root)
/lib/*.so
/bin/dcdbpusher
#%%{_libdir}/*.so
#%%{_bindir}/dcdbpusher
%{_unitdir}/pusher.service
%{_sysconfdir}/*.conf

%changelog
* Tue Dec 10 2019 Micha Mueller <micha.mueller@lrz.de> 0.3-1
- Initial release