.gear/rules | 4 ++ .../tags/c7e762a352088f2cb1e737d10dd2977720453ddf | 6 ++ .gear/tags/list | 1 + .gear/vzstats.filetrigger | 3 + .gear/vzstats.spec | 70 ++++++++++++++++++++++ bin/vzversion-rpm | 2 +- 6 files changed, 85 insertions(+), 1 deletion(-) diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..6bc1b37 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,4 @@ +tar: vzstats-@version@:. +diff: vzstats-@version@:. . name=@name@-@version@-alt.patch +copy: .gear/vzstats.filetrigger +spec: .gear/vzstats.spec diff --git a/.gear/tags/c7e762a352088f2cb1e737d10dd2977720453ddf b/.gear/tags/c7e762a352088f2cb1e737d10dd2977720453ddf new file mode 100644 index 0000000..f6e4e73 --- /dev/null +++ b/.gear/tags/c7e762a352088f2cb1e737d10dd2977720453ddf @@ -0,0 +1,6 @@ +object e911a4eca198a33b530863eb15f59a4312dd9e12 +type commit +tag vzstats-0.5.2 +tagger Kir Kolyshkin 1380073135 -0700 + +vzstats 0.5.2 release diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..6495d2a --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +c7e762a352088f2cb1e737d10dd2977720453ddf vzstats-0.5.2 diff --git a/.gear/vzstats.filetrigger b/.gear/vzstats.filetrigger new file mode 100755 index 0000000..fff79ae --- /dev/null +++ b/.gear/vzstats.filetrigger @@ -0,0 +1,3 @@ +#!/bin/sh -euf + +LC_ALL=C egrep -qs 'vz|ploop' && /usr/sbin/vzstats ||: diff --git a/.gear/vzstats.spec b/.gear/vzstats.spec new file mode 100644 index 0000000..b190900 --- /dev/null +++ b/.gear/vzstats.spec @@ -0,0 +1,70 @@ +%define _libexecdir /usr/libexec + +Name: vzstats +Version: 0.5.2 +Release: alt1 +BuildArch: noarch +Summary: OpenVZ stats collection daemon + +Group: System/Base +License: GPL2+ +Url: http://stats.openvz.org +Source: %name-%version.tar +Source1: vzstats.filetrigger +Patch0: %name-%version-alt.patch + +Requires: curl + +%description +This is an OpenVZ component to gather OpenVZ usage and hardware statistics, +in order to improve the project. + +%prep +%setup +%patch0 -p1 + +%build +%make %{?_smp_mflags} + +%install +%makeinstall_std install-cronjob +# Needed for %%ghost in %%files section below +touch %buildroot%_sysconfdir/vz/.vzstats-uuid + +install -Dp -m755 %SOURCE1 %buildroot%_rpmlibdir/vzstats.filetrigger + +%files +%_sbindir/vzstats +%config %_sysconfdir/vz/vzstats.conf +%_sysconfdir/vz/essential.ca-bundle.crt +%ghost %config(missingok) %_sysconfdir/vz/.vzstats-uuid +%dir %_libexecdir/%name +%_libexecdir/%name +%exclude %_libexecdir/%name/vzversion-gentoo +%exclude %_libexecdir/%name/vzversion-deb +%exclude %_libexecdir/%name/vzversion-arch +%_sysconfdir/cron.monthly/* +%_rpmlibdir/vzstats.filetrigger +%_man8dir/%{name}.8.* +%doc README COPYING + +%changelog +* Wed Oct 9 2013 Terechkov Evgenii 0.5.2-alt1 +- 0.5.2 + +* Wed May 15 2013 Terechkov Evgenii 0.3.2-alt1 +- 0.3.2 + +* Thu May 2 2013 Terechkov Evgenii 0.2.1-alt1 +- Initial build based on OpenVZ spec + +* Fri Apr 26 2013 Kir Kolyshkin - 0.2.1-1 +- fixed compatibility with older (as of RHEL5/4) userspace +- stricter checks for scripts permission and ownership + +* Wed Apr 24 2013 Kir Kolyshkin - 0.2-1 +- first public release +- added meminfo and ostemplates scripts + +* Thu Apr 4 2013 Kir Kolyshkin - 0.1-1 +- initial packaging diff --git a/bin/vzversion-rpm b/bin/vzversion-rpm index 9efc217..b5b59dc 100755 --- a/bin/vzversion-rpm +++ b/bin/vzversion-rpm @@ -1,4 +1,4 @@ #!/bin/sh if which rpm >/dev/null 2>&1; then - rpm -qa vzstats\* vzctl\* ploop\* vzquota kernel vzkernel ovzkernel + rpm -qa vzstats\* vzctl\* ploop\* libploop\* vzquota\* kernel-image-ovz-el\* kernel-image-ovz-smp\* fi