]> git.pld-linux.org Git - SPECS.git/blob - vzstats.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / vzstats.spec
1 Summary:        OpenVZ stats collection daemon
2 Summary(pl.UTF-8):      Demon do zbierania statystyk OpenVZ
3 Name:           vzstats
4 Version:        0.5
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications/System
8 Source0:        http://download.openvz.org/utils/vzstats/%{version}/src/%{name}-%{version}.tar.bz2
9 # Source0-md5:  71f524032ab4dc935808274c620a925e
10 URL:            http://stats.openvz.org/
11 Requires:       curl
12 BuildArch:      noarch
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 This is an OpenVZ component to gather OpenVZ usage and hardware
17 statistics, in order to improve the project.
18
19 Statistics gathered and reported include the following:
20 1) Hardware info:
21  - CPU, disk, memory/swap
22 2) Software info:
23  - host distribution, versions of OpenVZ components, kernel version
24 3) Containers info:
25  - number of containers existing/running/using ploop/using vswap
26  - OS templates of containers.
27
28 For more details, check the scripts in %{_libexecdir}/vzstats
29 directory.
30
31 All submissions are anonymous and are not including IP or MAC
32 addresses, hostnames etc. Global data are available at
33 <http://stats.openvz.org/>.
34
35 %description -l pl.UTF-8
36 Ten komponent OpenVZ służy do zbierania statystyk wykorzystania OpenVZ
37 oraz sprzętu w celu poprawienia jakości projektu.
38
39 Zbeirane i zgłaszane statystyki obejmują następujące informacje:
40 1) Informacje o sprzęcie:
41 - CPU, dysk, pamięć/swap
42 2) Informacje o oprogramowaniu:
43  - dystrybucja, wersje komponentów OpenVZ, wersja jądra
44 3) Informacje o kontenerach:
45  - liczba kontenerów istniejących/działających/wykorzystujecych ploop/
46    wykorzystujących vswap
47  - szablony systemów operacyjnych kontenerów.
48
49 Więcej szczegółów można znaleźć w skryptach w katalogu
50 %{_libexecdir}/vzstats.
51
52 Informacje są wysyłane anonimowo i nie zawierają adresów IP ani MAC,
53 nazw hostów itp. Dane globalne są dostępne pod adresem
54 <http://stats.openvz.org/>.
55
56 %package -n bash-completion-vzstats
57 Summary:        Bash completion for vzstats
58 Summary(pl.UTF-8):      Bashowe uzupełnianie parametrów dla polecenia vzstats
59 Group:          Applications/Shells
60 Requires:       %{name} = %{version}-%{release}
61 Requires:       bash-completion
62
63 %description -n bash-completion-vzstats
64 Bash completion for vzstats.
65
66 %description -n bash-completion-vzstats -l pl.UTF-8
67 Bashowe uzupełnianie parametrów dla polecenia vzstats.
68
69 %prep
70 %setup -q
71
72 %build
73 %{__make} \
74         REPDIR=%{_libexecdir}/%{name}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} install-all \
80         DESTDIR=$RPM_BUILD_ROOT \
81         REPDIR=%{_libexecdir}/%{name}
82
83 touch $RPM_BUILD_ROOT%{_sysconfdir}/vz/.vzstats-uuid
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %triggerin -- vzctl,vzctl-lib,vzquota,ploop,ploop-libs
89 %{_sbindir}/vzstats &
90
91 %files
92 %defattr(644,root,root,755)
93 %doc README
94 %attr(755,root,root) %{_sbindir}/vzstats
95 %{_mandir}/man8/vzstats.8*
96 %dir %{_sysconfdir}/vz
97 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vz/vzstats.conf
98 %{_sysconfdir}/vz/EssentialSSLCA_2.crt
99 %ghost %{_sysconfdir}/vz/.vzstats-uuid
100 %dir %{_libexecdir}/%{name}
101 %attr(755,root,root) %{_libexecdir}/%{name}/*
102 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cron.monthly/vzstats
103
104 %files -n bash-completion-vzstats
105 %defattr(644,root,root,755)
106 %{_sysconfdir}/bash_completion.d/vzstats
This page took 0.186755 seconds and 3 git commands to generate.