Browse code

Updated sysstat to version 11.4.2 and enable install cron. (bug 1700349)

Change-Id: I13abd6bef8fa3210df584945bfd3c16a152f59a7
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1921
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Priyesh Padmavilasom <ppadmavilasom@vmware.com>

xiaolin-vmware authored on 2017/01/07 02:58:43
Showing 1 changed files
... ...
@@ -1,50 +1,63 @@
1
-Summary:	The Sysstat package contains utilities to monitor system performance and usage activity
2
-Name:		sysstat 
3
-Version:	11.2.0
4
-Release:	3%{?dist}
5
-License:	GPLv2 
6
-URL:		http://sebastien.godard.pagesperso-orange.fr/
7
-Group:		Development/Debuggers
8
-Vendor:		VMware, Inc.
9
-Distribution:	Photon
10
-Source0:	http://perso.wanadoo.fr/sebastien.godard/sysstat-11.2.0.tar.xz
11
-%define sha1 sysstat=61b70892d864f8bac5714e2fe0a006f0fda6efba
1
+Summary:        The Sysstat package contains utilities to monitor system performance and usage activity
2
+Name:           sysstat
3
+Version:        11.4.2
4
+Release:        1%{?dist}
5
+License:        GPLv2
6
+URL:            http://sebastien.godard.pagesperso-orange.fr/
7
+Group:          Development/Debuggers
8
+Vendor:         VMware, Inc.
9
+Distribution:   Photon
10
+Source0:        http://perso.wanadoo.fr/sebastien.godard/%{name}-%{version}.tar.xz
11
+%define sha1    sysstat=84ac7feba76049f201e203c7ce0cc750479a9d43
12
+BuildRequires:  cronie
13
+Requires:       cronie
12 14
 %description
13
- The Sysstat package contains utilities to monitor system performance and usage activity. Sysstat contains the sar utility, common to many commercial Unixes, and tools you can schedule via cron to collect and historize performance and activity data. 
15
+ The Sysstat package contains utilities to monitor system performance and usage activity. Sysstat contains the sar utility, common to many commercial Unixes, and tools you can schedule via cron to collect and historize performance and activity data.
14 16
 
15 17
 %prep
16 18
 %setup -q
17 19
 %build
18 20
 
19 21
 ./configure --prefix=%{_prefix} \
22
+            --enable-install-cron \
23
+            --enable-copy-only \
20 24
             --disable-file-attr \
21 25
             sa_lib_dir=%{_libdir}/sa \
22
-	    --mandir=%{_mandir}
26
+            --mandir=%{_mandir}
23 27
 make %{?_smp_mflags}
24 28
 %install
25 29
 make install
26 30
 mkdir -p %{buildroot}/usr/lib/systemd/system/
27 31
 install -D -m 0644 %{_builddir}/%{name}-%{version}/sysstat.service %{buildroot}/usr/lib/systemd/system/
32
+install -D -m 0644 %{_builddir}/%{name}-%{version}/cron/sysstat-summary.timer %{buildroot}/usr/lib/systemd/system/
33
+install -D -m 0644 %{_builddir}/%{name}-%{version}/cron/sysstat-summary.service %{buildroot}/usr/lib/systemd/system/
34
+install -D -m 0644 %{_builddir}/%{name}-%{version}/cron/sysstat-collect.timer %{buildroot}/usr/lib/systemd/system/
35
+install -D -m 0644 %{_builddir}/%{name}-%{version}/cron/sysstat-collect.service %{buildroot}/usr/lib/systemd/system/
36
+
37
+%find_lang %{name}
28 38
 %clean
29 39
 rm -rf %{buildroot}/*
30 40
 
31
-%files 
41
+%files -f %{name}.lang
32 42
 %defattr(-,root,root)
33
-%{_sysconfdir}/*
43
+%config(noreplace) %{_sysconfdir}/sysconfig/*
44
+%config(noreplace) %{_sysconfdir}/cron.d/*
45
+%exclude %{_sysconfdir}/rc.d/init.d/sysstat
34 46
 %{_bindir}/*
35 47
 %{_libdir}/sa/*
36 48
 %{_datadir}/doc/%{name}-%{version}/*
37
-%{_datadir}/locale/*/LC_MESSAGES/sysstat.mo
38 49
 %{_mandir}/man*/*
39 50
 %{_libdir}/systemd/system/*
40 51
 
41 52
 
42 53
 %changelog
43
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 11.2.0-3
44
--	GA - Bump release of all rpms
45
-*	Wed May 4 2016 Divya Thaluru <dthaluru@vmware.com> 11.2.0-2
46
--	Adding systemd service file
47
-*	Wed Jan 20 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 11.2.0-1
48
--	Update to 11.2.0-1.
49
-*	Mon Nov 30 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 11.1.8-1
50
--	Initial build.	First version
54
+*   Thu Jan 05 2017 Xiaolin Li <xiaolinl@vmware.com> 11.4.2-1
55
+-   Updated to version 11.4.2 and enable install cron.
56
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 11.2.0-3
57
+-   GA - Bump release of all rpms
58
+*   Wed May 4 2016 Divya Thaluru <dthaluru@vmware.com> 11.2.0-2
59
+-   Adding systemd service file
60
+*   Wed Jan 20 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 11.2.0-1
61
+-   Update to 11.2.0-1.
62
+*   Mon Nov 30 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 11.1.8-1
63
+-   Initial build.  First version