- used macros instead of var, etc
This commit is contained in:
parent
ed85f81661
commit
5adae2a890
19
sysstat.spec
19
sysstat.spec
@ -1,6 +1,6 @@
|
||||
Name: sysstat
|
||||
Version: 8.0.2
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: The sar and iostat system monitoring commands
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
@ -37,8 +37,8 @@ rm -rf %{buildroot}
|
||||
|
||||
make install IGNORE_MAN_GROUP=y DOC_DIR=%{_docdir}/%{name}-%{version} INIT_DIR=%{_initrddir}
|
||||
|
||||
mkdir -p %{buildroot}/etc/cron.d
|
||||
install -m 0644 sysstat.crond %{buildroot}/etc/cron.d/sysstat
|
||||
mkdir -p %{buildroot}/%{_sysconfdir}/cron.d
|
||||
install -m 0644 sysstat.crond %{buildroot}/%{_sysconfdir}/cron.d/sysstat
|
||||
mkdir -p %{buildroot}%{_initrddir}
|
||||
install -m 0755 sysstat %{buildroot}%{_initrddir}/
|
||||
|
||||
@ -50,7 +50,7 @@ install -m 0755 sysstat %{buildroot}%{_initrddir}/
|
||||
%preun
|
||||
if [ "$1" = 0 ]; then
|
||||
# Remove sa logs if removing sysstat completely
|
||||
rm -f /var/log/sa/*
|
||||
rm -f %{_localstatedir}/log/sa/*
|
||||
# Remove service
|
||||
/sbin/chkconfig --del sysstat
|
||||
fi
|
||||
@ -61,17 +61,20 @@ rm -rf %{buildroot}
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES COPYING CREDITS README TODO FAQ
|
||||
%config(noreplace) /etc/cron.d/sysstat
|
||||
%config(noreplace) /etc/sysconfig/sysstat
|
||||
%config(noreplace) /etc/sysconfig/sysstat.ioconf
|
||||
%config(noreplace) %{_sysconfdir}/cron.d/sysstat
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/sysstat.ioconf
|
||||
%{_initrddir}/sysstat
|
||||
%{_bindir}/*
|
||||
%{_libdir}/sa
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man8/*
|
||||
/var/log/sa
|
||||
%{_localstatedir}/log/sa
|
||||
|
||||
%changelog
|
||||
* Fri Nov 9 2007 Ivana Varekova <varekova@redhat.com> - 8.0.2-3
|
||||
- used macros instead of var, etc
|
||||
|
||||
* Thu Nov 8 2007 Ivana Varekova <varekova@redhat.com> - 8.0.2-2
|
||||
- change license tag
|
||||
- remove sysstat.crond source (add -d)
|
||||
|
Loading…
Reference in New Issue
Block a user