~ubuntu-branches/ubuntu/quantal/sysstat/quantal

« back to all changes in this revision

Viewing changes to sysstat-10.0.3.spec

  • Committer: Package Import Robot
  • Author(s): Robert Luberda
  • Date: 2012-03-13 22:59:04 UTC
  • mfrom: (1.1.24) (2.1.17 sid)
  • Revision ID: package-import@ubuntu.com-20120313225904-da0a04jatzozq5gt
Tags: 10.0.4-1
* New upstream (stable) version.
* Update build-dependencies on debhelper.
* Standards-Version: 3.9.3 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Summary:        SAR, SADF, MPSTAT, IOSTAT, NFSIOSTAT, CIFSIOSTAT and PIDSTAT for Linux
2
 
Name:           sysstat
3
 
Version:        10.0.3
4
 
Release:        1
5
 
License:        GPL
6
 
Group:          Applications/System
7
 
Source0:        %{name}-%{version}.tar.gz
8
 
URL:            http://pagesperso-orange.fr/sebastien.godard/
9
 
Packager:       Sebastien Godard <sysstat _at_ orange.fr>
10
 
BuildRoot:      %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
11
 
Requires:       gettext
12
 
 
13
 
%description
14
 
The sysstat package contains the sar, sadf, mpstat, iostat, pidstat,
15
 
nfsiostat, cifsiostat and sa tools for Linux.
16
 
The sar command collects and reports system activity information.
17
 
The information collected by sar can be saved in a file in a binary
18
 
format for future inspection. The statistics reported by sar concern
19
 
I/O transfer rates, paging activity, process-related activities,
20
 
interrupts, network activity, memory and swap space utilization, CPU
21
 
utilization, kernel activities and TTY statistics, among others. Both
22
 
UP and SMP machines are fully supported.
23
 
The sadf command may  be used to display data collected by sar in
24
 
various formats (CSV, XML, etc.).
25
 
The iostat command reports CPU utilization and I/O statistics for disks.
26
 
The mpstat command reports global and per-processor statistics.
27
 
The pidstat command reports statistics for Linux tasks (processes).
28
 
The nfsiostat command reports I/O statistics for network filesystems.
29
 
The cifsiostat command reports I/O statistics for CIFS filesystems.
30
 
 
31
 
%prep 
32
 
%setup 
33
 
 
34
 
%build
35
 
./configure --prefix=%{_prefix} \
36
 
        sa_lib_dir=%{_libdir}/sa \
37
 
        --mandir=%{_mandir} \
38
 
        DESTDIR=$RPM_BUILD_ROOT
39
 
make
40
 
 
41
 
%install
42
 
rm -rf $RPM_BUILD_ROOT
43
 
install -d $RPM_BUILD_ROOT/var/log/sa
44
 
 
45
 
make install
46
 
 
47
 
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
48
 
install -m 755  sysstat $RPM_BUILD_ROOT/etc/rc.d/init.d/sysstat
49
 
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
50
 
install -m 644 sysstat.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/sysstat
51
 
install -m 644 sysstat.ioconf $RPM_BUILD_ROOT/etc/sysconfig/sysstat.ioconf
52
 
mkdir -p $RPM_BUILD_ROOT/etc/cron.d
53
 
install -m 644 cron/sysstat.crond.sample $RPM_BUILD_ROOT/etc/cron.d/sysstat
54
 
mkdir -p $RPM_BUILD_ROOT/etc/rc2.d
55
 
cd $RPM_BUILD_ROOT/etc/rc2.d && ln -sf ../init.d/sysstat S01sysstat
56
 
mkdir -p $RPM_BUILD_ROOT/etc/rc3.d
57
 
cd $RPM_BUILD_ROOT/etc/rc3.d && ln -sf ../init.d/sysstat S01sysstat
58
 
mkdir -p $RPM_BUILD_ROOT/etc/rc5.d
59
 
cd $RPM_BUILD_ROOT/etc/rc5.d && ln -sf ../init.d/sysstat S01sysstat
60
 
 
61
 
%clean
62
 
rm -rf $RPM_BUILD_ROOT
63
 
 
64
 
%files 
65
 
%defattr(644,root,root,755)
66
 
%doc %{_datadir}/doc/sysstat-%{version}/*
67
 
%attr(755,root,root) %{_bindir}/*
68
 
%attr(755,root,root) %{_libdir}/sa/*
69
 
%attr(644,root,root) %{_mandir}/man*/*
70
 
%attr(644,root,root) %{_datadir}/locale/*/LC_MESSAGES/sysstat.mo
71
 
%attr(755,root,root) %dir /var/log/sa
72
 
%attr(755,root,root) /etc/rc.d/init.d/sysstat
73
 
%attr(644,root,root) /etc/sysconfig/sysstat
74
 
%attr(644,root,root) /etc/sysconfig/sysstat.ioconf
75
 
%attr(755,root,root) /etc/rc2.d/S01sysstat
76
 
%attr(755,root,root) /etc/rc3.d/S01sysstat
77
 
%attr(755,root,root) /etc/rc5.d/S01sysstat
78
 
%config(noreplace) %attr(0644,root,root) /etc/cron.d/sysstat
79